Bc/+Bcl - Omron SYSMAC CP Series Instruction & Reference Manual

Cpu unit
Hide thumbs Also See for SYSMAC CP Series:
Table of Contents

Advertisement

2 Instructions

+BC/+BCL

Instruction
BCD ADD WITH CARRY
DOUBLE BCD ADD WITH
CARRY
Symbol
Applicable Program Areas
Area
Usage
Operands
Operand
+BC: Augend word
Au
+BCL: First augend word
+BC: Addend word
Ad
+BCL: First addend word
+BC: Result word
R
+BCL: First result word
Operand Specifications
Word addresses
Area
CIO
WR
HR
Au, Ad
OK
OK
OK
R
Flags
Name
Error Flag
P_ER
Equals Flag
P_EQ
Carry Flag
P_CY
2-164
Mnemonic
Variations
+BC
@+BC
+BCL
@+BCL
+BC
+BC(406)
Au
Au: Augend word
Ad
Ad: Addend word
R
R: Result word
Step program areas
OK
Description
AR
T
C
DM
OK
OK
OK
OK
Label
• ON when Au is not BCD.
• ON when Ad 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.
Function
code
Adds 4-digit (single-word) BCD data and/or con-
406
stants with the Carry Flag (CY).
Adds 8-digit (double-word) BCD data and/or con-
407
stants with the Carry Flag (CY).
Subroutines
OK
Data type
+BC
+BCL
WORD
DWORD
WORD
DWORD
WORD
DWORD
Indirect DM addresses
Constants
@DM
*DM
OK
OK
OK
---
Operation
+BC
• 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.
CP1E CPU Unit Instructions Reference Manual(W483)
Function
+BCL
+BCL(407)
Au
Au: 1st augend word
Ad
Ad: 1st addend word
R
R: 1st result word
Interrupt tasks
OK
Size
+BC
+BCL
1
2
1
2
1
2
CF
Pulse bits
TR bits
---
---
---
+BCL

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents