480
APPENDICES APPENDIX
Appendix 7 Setting Examples
■Device writing
• Format 5 (sum check enabled), 4C frame
• Access target: QCPU of the connected station (host station)
• Command: Batch write in word units (command: 1401)
• Device: M100 to M131 (for 2 words)
1. Write values to devices.
Request message
*1 Frame ID No. (1 byte) + Access route (7 bytes) + Request data (14 bytes)
*2 The addition result of the sum check range: 30FH + 2B6H = 5C5H
*3 The value of write data corresponds to the access target device as follows.
2. Receive the result.
Response message (Normal completion: No response data)
*1 Frame ID No. (1 byte) + Access route (7 bytes) + Response ID code (2 bytes) + Normal completion code (2 bytes)
*2 The addition result of the sum check range: 305H + 1FEH = 503H
Control code Number of data
bytes
*1
Frame ID
No.
Access route
Station
No.
Network No. PC No. Request
destination
module I/O No.
Request
destination
module station
No.
Self-
station
No.
DLE STX 22 bytes 4C frame Host station
10H 02H 16H 00H F8H 00H 00H FFH FFH 03H 00H 00H
The subtotal of the additional value of binary data = 30FH
Request data Control code Sum check
code
*2
Command Subcommand Head device
number
Device
code
Number
of
device
points
Write data
*3
1401 0000 100 M 2 M100 to M115 M116 to
M131
DLE ETX C 5
01H 14H 00H 00H 64H 00H 00H 90H 02H 00H 47H 23H 96H ABH 10H 03H 43H 35H
The subtotal of the additional value of binary data = 2B6H
Control code Number of data
bytes
*1
Frame ID
No.
Access route
Station
No.
Network No. PC No. Request
destination
module I/O No.
Request
destination
module station
No.
Self-
station
No.
DLE STX 12 bytes 4C frame Host station
10H 02H 0CH 00H F8H 00H 00H FFH FFH 03H 00H 00H
The subtotal of the additional value of binary data = 305H
Response ID code Normal completion code Control code Sum check code
*2
FFFFH 0000H DLE ETX 0 3
FFH FFH 00H 00H 10H 03H 30H 33H
The subtotal of the additional value of binary data = 1FEH
M107 M100 M115 M108 M123 M116 M131 M124
0=OFF
1=ON
472396AB
010 0011 1001 0001 110010110101 0101 1
47
H 23H 96H ABH
to to to to