Omron CS1G/H-CPUxxH Instructions Manual page 408

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

Advertisement

Symbol Math Instructions
Description
Flags
Precautions
Examples
3-11-9 SIGNED BINARY SUBTRACT WITHOUT CARRY: –(410)
Purpose
Ladder Symbol
Variations
+BCL(407) adds the BCD values in Au and Au+1, Ad and Ad+1, and CY and
outputs the result to R, R+1.
+
CY will turn
CY
ON when there
is a carry.
Name
Error Flag
ER
Equals Flag
=
Carry Flag
CY
If Au, Au +1 or Ad, Ad +1 are not BCD, an error is generated and the Error
Flag will turn ON.
If as a result of the addition, the content of R, R +1 is 00000000 hex, the
Equals Flag will turn ON.
If an addition results in a carry, the Carry Flag will turn ON.
Note To clear the Carry Flay (CY), execute the Clear Carry (CLC(041)) instruction.
When CIO 000000 is ON in the following example, D00101, D00100, D00111,
D00110, and CY will be added as 8-digit BCD values, and the result will be
output to D00121 and D00120.
Subtracts 4-digit (single-word) hexadecimal data and/or constants.
Variations
Executed Each Cycle for ON Condition
Executed Once for Upward Differentiation
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Au +1
Au
Ad+1
Ad
CY
R+1
R
Label
ON when Au, Au +1 is not BCD.
ON when Ad, Ad +1 is not BCD.
OFF in all other cases.
ON when the result is 0.
OFF in all other cases.
ON when the addition results in a carry.
OFF in all other cases.
−(410)
Mi: Minuend word
Mi
Su: Subtrahend word
Su
R: Result word
R
Section 3-11
(BCD)
(BCD)
(BCD)
Operation
–(410)
@–(410)
Not supported.
387

Advertisement

Table of Contents
loading

Table of Contents