Double Bcd Subtract Without Carry: -Bl(415) - Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual

Sysmac cs/cj/one nsj series programmable controllers
Table of Contents

Advertisement

Symbol Math Instructions
Description
Flags
Precautions
Examples
3-11-14 DOUBLE BCD SUBTRACT WITHOUT CARRY: –BL(415)
Purpose
Ladder Symbol
Variations
–B(414) subtracts the BCD values in Su from Mi and outputs the result to R. If
the result of the subtraction is negative, the result is output as a 10's comple-
ment.
CY will turn
CY
ON when there
is a borrow.
Name
Label
Error Flag
ER
Equals Flag
=
Carry Flag
CY
If Mi and/or Su are not BCD, an error is generated and the Error Flag will turn
ON.
If as a result of the subtraction, the content of R is 0000 hex, the Equals Flag
will turn ON.
If an addition results in a borrow, the Carry Flag will turn ON.
When CIO 000000 is ON in the following example, D00110 is subtracted from
D00100 as 4-digit BCD values, and the result will be output to D00120.
Subtracts 8-digit (double-word) BCD data and/or constants.
–BL(415)
Mi: 1st minuend word
Mi
Su: 1st subtrahend word
Su
R: 1st result word
R
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
(BCD)
Mi
(BCD)
Su
(BCD)
R
Operation
ON when Mi is not BCD.
ON when Su is not BCD.
OFF in all other cases.
ON when the result is 0.
OFF in all other cases.
ON when the subtraction results in a borrow.
OFF in all other cases.
Section 3-11
–BL(415)
@–BL(415)
Not supported.
453

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?

Questions and answers

Table of Contents