3 . Instruction Set

API

44

 

Mnemonic

 

Operands

Function

 

 

 

 

 

 

D

BON

 

P

 

Check specified bit

 

 

status

 

 

 

 

 

Controllers

ES2/EX2

SS2

SA2

SX2

SE

 

Type

Bit Devices

 

 

 

Word devices

 

 

 

 

 

Program Steps

 

OP

X

Y

M

S

K

H KnX KnY KnM KnS T

C

D

E

F

BON, BONP: 7 steps

 

S

 

*

*

*

*

*

*

*

*

*

*

*

*

*

*

DBON, DBONP: 13 steps

D

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n

 

 

 

 

*

*

 

 

 

 

*

*

*

*

*

 

 

 

 

 

 

 

 

 

 

 

PULSE

 

 

 

16-bit

 

 

 

32-bit

 

 

 

 

 

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

SA2

SX2

ES2/EX2 SS2

SA2

SX2

 

 

 

 

 

SE

SE

SE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Operands:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

S: Source device D: Device for storing check result n: Bit number to be checked

Explanation:

1.The instruction checks the status of designated bit (specified by n) in S and stores the result in D

2.If operand S uses index F, only 16-bit instruction is available.

3.Valid range of operand n : n = 0~15 (16-bit), n = 0~31 (32-bit)

Program Example:

1.When X0 = ON, and bit15 of D0 = “1”, M0 will be ON. If the bit15 is “0”, M0 is OFF.

2.When X0 is OFF, M0 will retain its previous status.

 

X0

 

 

 

BON

 

D0

 

 

M0

 

K15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b15

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

0

 

0

0

1

0

0

1

0

0

0

0

0

0

1

0

0

M0=Off

 

b15

 

 

 

 

 

 

 

D0

 

 

 

 

 

 

b0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

1

 

0

0

1

0

0

1

0

0

0

0

0

0

1

0

0

M0=On

 

 

 

 

 

 

 

 

 

 

D0

 

 

 

 

 

 

 

 

3 - 109

Page 225
Image 225
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Mnemonic Operands Function, Bon