Mitsubishi Electronics MELSEC Q series MELSEC L series Home Theater Server User Manual


 
5-74
5.3 Serial Communication
5.3.3 INPUT instruction
G_INPUT
Control Data
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/FBD]
Device Item Setting data Setting range Setting side
[0]
Reception channel
Set the reception channel.
1: Channel 1 (CH1 side)
2: Channel 2 (CH2 side)
1, 2 User
[1]
Reception result
The instruction completion status is stored.
0 : Normal completion
Other than 0 :
Error completion (error code)
System
[2]
Number of receive data
The number of receive data are stored.
0 or more System
[3]
Allowable number of words for receive data
Set the allowable number of words for receive data to
be stored in .
1 or more User
s
s
s
s
d1
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