5 Applied Instructions and Basic Usage
DVP-20PM Application Manual
5-85
API
Applicable model
20PM
87
D
D
ABS
P
P
Absolute value
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
D
* * * * * * * *
Note: The instruction supports V devices and Z devices. (If the 16-bit
instruction is used, Z devices can not be used. If the 32-bit
instruction is used, V devices can not be used.)
Please refer to specifications for more information about device
ranges.
If KnX/KnY/KnM/KnS is used, it is suggested that X/devices/Y
devices/M device numbers/S device numbers should start from a
number which is a multiple of 16 in the octal numeral system or in
the decimal numeral system, e.g. K1X0 (octal numeral system),
K4SY20 (octal numeral system), K1M0 (decimal numeral system),
and K4S16 (decimal numeral system).
16-bit instruction (9 steps)
ABS
Continuity
instruction
ABS P
Pulse
instruction
32-bit instruction (17 steps)
DABS
Continuity
instruction
DABSP
Pulse
instruction
Flag: None
Explanation
When the instruction AB
S is executed, the absolute value of the value in D is
gotten.
D: Device whose absolute value will be gotten
Generally, the pulse instructions ABSP and DABSP are used.
Example
When X0 is turned from OFF to ON, the absolute value of the value in D0 is
gotten.
X0
ABS D0