User`s manual

7-36
After receiving this command, the PLC02 will return a response as follows:
: : 0 2 # 5 S R R 0 0 7 0 3 0 2 5
0 2 ? 5 S R R 0 0 7 0 3 0 1
Command detail
Response time: 50 ms
Slave station number
… 
Sum all the bytes of data from the slave station number until the end
of the command details as ASCII codes. Then take the 2's complement
of that number. This is the checksum.
A command sent from a host computer (to specify the area for checksum)
The host computer receives this response and adds all the bytes of data
from the slave station number until the end of the response data as ASCII
codes. Then, it adds the checksum in this case 25(H) to the data. If the
lower two digits are 00(H) (300(ASCII Hex)), the host computer will
determine that the response is appropriate.
+ Checksum code
Checksum
code
Then, the command will be as follows:
: : 0 2 ? 5 S R R 0 0 7 0 3 0 1 D 8
Checksum code
C
R
0
2
?
5
S
R
R
0
0
7
0
3
0
1
ASCII code
ASCII code
+
+
[Complement of 2]
Invert all binary bits (0 -> 1, 1 -> 0), and add 1. This is the 2's
complement number. 28
(H)
00101000
Bit inversion
11010111
Add 1
11011000 D8
(H)
0
2
#
5
S
R
R
0
0
7
0
3
0
[Ex.] To set relay 007030 on the PLC02 (response time: 50 ms)
30(H)
32
3F
35
53
52
52
30
30
37
30
33
30
31
328(H)
 ↓
28(H)
 ↓
D8(H)
30(H)
32
23
35
53
52
52
30
30
37
30
33
30
2DB(H)
25(H)
300(H)
C
R
Complement of 2