86
The slave answers:
byte 0 byte 1 byte 2 byte 3 byte 4 byte 5 byte 6 byte 7
RES
INDEX
SUB
INDEX
DATA
RES:
Displays slave response:
43(hex) bytes 4...7 contain 32-bit data
4B(hex) bytes 4 and 5 contain 16-bit data
4F(hex) byte 4 contains 8-bit data
80(hex) error, bytes 4 … 7 contain error cause
INDEX:
16-bit value, copy of index in host telegram
SUBINDEX:
8-bit value, copy of subindex in host telegram
DATA:
Data or error cause, depending on RES
10.4 RS232 telegram example
Following table shows the RS232 telegram example.
Table 10-1: RS232 telegram example
ID
R/W
Index
Sub index
Data
Checksum
Meaning
01
2B
40 60
00
2F 00 00 00
05
Set Controlword = 0x2F, enable the
controller
01
2F
60 60
00
06 00 00 00
0A
Set Operation_Mode = 0x06
01
23
7A 60
00
50 C3 00 00
EF
Set Tearget_position = 50000
01
40
41 60
00
00 00 00 00
1E
Read the Statusword