Setting Examples Of Message For Ethernet Interface Module - Mitsubishi Electric MELSEC IQ-R series Reference Manual

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

Advertisement

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
Subheader
Access route
Network
No.
3E frame (request)
Host station
5
0
0
0
0
0
35H
30H
30H
30H
30H
30H
Request data
Command
Subcommand
0
4
0
1
0
30H
34H
30H
31H
30H
*1 Monitoring timer (4 bytes) + Request data (20 bytes)
2.
Receive the result.
Response message (Normal completion: Response data)
Subheader
Access route
Network
No.
3E frame (response)
Host station
D
0
0
0
0
0
44H
30H
30H
30H
30H
30H
*2
Response data (read data)
1
2
31H
32H
*1 End code (4 bytes) + Response data (8 bytes)
*2 The value of read data corresponds to the access target device as follows.
1
2
3
4
31
32
33
34
H
H
H
H
1
2
3
4
0 0 0 1 0 0 1 0 0 0 1 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0
to
M115
M100 M131
PC No.
Request destination
module I/O No.
F
F
0
3
F
46H
46H
30H
33H
46H
Device code
0
0
0
M
*
30H
30H
30H
4DH
2AH
PC No.
Request destination
module I/O No.
F
F
0
3
F
46H
46H
30H
33H
46H
3
4
33H
34H
0
0
0
2
30
30
30
32
H
H
H
H
0
0
0
2
0 = OFF
1 = ON
to
M116
Request data
*1
length
Request
destination
module
station No.
24
F
0
0
0
0
46H
30H
30H
30H
30H
Head device number
0
0
0
1
0
30H
30H
30H
31H
30H
Response data
*1
length
Request
destination
module
station No.
12
F
0
0
0
0
46H
30H
30H
30H
30H
0
0
30H
30H
Monitoring timer
4 seconds
1
8
0
0
1
31H
38H
30H
30H
31H
Number of device points
0
0
0
0
2
30H
30H
30H
30H
32H
End code
0000H
0
C
0
0
0
30H
43H
30H
30H
30H
0
2
30H
32H
APPENDICES APPENDIX
Appendix 7 Setting Examples
0
30H
A
0
30H
481

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents