Write Instruction - Mitsubishi QCPU Structured Programming Manual

Melsec-q series
Hide thumbs Also See for QCPU:
Table of Contents

Advertisement

J_WRITE, G_WRITE
5.4.3

WRITE instruction

J(P)_WRITE
G(P)_WRITE
Structured ladder
J_WRITE
EN
ENO
Jn*
d1
s1
d2
s2
Input argument
EN:
Jn*:
Un*:
s1:
s2:
Output argument
ENO:
d1:
d2:
Function
This instruction writes data to a word device of another station.
5.4 CC-Link IE Controller Network, MELSECNET/H, and Ethernet Instruction
5-102
5.4.3 WRITE instruction
G_WRITE
EN
ENO
ENO:=
J_WRITE
ENO:=
G_WRITE
Un*
d1
s1
d2
s2
Executing condition
Network number of the host station (1 to 239, 254)
"
254: Network specified in
Valid module during other station
"
access
Start I/O number of the module
(00 to FE: Higher two digits when expressing the I/O number in
three digits)
Variable that stores control data
Start number of the host station's device that stores write data :ANY16
Execution result
Start number of the target station's device to which data are
written
Variable that turns ON upon completion of the instruction
d2[1] also turns ON at the time of error completion.
Internal device
Setting
data
Bit
Word
S1
S2
d1
d2
J_WRITE, G_WRITE
P: Executing condition
instructions.
ST
J_WRITE
G_WRITE
(EN, Jn*, s1, s2, d1, d2);
(EN, Un*, s1, s2, d1, d2);
:Bit
:ANY16
:ANY16
:Array of ANY16 [0..17]
:Bit
:ANY16
:Array of bit [0..1]
J
\
R, ZR
U
Bit
Word
*1: Local devices and file registers per program cannot be used as setting data.
:
indicates any of the following
JP_WRITE
GP_WRITE
Zn
Constant Others
\G

Advertisement

Table of Contents
loading

Table of Contents