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
Summary of Contents for MELSEC System Q
Page 1: ...MELSEC Q L Structured Programming Manual Special Instructions ...
Page 2: ......
Page 307: ...10 SFC CONTROL INSTRUCTION 10 2 SFC Transition Condition Comment Read 305 10 MEMO ...
Page 309: ...I 307 MEMO ...
Page 315: ......