Direct Write (Command: Nw) - Mitsubishi Electric MELSEC IQ-R series Reference Manual

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

Advertisement

Direct write (command: NW)

Write extended file register in 1-point (1 word) units by specifying the consecutive device number of extended file register.
Message format
The following shows the message format of the request data and response data of the command.
■Request data
N
W
Message wait
4E
57
H
H
■Response data
There is no response data for this command.
Data specified by request data
■Command
ACPU common
N
W
4E
57
H
H
■Message wait
Specify the delayed time of the response transmission. (Page 347 Message wait)
■Head device No.
Specify the device number of head device with 7 digits. (Page 374 Device number)
■Number of device points
Convert the numerical value to 2-digit ASCII code (hexadecimal), and send it from the upper digits.
Specify the number of device points within the following range:
• 1  Number of device points  64
• Head device No. + Number of device points - 1  Maximum device No.
■Write data for the number of device points
Store 4-digit data per one device point.
Communication example
Write data of 3 points under the following conditions.
• Message wait: 0 ms
• Write data: Write R8190 and R8191 of block number 12 and RO of block number 13.
(When the extended file register of block number 1 to 8 and 10 to 13 exist.)
• Number of device points: 3 points (3 words)
(Request data)
Message wait
Head device No.
N
W
0
0
0
4E
57
30
30
30
H
H
H
H
H
17 COMMUNICATING USING 1C FRAMES
382
17.5 Read and Write Extended File Register
Number of
Head device No.
device points
Number of device points (Number of words)
Write data for the number of device points
0
9
0
1
1
0
0
3
(Decimal : 291) (Decimal : 21753) (Decimal : 13090)
39
30
31
31
30
30
33
30
H
H
H
H
H
H
H
(R8190 in No.12) (R8191 in No.12)
Write data for the number of device points
1
2
3
A
B
C
7
31
32
33
41
42
43
37
H
H
H
H
H
H
H
H
3
3
2
2
33
33
32
32
H
H
H
H
(R0 in No.13)

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsecq seriesMelsec l series

Table of Contents