5 MODULE DEDICATED INSTRUCTION
5.3 Serial Communication Instruction
63
5
Communication status check
G(P)_SPBUSY
The following instruction can go in the dotted squares.
G_SPBUSY, GP_SPBUSY
■
Executing condition
■
Argument
Processing details
This instruction reads the data transmission/reception status.
Program example
• The following program reads out the communication status of the target module. (For the Q series C24 whose I/O signals
are X/Y00 to X/Y1F)
Instruction
Executing condition
G_SPBUSY
GP_SPBUSY
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
Output argument
ENO
Execution result
Bit
d
Variable that stores read communication status
ANY32
Setting
data
Internal device
R, ZR
J
\
U
\G
Zn
Constant
Others
Bit
Word
Bit
Word
(d)
[Structured ladder/FBD]
[ST]
G_SPBUSY(Var_Flag, H00, D0); (* Reads communication status *)
Serial
Modem
Structured ladder/FBD
ST
EN
ENO
d
Un*
G_SPBUSY
G_SPBUSY
(EN, Un*, d);
ENO:=
Reads communication
status
Содержание 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: ......