![background image](http://html1.mh-extra.com/html/omron/sysmac-cs-series/sysmac-cs-series_reference-manual_742030480.webp)
440
Symbol Math Instructions
Section 3-11
Description
+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.
Flags
Precautions
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.
Examples
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.
3-11-9 SIGNED BINARY SUBTRACT WITHOUT CARRY: –(410)
Purpose
Subtracts 4-digit (single-word) hexadecimal data and/or constants.
Ladder Symbol
Variations
R+1
CY
+
R
CY
(BCD)
(BCD)
(BCD)
Au +1
Ad+1
Au
Ad
CY will turn
ON when there
is a carry.
Name
Label
Operation
Error Flag
ER
ON when Au, Au +1 is not BCD.
ON when Ad, Ad +1 is not BCD.
OFF in all other cases.
Equals Flag
=
ON when the result is 0.
OFF in all other cases.
Carry Flag
CY
ON when the addition results in a carry.
OFF in all other cases.
−
(410)
R
Mi
Su
Mi
: Minuend word
Su
: Subtrahend word
R
: Result word
Variations
Executed Each Cycle for ON Condition
–(410)
Executed Once for Upward Differentiation
@–(410)
Executed Once for Downward Differentiation Not supported.
Immediate Refreshing Specification
Not supported.
Содержание SYSMAC CS Series
Страница 2: ......
Страница 4: ...iv ...
Страница 30: ...xxx ...
Страница 186: ...146 List of Instructions by Function Code Section 2 4 ...
Страница 194: ...154 3 35 4 MOVE BIT MOVBC 568 1273 3 35 5 BIT COUNTER BCNTC 621 1275 3 35 6 GET VARIABLE ID GETID 286 1277 ...
Страница 1320: ...1280 Model Conversion Instructions Unit Ver 3 0 or Later Section 3 35 ...
Страница 1390: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2 ...
Страница 1391: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits ...
Страница 1392: ...1352 ASCII Code Table Appendix A ...
Страница 1404: ...1364 Revision History ...