Omron CP - PROGRAMMING MANUAL 05-2007 Programming Manual page 398

Cp1h/cp1l cpu unit
Table of Contents

Advertisement

Symbol Math Instructions
0.00
CY
Subtraction at 1
Mi+1:
CIO 201
Mi:
CIO 200
0 9 5 8
3 9
Su+1:
CIO 211
Su:
CIO 210
1
7
0
7
2
6
09583960 + (100000000 – 17072641)
R+1: CIO 301
R+1: CIO 300
CY
1
9 2 5 1
The Carry Flag (CY) is ON, so the result is subtracted from 0000 0000.
Subtraction at 2
0
0
0 0
0
0
Su+1:
CIO 301
Su:
CIO 300
9 2 5 1
1 3 1 9
00000000 + (100000000 – 92511319)
CY
R+1: CIO 301
R+1: CIO 300
1
0
7
4 8
Final Subtraction Result
Mi+1:
CIO 201
Mi:
CIO 200
2 0 F 5
5 A
Su+1:
CIO 211
Su:
6
8
5 1
F 9 2 D
R+1: CIO 301
R+1: CIO 300
CY
1
0
7
4
8
8
The Carry Flag (CY) will be turned ON, so the actual number is –7,488,681.
Because the content of CIO 301 and CIO 300 is negative, CY is used to turn
ON CIO 302.00 to indicate this.
RSET
302.00
BL
(1)
200
210
300
BL
(2)
#00000000
300
300
CY
" " display
SET
302.00
6
0
4
1
1 3 1 9
0
0
8 6 8 1
1
0
CIO 210
6
8
1
Section 3-10
365

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents