Mitsubishi Electric MELSEC IQ-R series Reference Manual page 482

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

Advertisement

■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
Control code
Number of data
bytes
DLE
STX
22 bytes
10H
02H
16H
The subtotal of the additional value of binary data = 30FH
Request data
Command
Subcommand
1401
0000
01H
14H
00H
The subtotal of the additional value of binary data = 2B6H
*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.
47
4
7
2
0 1 0 0 0 1 1 1 0 0 1 0 0 0 1 1 1 0 0 1 0 1 1 0 1 0 1 0 1 0 1 1
M107
M100 M115
to
to
2.
Receive the result.
Response message (Normal completion: No response data)
Control code
Number of data
bytes
DLE
STX
12 bytes
10H
02H
0CH
The subtotal of the additional value of binary data = 305H
Response ID code
FFFFH
FFH
FFH
The subtotal of the additional value of binary data = 1FEH
*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
APPENDICES APPENDIX
480
Appendix 7 Setting Examples
Frame ID
Access route
*1
No.
Station
No.
4C frame
Host station
00H
F8H
00H
Head device
number
100
00H
64H
00H
00H
23
96
AB
H
H
H
H
3
9
6
A
M108 M123
M116 M131
to
to
Frame ID
Access route
*1
No.
Station
No.
4C frame
Host station
00H
F8H
00H
Normal completion code
0000H
00H
00H
Network No.
PC No.
00H
FFH
Device
Number
Write data
code
of
device
points
M
2
M100 to M115
90H
02H
00H
47H
B
0 = OFF
1 = ON
M124
Network No.
PC No.
00H
FFH
Control code
DLE
ETX
10H
03H
Request
Request
destination
destination
module I/O No.
module station
No.
FFH
03H
00H
Control code
*3
M116 to
DLE
M131
23H
96H
ABH
10H
Request
Request
destination
destination
module I/O No.
module station
No.
FFH
03H
00H
Sum check code
0
30H
Self-
station
No.
00H
Sum check
*2
code
ETX
C
5
03H
43H
35H
Self-
station
No.
00H
*2
3
33H

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents