4 - 27 4 - 27
MELSEC-Q
4 WHEN THE QCPU ACCESSES THE OTHER STATION PLC USING THE
DATA LINK INSTRUCTION
4.7 Reading/Writing Word Devices of Other Stations (ZNRD/ZNWR)
This section explains the format and program examples of the ZNRD/ZNWR
instructions that are used to read and write data of word devices of other station.
For details, see Sections 6.13 and 6.14.
(1) Instruction format
(a) ZNRD instruction
[Network number designation]
J.ZNRD
J: Execution
during ON
Jn
Read command
JP.ZNRD
JP: Execution
during startup
Jn
Read command
n1
n1
n2
n2
(S)
(D1)
(D2)
(S)
(D1)
(D2)
Setting details
Setting range
Jn
Target station network number
Designate the target station network number.
1 to 239
n1
Target station number
Designate the target station number.
1 to 64 (constant)
Bit device digit designation
2
Word device
3
(S)
Read data storage head device (target station)
Designate the head device of the target station that stores
the data to read.
T, C, D, W
(D1)
Read data storage head device (local station)
Designate the head device of the local station which will
store the data to be read.
Word device
3
n2
Read data length
Designate the number of data (words) to read.
When reading from Q/QnACPU
1 to 230 (constant)
When reading from PLC CPU other
than Q/QnACPU
5
1 to 32 (constant)
Bit device digit designation
2
Word device
3
Read completion device (local station)
Designate the device of the local station to turn on one
scan when the read is complete.
(D2) ................... OFF: Incomplete
ON: Complete
(D2)
(D2) + 1 ............. OFF: Normal
ON: Abnormal
Bit device
1
Word device bit designation
4
1: Bit device ................................... X, Y, M, L, F, V, B
2: Bit device digit designation.......... K
Digit number
Bit device head number
3: Word device................................ T, C, D, W, ST, R, ZR
4: Word device bit designation........
Word device
.
Bit number
POINT
The normal/abnormal end status when a read is complete is stored in the data link
instruction communication completion result (Channel 1) storage area (address:
207) in the buffer memory.
When the read completion device ((D2) + 1) is on due to abnormal end, read the
error code (See troubleshooting of User's Manual (Basic).) stored in the area
mentioned above, and perform the necessary corrective action.
Содержание QJ71E71-100 Series
Страница 2: ......
Страница 214: ...6 65 6 65 MELSEC Q 6 DEDICATED INSTRUCTIONS MEMO ...
Страница 219: ......