17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

267 D BSET Set ON Specified Bit of a Word<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong> <strong>SX2</strong><br />

SE<br />

Type<br />

Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F<br />

D * * * * * *<br />

n * * * * * * * * * * *<br />

BSET: 5 steps<br />

DBSET: 9 steps<br />

PULSE 16-bit 32-bit<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE SE SE <strong>SX2</strong><br />

Operands:<br />

D: Destination device to be Set ON n: Device specifying the bit to be Set ON<br />

Explanations:<br />

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

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

instruction.<br />

3. When BSET instruction executes, the output device specified by operand n will be ON and<br />

latched. To reset the ON state of the device, BRST instruction is required.<br />

Program Example:<br />

X0<br />

X1<br />

BSET K4Y0 D0<br />

Instruction: <strong>Operation</strong>:<br />

LDI X0 Load NC contact X0<br />

AND X1 Connect NO contact<br />

X1 in series.<br />

BSET K4Y0 D0 When D0 = k1,<br />

Y1 is ON and latched<br />

When D0 = k2,<br />

Y2 = ON and latched<br />

3-475

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!