Справочник Пользователя для Mitsubishi Electronics MELSEC Q series MELSEC L series

Скачать
Страница из 412
5-76
5.3 Serial Communication
5.3.4 BIDOUT instruction
G_BIDOUT
5.3.4  
BIDOUT instruction
G_BIDOUT
*1: Local devices and file registers per program cannot be used as setting data.
Function
This instruction sends data using the bidirectional protocol.
G(P)_BIDOUT
P: Executing condition
:
 indicates any of the following 
instructions.
G_BIDOUT
GP_BIDOUT
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
s1:
Variable that stores control data
:Array of ANY16 [0..2]
s2:
Start number of the device that stores send data
:ANY16
Output argument
ENO:
Execution result
:Bit
d:
Variable that turns ON upon completion of the instruction
d[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_BIDOUT
EN
ENO
Un*
s1
s2
d
G_BIDOUT
(EN ,Un* ,s1 ,s2 ,d);
ENO:=
s1
s2
d