Omron CS1G/H-CPUxxH Instructions Manual page 414

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

Advertisement

Symbol Math Instructions
3-11-11 SIGNED BINARY SUBTRACT WITH CARRY: –C(412)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
Subtraction at 2
0
0
0 0
0
0
Su+1: D00101
Su: D00100
6
8
5 1
F 9 2 D
R+1: D00101
R+1: D00100
CY
1
9
7
A
E
0
6
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
9
7
A
E
0
1
The Carry Flag (CY) is turned ON, so the actual number is –97AE06D3.
Because the content of D00101 and D00100 is negative, CY is used to turn
ON CIO 002100 to indicate this.
Subtracts 4-digit (single-word) hexadecimal data and/or constants with the
Carry Flag (CY).
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program
Step program
areas
OK
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
0
0
D
3
1
0
6
D
3
−C(412)
Mi: Minuend word
Mi
Su: Subtrahend word
Su
R
R: Result word
Subroutines
areas
OK
Mi
CIO 0000 to CIO 6143
W000 to W511
H000 to H511
A000 to A959
Section 3-11
–C(412)
@–C(412)
Not supported.
Interrupt tasks
OK
Su
R
A448 to A959
393

Advertisement

Table of Contents
loading

Table of Contents