Mitsubishi Electric MELSEC IQ-R series Reference Manual page 485

Programmable controller
Hide thumbs Also See for MELSEC IQ-R series:
Table of Contents

Advertisement

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
Subheader
Access route
Network No.
3E frame (request)
Host station
50H
00H
00H
Request data
Command
Subcommand
0401
0000
01H
04H
00H
*1 Monitoring timer (2 bytes) + Request data (10 bytes)
2.
Receive the result.
Response message (Normal completion: Response data)
Subheader
Access route
Network No.
3E frame (response)
Host station
D0H
00H
00H
*2
Response data (read data)
M100 to M115
34H
*1 End code (2 bytes) + Response data (4 bytes)
*2 The value of read data corresponds to the access target device as follows.
34
12
02
H
H
3
4
1
2
0 0 1 1 0 1 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0
M107
M100 M115
M108 M123
to
to
PC No.
Request
destination
module I/O No.
FFH
FFH
Head device number
100
00H
64H
PC No.
Request
destination
module I/O No.
FFH
FFH
12H
00
H
H
0
2
0
0
0 = OFF
1 = ON
M116 M131
M124
to
to
Request data
length
Request
destination
module station
No.
12
03H
00H
0CH
Device code
M
00H
00H
90H
Response data
length
Request
destination
module station
No.
6
03H
00H
06H
M116 to M131
02H
Monitoring timer
*1
4 seconds
00H
10H
00H
Number of device
points
2
02H
00H
End code
*1
0000H
00H
00H
00H
00H
APPENDICES APPENDIX
Appendix 7 Setting Examples
A
483

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents