Reading/Writing Word Devices Of Other Stations (Znrd/Znwr) - Mitsubishi QJ71E71-100 User Manual

Programmable logic controller. q series corresponding ethernet interface module
Hide thumbs Also See for QJ71E71-100:
Table of Contents

Advertisement

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)

4 - 27
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]
Read command
J.ZNRD
Read command
JP.ZNRD
Target station network number
Jn
Designate the target station network number.
Target station number
n1
Designate the target station number.
Read data storage head device (target station)
(S)
Designate the head device of the target station that stores
the data to read.
Read data storage head device (local station)
(D1)
Designate the head device of the local station which will
store the data to be read.
Read data length
n2
Designate the number of data (words) to read.
Read completion device (local station)
Designate the device of the local station to turn on one
scan when the read is complete.
(D2)
(D2) ................... OFF: Incomplete
(D2) + 1 ............. OFF: Normal
1: Bit device ................................... X, Y, M, L, F, V, B
2: Bit device digit designation .......... K
3: Word device ................................ T, C, D, W, ST, R, ZR
4: Word device bit designation ........
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.
Jn
n1
(S)
Jn
n1
(S)
Setting details
ON: Complete
ON: Abnormal
Digit number
.
Word device
Bit number
MELSEC-Q
(D1)
n2
(D2)
(D1)
n2
(D2)
Setting range
1 to 239
1 to 64 (constant)
Bit device digit designation
3
Word device
T, C, D, W
3
Word device
When reading from Q/QnACPU
1 to 230 (constant)
When reading from PLC CPU other
5
than Q/QnACPU
1 to 32 (constant)
Bit device digit designation
3
Word device
1
Bit device
Word device bit designation
Bit device head number
J: Execution
during ON
JP: Execution
during startup
2
2
4
4 - 27

Advertisement

Table of Contents
loading

This manual is also suitable for:

Qj71e71-b5Qj71e71-b2

Table of Contents