Double Signed Binary Subtract With Carry: -Cl(413) - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

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

Advertisement

Symbol Math Instructions
Precautions
Examples
3-11-12 DOUBLE SIGNED BINARY SUBTRACT WITH CARRY: –CL(413)
Purpose
Ladder Symbol
Variations
Applicable Program Areas
Operand Specifications
448
When –C(412) is executed, the Error Flag will turn OFF.
If as a result of the subtraction, the content of R is 0000 hex, the Equals Flag
will turn ON.
If the subtraction results in a borrow, the Carry Flag will turn ON.
If the result of subtracting a negative number and CY from a positive number
is negative (in the range 8000 to FFFF hex), the Overflow Flag will turn ON.
If the result of subtracting a positive number and CY from a negative number
is positive (in the range 0000 to 7FFF hex), the Underflow Flag will turn ON.
If as a result of the subtraction, the content of the leftmost bit of R is 1, the
Negative Flag will turn ON.
Note To clear the Carry Flag (CY), execute the Clear Carry (CLC(041)) instruction.
When CIO 000000 is ON in the following example, D00110 and CY will be
subtracted from D00100 as 4-digit signed binary values and the result will be
output to D00120.
Subtracts 8-digit (double-word) hexadecimal data and/or constants with the
Carry Flag (CY).
–CL(413)
Mi
Su
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Block program
areas
OK
Area
CIO Area
Work Area
Holding Bit Area
Auxiliary Bit Area
Timer Area
Counter Area
Mi: Minuend word
Su: Subtrahend word
R: Result word
Step program
Subroutines
areas
OK
OK
Mi
CIO 0000 to CIO 6142
W000 to W510
H000 to H510
A000 to A958
T0000 to T4094
C0000 to C4094
Section 3-11
–CL(413)
@–CL(413)
Not supported.
Interrupt tasks
OK
Su
R
A448 to A958

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents