App2
1.2.2 FOR RTU MODE
MASTER(PLC etc.)send request to SLAVE, whereas SLAVE response to MASTER.The
signal receiving is illustrated here.
The data length is varied with the command(Function).
SLAVE Address
Function Code
DATA
CRC CHECK
Signal Interval
**The interval should be maintained at 10ms between command signal and request.
1.3 SLAVE Address
00H : Broadcast to all the drivers
01H : to the No.01 Drivers
0FH : to the No.15 Drivers
10H : to the No.16 Drivers
and so on ……,Max to 32(20H)
1.4 Function Code
03H : Read the register contents
06H : write a WORD to register
08H : Loop test
10H : write several data to register(complex number register write)
2.CMS (Checksum and time-out definition)
2.1 LRC
ex. ADDRESS 01H
FUNCTION 03H
COMMAND 01H
00H
DATA LENGTH 0AH
-----------------------
0FH------------true complement
Checksum = F1H
CS(H) = 46H (ASCII)
CS(L) = 31H (ASCII)
2.2 CRC CHECK:CRC Check Code is calculated from SLAVE Address to end of the data. The
calculation method is illustrated as follow:
(1)Load a 16-bit register with FFFF hex (all’s1).Call this the CRC register.