Delta DVP-ES2 User Manual
Page 355
3 . I n s t r u c t i o n S e t
3 - 2 3 9
API Mnemonic Operands
Function
87
D ABS P
Absolute Value
Controllers
ES2/EX2 SS2 SA2
SE
SX2
Bit Devices
Word devices
Program Steps
Type
OP
X Y
M S K H KnX KnY KnM KnS T C D E F
D
*
*
*
*
*
*
*
*
ABS, ABSP: 3 steps
DABS, DABSP: 5 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
D: Device for absolute value operation
Explanation
1.
The instruct ion conducts absolute value operation on D
2.
This instruction is generally used in pulse execution mode (ABSP, DABSP).
3. If
operand
D uses index F, then only 16-bit instruction is available.
Program Example:
When X0 goes from OFF to ON, ABS instruction obtains the absolute value of the content in D0.
X0
ABS
D0