EasyManua.ls Logo

Omron CJ - INSTRUCTIONS User Manual

Omron CJ - INSTRUCTIONS
1308 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #395 background imageLoading...
Page #395 background image
357
3. Instructions
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Symbol Math Instructions
3
+BC/+BCL
Flags
Function
z +BC
+BC(406) adds BCD values in Au, Ad, and CY and outputs the result to R.
z +BCL
+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.
Hint
• To clear the Carry Flay (CY), execute the Clear Carry (CLC(041)) instruction.
Example Programming
Name Label
Operation
+BC +BCL
Error Flag ER • ON when Au is not BCD.
• ON when Ad is not BCD.
• OFF in all other cases.
• 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.
• 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.
• ON when the addition results in a carry.
• OFF in all other cases.
+
CY
RCY
(BCD)
(BCD)
(BCD)
Au
Ad
CY will turn ON
when there is a
carry.
+
R+1
CY
R
CY
(BCD)
(BCD)
(BCD)
Au+1
Ad+1
Au
Ad
CY will turn ON
when there is a
carry.
+BC
D100
D110
D120
0.00
+BCL
D100
D110
D120
0.00
When CIO 0.00 is ON in the following example, D100, D110,
and CY will be added as 4-digit BCD values, and the result will
be output to D120.
When CIO 0.00 is ON in the following example, D101, D100,
D111, D110, and CY will be added as 8-digit BCD values, and
the result will be output to D121 and D120.

Table of Contents

Question and Answer IconNeed help?

Do you have a question about the Omron CJ - INSTRUCTIONS and is the answer not in the manual?

Omron CJ - INSTRUCTIONS Specifications

General IconGeneral
CategoryController
ManufacturerOmron
TypePLC
SeriesCJ Series
Instruction TypesBit, Compare, Data Control, Data Processing
Programming LanguagesLadder Diagram (LD), Structured Text (ST), Function Block Diagram (FBD), Sequential Function Chart (SFC)

Related product manuals