B/+bl, Applicable program areas operands, Flags – Omron SYSMAC CP CP1E-N@@D@-@ User Manual

Page 198: 2 instructions, Operand specifications

Advertising
background image

2 Instructions

2-162

CP1E CPU Unit Instructions Reference Manual(W483)

+B/+BL

Applicable Program Areas

Operands

Operand Specifications

Flags

Instruction

Mnemonic

Variations

Function

code

Function

BCD ADD WITHOUT CARRY

+B

@+B

404

Adds 4-digit (single-word) BCD data and/or con-
stants.

DOUBLE BCD ADD WITHOUT
CARRY

+BL

@+BL

405

Adds 8-digit (double-word) BCD data and/or con-
stants.

Symbol

+B

+BL

Area

Step program areas

Subroutines

Interrupt tasks

Usage

OK

OK

OK

Operand

Description

Data type

Size

+B

+BL

+B

+BL

Au

+B: Augend word

+BL: First augend word

WORD

DWORD

1

2

Ad

+B: Addend word

+BL: First addend word

WORD

DWORD

1

2

R

+B: Result word

+BL: First result word

WORD

DWORD

1

2

Area

Word addresses

Indirect DM addresses

Constants

CF

Pulse bits

TR bits

CIO

WR

HR

AR

T

C

DM

@DM

*DM

Au, Ad

OK

OK

OK

OK

OK

OK

OK

OK

OK

OK

---

---

---

R

---

Name

Label

Operation

+B

+BL

Error Flag

P_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

P_EQ

ON when the result is 0.

OFF in all other cases.

ON when the result is 0.

OFF in all other cases.

Carry Flag

P_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.

+B(404)

R

Au

Ad

Au: Augend word

Ad: Addend word

R: Result word

+BL(405)

R

Au

Ad

Au: 1st augend word

Ad: 1st addend word

R: 1st result word

Advertising
This manual is related to the following products: