Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 495

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Symbol Math Instructions
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)
CY
R+1: D00101
R+1: D00100
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:
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
CY
CY
SET
6
0
4
1
1 3 1 9
0
0
8 6 8 1
1
0
D00100
6
8
1
Section 3-11
002100
BL
(1)
0200
0120
D00100
BL
(2)
#00000000
D00100
D00100
" " display
002100
455

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents