![background image](http://html1.mh-extra.com/html/eaton/elc-pb/elc-pb_programming-manual_4017452250.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-81
X0
CMP
D0
D2
M0
M0
SUB
D0
D2
D4
M2
SUB
D2
D0
D4
M1
Indication of the negative value and absolute value
1.
The content of the most significant bit of the register indicates whether the value is positive or
negative. It is a positive value when the most significant bit (MSB) = “0” and it is a negative
value when the MSB = “1”.
2.
If it is a negative value, the absolute value can be obtained by using the NEG instruction.
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
(D0=2)
(D0=1)
(D0=0)
1 1 1
1
1
1
1
1
1
1
1
1
1 1
1
1
(D0=-1)
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
(D0)+1=1
1 1 1
1
1
1
1
1
1
1
1
1
1 1
1
0
(D0=-2)
0
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
(D0)+1=2
1 1 1
1
1
0
1
1
1
1
1
1
1 1
1
1
(D0=-3)
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
(D0)+1=3
1 1 1
1
1
0
1
1
1
1
1
1
1 1
1
0
(D0=-4)
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
0
(D0)+1=4
1 1 1
1
1
1
1
1
1
0
1
1
1 1
1
1
(D0=-5)
0
0
1
1
0
0
0
0
0
0
0
0
0
0
0
0
(D0)+1=5
1 0 0
0
0
1
0
0
0
0
0
0
0 0
0
1
(D0=-32,765)
1
1
1
1
1
1
1
1
0
1
1
1
1
0
1
1
(D0)+1=32,765
1 0 0
0
0
1
0
0
0
0
0
0
0 0
0
0
(D0=-32,766)
1
1
1
0
1
1
1
1
0
1
1
1
1
1
1
1
(D0)+1=32,766
1 0 0
0
0
0
0
0
0
0
0
0
0 0
0
1
(D0=-32,767)
1
1
1
1
1
1
1
1
0
1
1
1
1
1
1
1
(D0)+1=32,767
1 0 0
0
0
0
0
0
0
0
0
0
0 0
0
0
(D0=-32,768)
(D0)+1=-32,768
1 0 0
0
0
0
0
0
0
0
0
0
0 0
0
0
Max. absolute value is 32,767
Содержание 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...