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


 
5.3 Serial Communication
5.3.5 BIDIN instruction
5-79
G_BIDIN
5
MODULE DEDICATED
INSTRUCTION
G_BIDIN
5.3.5 BIDIN instruction
G_BIDIN
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction receives data using the bidirectional protocol.
G(P)_BIDIN
P: Executing condition
:
indicates any of the following
instructions.
G_BIDIN GP_BIDIN
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 receive 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
*1
Internal device
R, ZR
J\
U\G
Zn
Constant
Others
Bit Word Bit Word


Serial
Structured ladder/FBD
ST
G_BIDIN
EN ENO
d2
d1
Un*
s
G_BIDIN
(EN, Un*, s, d1, d2);ENO:=
s
d1
d2