Delta AS Series Programming Manual page 658

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

API
Instruction code
1210
D
ABS
Device
X
Y
M
D
Data
type
D
Symbol
Explanation
1.
This instruction finds the absolute value of the value in the device specified by D.
2.
In general, the ABSP pulse instruction is used.
3.
Only the 32-bit instructions can use the 32-bit counter, but not the device E.
4.
If the value used here is a smallest negative number for the 16-bit number or 32-bit number, this instruction is not
executed.
Example
Supposedly the value in D0 is originally -1234. When X0.0 switches from OFF to ON, the instruction finds the absolute
value of -1234 in D0. That is, the value in D0 becomes 1234 after the instruction is executed.
Operand
P
D
S
T
C
HC
Pulse instruction
D : Device holding the original value
Ch ap te r 6 Ap pl ie d Instruc ti ons
Finding the absolute value
D
FR
SM
SR
16-bit instruction
AS
AS
Function
E
K
16#
"$"
32-bit instruction
AS
6 - 3 7 9
F
6_

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents