Download Print this page

Direct Writing Of The Extension File Register (Command: Nw) - Mitsubishi MELSEC Q Series Reference Manual

With melsec communication protocol
Hide thumbs Also See for MELSEC Q Series:

Advertisement

5.3.7 Direct writing of the extension file register (command: NW)

[Control procedure]
NW (AnA/AnUACPU common command)
(Data name)
External device
side
N
(Example)
4E
57
H
(Data name)
Programmable controller CPU side
(Example)
5 - 44
The example shown in this section explain the control procedure for writing directly
from the extension file register using the NW command.
The order and contents of data items for the parts marked with " " shown in the
control procedure differ depending on the communication format.
Refer to a detailed explanation in Section 5.1.
(Write conditions)
1)
Message wait is 0 ms.
2) Write 3 points to R8190 and R8191 of block No. 12 and R0 of block
No.13.
(When the extension file register of block No. 1 to 8 and 10 to 13
exist.)
Head device No.
(7 characters)
W
0
0
0
9
0
1
30
30
30
39
30
31
H
H
H
H
H
H
H
POINT
Designate the number of device points within the following range:
• 1  number of device points 64
• Head device number + number of device points - 1 maximum device number
5 WHEN COMMUNICATING USING THE A COMPATIBLE 1C FRAMES
Four characters are used for one device point.
Thus, one word data is expressed by a 4-digit
Number of points
value (hexadecimal).
to be written
Number of
device points
2 characters
(hexadecimal)
H
L
1
0
0
3
0
1
2
31
30
30
33
30
31
32
H
H
H
H
H
H
Character area C
(Designates the range of the devices to be written)
Indicates the content written to R8190 in block No. 12 is 0123
Indicates the content written to R8191 in block No. 12 is AB07
Indicates the content written to R0 in block No. 13 is 3322
(Data to write)
Data for the number of
designed device points
Number of device points
 4 characters
3
A
B
0
7
3
33
41
42
30
37
33
H
H
H
H
H
H
H
H
3
2
2
33
32
32
H
H
H
(291 decimal).
H
(-21753 decimal).
H
(13090 decimal).
5 - 44

Hide quick links:

Advertisement

loading