![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452422.webp)
3 . I n s t r u c t i o n S e t
M N050 03003E F or mo re infor ma tio n vi sit:
w w w. e a t o n . c o m
3-253
API Mnemonic
Operands
Function
87
D ABS P
D
Absolute Value
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
ELC ELCB
ELCM
PB PC/PA/PH
PV
PB PH/PA
32 16
P
32 16
P
32 16
P 32 16 P 32 16
P
Operands:
D
: Source and destination for absolute value
Explanation
1.
When the instruction is executed, take the absolute value of the specified value in
D
.
2.
This instruction works best using the pulse option (ABSP, DABSP).
3. If
D
uses index F, then only the 16-bit instruction is available.
Program Example:
When X0 goes from OFF
→
ON, take the absolute value of the contents of D0.
X0
ABS
D0
Содержание ELC-PB
Страница 1: ......
Страница 5: ...For more information visit www eaton com MN05003003E iv...
Страница 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Страница 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Страница 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Страница 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...