Mitsubishi Electronics MELSEC Q series MELSEC L series ユーザーズマニュアル
5.3 Serial Communication
5.3.3 INPUT instruction
5-73
G_INPUT
5
MODULE DEDICA
TED
INSTRU
CTI
O
N
G_I
N
PUT
5.3.3
INPUT instruction
G_INPUT
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction receives data in the message format specified by the user using the
nonprocedural protocol.
nonprocedural protocol.
G_INPUT
indicates any of the following
instructions.
G_INPUT
Input argument
EN:
Executing condition
:Bit
Un*:
Start I/O number of the module
(00 to FE: Higher two digits when expressing the I/O number in
three digits)
(00 to FE: Higher two digits when expressing the I/O number in
three digits)
:ANY16
s:
Variable that stores control data
:Array of ANY16 [0..3]
Output argument
ENO:
Execution result
:Bit
d1:
Start number of the device that stores receive data
:ANY16
d2:
Variable that turns ON upon completion of the instruction
d2[1] also turns ON at the time of error completion.
d2[1] also turns ON at the time of error completion.
:Array of bit [0..1]
Setting
data
*1
Internal device
R, ZR
J
\
U
\G
Zn
Constant Others
Bit
Word
Bit
Word
Serial
Structured ladder/FBD
ST
G_INPUT
EN
ENO
d1
Un*
s
d2
G_INPUT
(EN, Un*, s, d1, d2);
ENO:=
s
d1
d2