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-67
Flag operations:
16-bit instruction:
1.
If the operation result is “0”, then the Zero flag, M1020 is set to ON.
2.
If the operation result is less than -32,768, the borrow flag, M1021 is set to ON.
3.
If the operation result exceeds 32,767, the carry flag, M1022 is set to ON.
32-bit instruction:
1.
If the operation result is “0”, then the Zero flag, M1020 is set to ON.
2.
If the operation result is less than -2,147,483,648, the borrow flag, M1021 is set to ON.
3.
If the operation result exceeds 2,147,483,647, the carry flag, M1022 is set to ON
-2
-1
0 -32,768
、 、 、
、 、
-1
0
1
32,767 0 1 2
、 、 、
-2
-1
0
-2,147,483,648
、 、 、
、 、
-1
0
1
2,147,483,647
0
1
2
、 、 、
16-bit command: Zero flag
Zero flag
Zero flag
Borrow flag
the most significant bit
becomes 1 (negative)
32-bit command: Zero flag
Zero flag
Zero flag
the most significant bit
becomes 0 (positive)
Carry flag
Borrow flag
the most significant bit
becomes 1 (negative)
the most significant bit
becomes 0 (positive)
Carry flag
Summary of Contents for ELC-PB
Page 1: ......
Page 5: ...For more information visit www eaton com MN05003003E iv...
Page 29: ...ELC Programming Manual For more information visit www eaton com MN05003003E 1 24 MEMO...
Page 502: ...3 Instruction Set MN05003003E For more information visit www eaton com 3 333...
Page 601: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 432...
Page 625: ...ELC Programming Manual For more information visit www eaton com MN05003003E 3 456...