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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

3. Instruction Set<br />

API Mnemonic Operands Function<br />

87 D ABS P Absolute Value<br />

Controllers<br />

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

SE<br />

Type Bit Devices Word devices Program Steps<br />

OP X Y M S K H KnX KnY KnM KnS T C D E F ABS, ABSP: 3 steps<br />

D * * * * * * * * DABS, DABSP: 5 steps<br />

Operands:<br />

D: Device for absolute value operation<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 />

Explanation<br />

1. The instruct ion conducts absolute value operation on D<br />

2. This instruction is generally used in pulse execution mode (ABSP, DABSP).<br />

3. If operand D uses index F, then only 16-bit instruction is available.<br />

Program Example:<br />

When X0 goes from OFF to ON, ABS instruction obtains the absolute value of the content in D0.<br />

X0<br />

ABS D0<br />

3-239

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

Saved successfully!

Ooh no, something went wrong!