9 - 17 9 - 17
MELSEC-Q
9 DEDICATED INSTRUCTIONS
9.7 SPBUSY Instruction
This instruction reads the status of data transmission and reception executed with
dedicated instructions.
Applicable device
Internal device
(System, user)
MELSECNET/H,
MELSECNET/10
Direct J
\
Set
data
Bit Word
File register
Bit Word
Special module
U
\G
Index register Zn Constant Others
(D) —
SPBUSY
SPBUSY
(D)
(D)
GP.SPBUSY
G.SPBUSY
Un
Un
Command
Command
[Executing
condition]
[Instruction
code]
Set data Description Set by Data type
Un
Start I/O signal of the module
(00 to FE: Top two-digit when I/O signals are expressed in 3-digit.)
User BIN16 bit
Set data
(D)
Head number of devices in which the read communication status is
stored.
System Device name
Function
(1) The function reads the execution status of a dedicated instruction directed to a
module designated by the start I/O signal, and stores it in the device designated
by (D) or later.
(2) The execution status is stored in (D) in the form of "1" at the corresponding bit
when the processing of each instruction is started, and "0" when the processing is
completed.
The processing of each instruction is completed when the completion flag of each
instruction is turned from on to off.
(D) + 0
b15
to b4b3
b2b1b0
Stores the execution status of ONDEMAND, OUTPUT, PRR, and BIDOUT instructions directed to channel 1.
Stores the execution status of INPUT and BIDIN instructions directed to channel 1.
Stores the execution status of ONDEMAND, OUTPUT, PRR, and BIDOUT instructions directed to channel 2.
Stores the execution status of INPUT and BIDIN instructions directed to channel 2.
Stores the execution status of GETE and PUTE instructions.
0
(Always stores "0".)
(D) + 1
(3) The SPBUSY instruction is executed for every scan while the read command is
ON, if the system is executing during ON. And, the instruction will be executed for
a single scan when the read command rises from OFF to ON, if the system is
starting up.