Omron CS1G/H-CPUxxH Instructions Manual page 423

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Symbol Math Instructions
402
000000
Subtraction at 1
Mi+1: CIO 0201 Mi: CIO 0200
0 9 5 8
3 9
Su+1: CIO 0121 Su: CIO 0120
1
7
0
7
2
6
09583960 + (100000000 – 17072641)
R+1: D00101
R+1: D00100
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: D00101
Su: D00100
9 2 5 1
1 3 1 9
00000000 + (100000000 – 92511319)
R+1: D00101
R+1: D00100
CY
1
0
7
4 8
Final Subtraction Result
Mi+1: CIO 0201 Mi: CIO 0200
2 0 F 5
5 A
Su+1: D00101
Su: D00100
6
8
5 1
F 9 2 D
R+1: D00101
R+1: D00100
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 D00101 and D00100 is negative, CY is used to turn
ON CIO 002100 to indicate this.
RSET
−BL
CY
−BL
#00000000
CY
SET
6
0
4
1
1 3 1 9
0
0
8 6 8 1
1
0
6
8
1
Section 3-11
002100
(1)
0200
0120
D00100
(2)
D00100
D00100
"−" display
002100

Advertisement

Table of Contents
loading

Table of Contents