9.2.2 Upload(From Slave to Host)
Upload refers to that the master sends a command to read object address in the slave and the master will
generate an error if a non-existent target address is uploaded.
The master sends:
CMD
byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7
INDEX
SUB
INDEX
RESERVED
CMD Specifies the direction of data transfer
40(0x16)
INDEX 16-bit value
SUBINDEX 8-bit subindex
RESERVED Bytes 4…7 not used
The slave receives:
RES
byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7
INDEX
SUB
INDEX
DATA
RES Displays slave response:
43(0x16) bytes 4...7 contain 32-bit data
4B(0x16) bytes 4, 5 contain 16-bit data
4F(0x16) byte 4 contains 8-bit data
80(0x16) error, bytes 4…7 contain error cause
INDEX 16-bit value, same as that sent by the master
SUBINDEX 8-bit value, same as that sent by the master
If the data contains no error, byte 4…byte 7 save the object value read from the slave, with the lower-order
bits arranged before the higher-order bits. Correct value = byte7, byte6, byte5, byte4. If there is an error, data
contained in these four types is no longer object values read from the slave.
For example:
The master sends a ―upload‖ command to the slave:
01 40 F0 2F 09 58 02 00 00 3D (This command reads target velocity 2FF00910 from the slave)
The slave answers:
01 4B F0 2F 09 58 02 00 00 32
Indicates: 01—Slave index is 1. 4B – Received data contains 2 bytes, saved to byte 4…byte 5 in the 10
bytes of the response. byte4=58, byte5=02, byte6=00, byte7=00. Then, DATA= byte7 byte6 byte5 byte4 =
0258(hex)= 600 rpm
Example 9-1: Use home mode/position mode/speed mode by communication
Home mode(Controlword F to 1F)
01 2B 40 60 00 0F 00 00 00 25
01 2F 60 60 00 06 00 00 00 0A