4) Reading/Writing Word Devices Of Other Stations (J(P).Znrd, J(P).Znwr) - Mitsubishi Electric Q Series Reference Manual

Hide thumbs Also See for Q Series:
Table of Contents

Advertisement

7 APPLICATION FUNCTIONS

7.4.5 (4) Reading/writing word devices of other stations (J(P).ZNRD, J(P).ZNWR)

7 - 76
The following explains the ZNRD/ZNWR instruction format and some program
examples.
(a)
Instruction format
1)
J(P).ZNRD
[Network No. designation]
Read command
J.ZNRD
Read command
JP.ZNRD
Jn
Target station's network No.
n1
Target station number
(S1) Head device of the target station from which data is read
(D1) Head device of the host that stores the data to read
n2
Number of points to read (word)
Completion device
Designate the host's device to be turned on for one scan upon read completion
(D2)
Off : Not completed
(D2)
(D2)+1
Off : Normal
If the reading is not normally completed, the corresponding error code will be
stored at SW0031. (For the error code, refer to Section 8.3.)
1: Bit device
2: Designation of the number
of digits for bit device
3: Word device
4: Bit designation of word device : Word device, bit number
Jn
n1
(S1)
(D1)
Jn
n1
(S1)
(D1)
Description of setting
5
On : Complete
On : Abnormal
: X, Y, M, L, F, V, and B
: Number of digits of K, bit device head No.
: T, C, D, W, ST, ST, R, and ZR
(The Q00JCPU cannot use R and ZR.)
MELSEC-Q
Target station
QCPU
QnACPU
: For link dedicated instruction for the safety CPU,
refer to Section 6.3
(D2)
J: Executed when on
n2
n2
JP: Executed at startup
(D2)
Setting range
1 to 239
1 to 64 (Constant)
Designation of the number of digits
for bit device
Word device
T, C, D and W
Word device
1 to 230 (constant):
When the target station is a QCPU,
QnACPU, or AnUCPU
1 to 32 (constant):
When the target station is other
than a QCPU, QnACPU, or
AnUCPU
Designation of the number of digits
for bit device
Word device
Bit device
1
Bit designation of word device
AnUCPU
2
3
3
2
3
4
7 - 76

Advertisement

Table of Contents

Troubleshooting

loading

Table of Contents