How to Set Command array?

Q: Using command array, My Address and Address of partner device must be set. How to create command array?

 

A: My Address is [1]. Address of partner device is [24].

Cmd(0) = 2  <- Total number of command

Cmd(1) = 1  <- My Address

Cmd(2) = 24 <- Address of partner device

Cmd(0) = 2  <- Total number of command

Cmd(1) = 24 <- Address of partner device

Cmd(2) = 1  <- My Address

Perform it when command array or sending data etc. is changed in samples.