5 MODULE DEDICATED INSTRUCTION
5.3 Serial Communication Instruction
61
5
G(P)_BIDIN
The following instruction can go in the dotted squares.
G_BIDIN, GP_BIDIN
■
Executing condition
■
Argument
*1 Local devices and file registers per program cannot be used as setting data.
Processing details
This instruction receives data using the bidirectional protocol.
Setting data
Instruction
Executing condition
G_BIDIN
GP_BIDIN
Input/output
argument
Name
Description
Data type
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)
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 read data
ANY16
d2
Variable that turns ON upon completion of the
instruction
d2[1] also turns ON at the time of error completion.
Array of bit [0..1]
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
(s)
(d1)
(d2)
Device
Item
Setting data
Setting range
Setting side
(s)[0]
Reception channel
Set the reception channel.
1: Channel 1 (CH1 side)
2: Channel 2 (CH2 side)
1, 2
User
(s)[1]
Reception result
The instruction completion status is stored.
0: Normal completion
Other than 0: Error completion (error code)
System
(s)[2]
Number of receive data
The number of received data are stored.
1 or more
System
(s)[3]
Allowable number of words for
receive data
Set the allowable number of words for receive data to be
stored in (d1).
1 or more
User
Serial
Modem
Structured ladder/FBD
ST
G_BIDIN
EN
ENO
d2
d1
Un*
s
G_BIDIN
(EN, Un*, s, d1, d2);
ENO:=
Содержание MELSEC System Q
Страница 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Страница 2: ......
Страница 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Страница 309: ...I 307 MEMO ...
Страница 315: ......