3. Instruction Set

API Mnemonic Operands

Function

Controllers

267

D

BSET

Set ON Specified Bit of a Word

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

BSET: 5 steps

D

 

 

 

 

 

 

 

*

*

*

*

*

*

 

 

DBSET: 9 steps

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:

D: Destination device to be Set ON n: Device specifying the bit to be Set ON

Explanations:

1.For ES2/EX2 models, only V1.20 or above supports the function.

2.Available range for the value in operand n: K0~K15 for 16-bit instruction; K0~K31 for 32-bit instruction.

3.When BSET instruction executes, the output device specified by operand n will be ON and latched. To reset the ON state of the device, BRST instruction is required.

Program Example:

 

 

 

 

 

X0 X1

 

Instruction:

Operation:

 

 

 

 

 

 

 

 

BSET K4Y0

D0

LDI

X0

Load NC contact X0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AND

X1

Connect NO contact

 

 

 

 

 

 

 

 

 

 

X1 in series.

 

 

 

 

 

 

 

 

BSET

K4Y0

D0 When D0 = k1,

Y1 is ON and latched

When D0 = k2,

Y2 = ON and latched

3 - 4 7 5

Page 591
Image 591
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Bset