G_INPUT
Control Data
Device
Reception channel
[0]
s
Reception result
[1]
s
Number of receive data
[2]
s
Allowable number of words for receive data
[3]
s
Program Example
The following program stores data which are received using the nonprocedural protocol in the
devices starting from D10.
(For the Q series C24 whose I/O signals are X/Y00 to X/Y1F)
[Structured ladder]
5.2 Serial Communication and Modem Interface Instruction
5-68
5.2.3 INPUT instruction
Item
Set the reception channel.
1: Channel 1 (CH1 side)
2: Channel 2 (CH2 side)
The instruction completion status is stored.
0
Other than 0
The number of receive data are stored.
Set the allowable number of words for receive data to
be stored in
Setting data
: Normal completion
: Error completion (error code)
.
d1
Setting range
Setting side
1, 2
User
System
–
0 or more
System
1 or more
User
Sets receive
channel to 1
Sets allowable number
of words for receive data
to 10 words
Receives data
Stores receive data
Turns error completion
flag ON
Turns error completion
flag OFF