Reading/Writing Word Devices Of Other Stations (Znrd/Znwr) - Mitsubishi Electric Melsec Q Series User Manual

Ethernet interface module
Hide thumbs Also See for Melsec Q Series:
Table of Contents

Advertisement

4 WHEN THE Q/LCPU ACCESSES THE PROGRAMMABLE CONTROLLER
OF ANOTHER STATION USING THE DATA LINK INSTRUCTION

4.7 Reading/Writing Word Devices of Other Stations (ZNRD/ZNWR)

4 - 31
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 or abnormal read completion status is stored in the data link instruction
execution result (ZNRD instruction) storage area (address: 207).
When the read completion device ((D2) + 1) is on due to abnormal end, read the
error code stored in the area mentioned above and perform the necessary
corrective action. (See the User's Manual (Basic).)
Jn
n1
(S)
Jn
n1
(S)
Setting details
ON: Complete
ON: Abnormal
Digit number
.
Word device
Bit number
MELSEC-Q/L
(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/L/QnACPU
1 to 230 (constant)
When reading from a programmable
controller CPU other than
Q/L/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 - 31

Advertisement

Table of Contents
loading

Table of Contents