Omron SYSMAC CS Series Instruction & Reference Manual page 305

Hide thumbs Also See for SYSMAC CS Series:
Table of Contents

Advertisement

Function
 +B
+B(404) adds the BCD values in Au and Ad and outputs the result to R.
 +BL
+BL(405) adds the BCD values in Au and Au+1 and Ad and Ad+1 and outputs the result to R, R+1.
Example Programming
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Au
+
Ad
CY will turn ON
CY
R
when there is a
carry.
Au+1
+
Ad+1
CY will turn ON
CY
R+1
when there is a
carry.
0.00
When CIO 0.00 is ON in the following example, D100 and
+B
D110 will be added as 4-digit BCD values, and the result will
D100
be output to D120.
D110
D120
0.00
When CIO 0.00 is ON in the following example, D101 and
+BL
D100 and D111 and D110 will be added as 8-digit BCD
D100
values, and the result will be output to D121 and D120.
D110
D120
(BCD)
(BCD)
(BCD)
(BCD)
Au
(BCD)
Ad
R
(BCD)
3. Instructions
3
271

Advertisement

Table of Contents
loading

Table of Contents