20 SERIAL COMMUNICATION INSTRUCTIONS
20.4 Receiving Data Using the Nonprocedural Protocol
1685
20
20.4 Receiving Data Using the Nonprocedural Protocol
G.INPUT
This instruction receives data in a user-defined message format by using the nonprocedural protocol.
■Execution condition
■Description, range, data type
*1 When specifying setting data by using a label, define an array to secure enough operation area and specify an element of the array
label.
■Applicable devices
*1 Index modification is not available.
*2 FX and FY cannot be used.
*3 RD cannot be used.
*4 FD cannot be used.
*5 T, ST, C, and FD cannot be used.
Ladder ST
ENO:=G_INPUT(EN,U,s,d1,d2);
FBD/LD
Instruction Execution condition
G.INPUT
Operand Description Range Data type Data type (label)
(U) Start I/O number (first three digits in four-digit hexadecimal
representation) of a module
00H to FEH 16-bit unsigned binary ANY16
(s) Start device where control data is stored Refer to the control data. Device name ANY16
*1
(d1) Start device for storing the receive data Device name ANY16
*1
(d2) Device that turns on for one scan upon completion of the
instruction
When the instruction completes with an error, (d2)+1 also
turns on.
Bit ANYBIT_ARRAY
(Number of elements: 2)
EN Execution condition Bit BOOL
ENO Execution result Bit BOOL
Operand Bit Word Double word Indirect
specification
Constant Others
(U)
X, Y, M, L,
SM, F, B, SB,
FX, FY
J\ T, ST, C, D, W,
SD, SW, FD, R,
ZR, RD
U\G, J\,
U3E\(H)G
Z LT, LST,
LC
LZ K, H E $
(U)
*1
*3
(s)
*4
(d1)
*4
(d2)
*2
*5
RnCPU
RnENCPU
RnSFCPU RnSFCPURnPCPURnPCPU
(Standard) (Safety)
(Redundant)
(Process)