EasyManua.ls Logo

Mitsubishi Electric MELSEC iQ-R Series - Setting Examples of Message for Ethernet Interface Module

Mitsubishi Electric MELSEC iQ-R Series
498 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
APPENDICES APPENDIX
Appendix 7 Setting Examples
481
A
Setting examples of message for Ethernet interface module
The following shows the setting example when using a command from an Ethernet interface module.
Examples of device access in ASCII code (3E frame)
The following shows the setting example when using a command for ASCII code and 3E frame.
Device reading
ASCII 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 (4 bytes) + Request data (20 bytes)
2. Receive the result.
Response message (Normal completion: Response data)
*1 End code (4 bytes) + Response data (8 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 24 4 seconds
50000 0 FF0 3 F F 0 0 00180010
35H 30H 30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H 31H 38H 30H 30H 31H 30H
Request data
Command Subcommand Device code Head device number Number of device points
04010000M * 0 0 01000002
30H 34H 30H 31H 30H 30H 30H 30H 4DH 2AH 30H 30H 30H 31H 30H 30H 30H 30H 30H 32H
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 12 0000H
D0000 0 FF0 3 F F 0 0 000C0000
44H 30H 30H 30H 30H 30H 46H 46H 30H 33H 46H 46H 30H 30H 30H 30H 30H 43H 30H 30H 30H 30H
Response data (read data)
*2
12340002
31H 32H 33H 34H 30H 30H 30H 32H
1
M115
12340002
000 1001 0001 1010 0000 00000000 0001 0
234
31H 32H 33H 34H
000
30H 30H 30H
2
32H
M100 M131 M116
0=OFF
1=ON
to to

Table of Contents

Other manuals for Mitsubishi Electric MELSEC iQ-R Series

Related product manuals