9 DEDICATED INSTRUCTIONS

9.7 SPBUSY Instruction

MELSEC-Q

This instruction reads the status of data transmission and reception executed with dedicated instructions.

 

 

 

 

 

 

 

 

 

 

 

 

 

Applicable device

 

 

 

 

 

 

 

 

 

 

 

 

 

Set

Internal device

 

 

 

 

 

MELSECNET/H,

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

MELSECNET/10

Special module

 

 

 

 

 

 

 

 

 

 

 

data

(System, user)

 

File register

 

Index register Zn

Constant

Others

 

 

Direct J

\

U

\G

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Bit

 

Word

 

 

 

 

 

Bit

 

Word

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(D)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Instruction

 

[Executing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

code]

 

condition]

 

 

Command

 

 

 

 

 

 

 

 

Un

 

(D)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SPBUSY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

G.SPBUSY

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SPBUSY

 

 

 

 

 

 

Command

 

 

 

 

GP.SPBUSY

 

Un

 

 

(D)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Set data

Function

Set data

Description

Set by

Data type

Un

Start I/O signal of the module

User

BIN16 bit

(00 to FE: Top two-digit when I/O signals are expressed in 3-digit.)

 

 

 

(D)

Head number of devices in which the read communication status is

System

Device name

stored.

 

 

 

(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.

b15 to b4 b3b2b1b0

(D) + 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

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.

 

 

 

 

 

 

 

(D) + 1

0

 

 

 

 

(Always stores "0".)

(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.

9 - 17

9 - 17