APPENDICES APPENDIX
Appendix 7 Setting Examples
483
A
Examples of device access in binary code (3E frame)
The following shows the setting example when using a command for binary code and 3E frame.
■Device reading
• Binary code, 3E frame
• Access target: QCPU of the connected station (host station)
• Command: Batch read in word units (command: 0401)
• Device: M100 to M131 (for 2 words)
1. Read values from devices.
Request message
*1 Monitoring timer (2 bytes) + Request data (10 bytes)
2. Receive the result.
Response message (Normal completion: Response data)
*1 End code (2 bytes) + Response data (4 bytes)
*2 The value of read data corresponds to the access target device as follows.
Subheader Access route Request data
length
*1
Monitoring timer
Network No. PC No. Request
destination
module I/O No.
Request
destination
module station
No.
3E frame (request) Host station 12 4 seconds
50H 00H 00H FFH FFH 03H 00H 0CH 00H 10H 00H
Request data
Command Subcommand Head device number Device code Number of device
points
0401 0000 100 M 2
01H 04H 00H 00H 64H 00H 00H 90H 02H 00H
Subheader Access route Response data
length
*1
End code
Network No. PC No. Request
destination
module I/O No.
Request
destination
module station
No.
3E frame (response) Host station 6 0000H
D0H 00H 00H FFH FFH 03H 00H 06H 00H 00H 00H
Response data (read data)
*2
M100 to M115 M116 to M131
34H 12H 02H 00H
M107
34120200
001 1010 0000 1001 0000 0001 0000 0000 0
34
H
12
H
02
H
00
H
M100 M115 M108 M123 M116 M131 M124
0=OFF
1=ON
to to to to