B/-Bl - Omron CJ - REFERENCE MANUAL 02-2010 Reference Manual

Table of Contents

Advertisement

–B/–BL
Instruction
BCD SUBTRACT WITHOUT
CARRY
DOUBLE BCD SUBTRACT
WITHOUT CARRY
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
–B: Minuend word
Mi
–BL: First minuend word
–B: Subtrahend word
Su
–BL: First subtrahend word
–B: Result word
R
–BL: First result word
Operand Specifications
Area
CIO
WR
HR
MI, Su
–B
OK
OK
OK
R
Mi, Su
–BL
OK
OK
OK
R
Flags
Name
Error Flag
ER
Equals Flag
=
Carry Flag
CY
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Mnemonic
Variations
–B
@–B
–BL
@–BL
–B
–B(414)
Mi
Mi: Minuend word
Su
Su: Subtrahend word
R
R: Result word
Block program areas
Step program areas
OK
OK
Description
Word addresses
AR
T
C
DM
EM
OK
OK
OK
OK
OK
OK
OK
OK
OK
OK
Label
• ON when Mi is not BCD.
• ON when Su is not BCD.
• OFF in all other cases.
• ON when the result is 0.
• OFF in all other cases.
• ON when the subtraction results in a borrow.
• OFF in all other cases.
Function
code
Subtracts 4-digit (single-word) BCD data and/or
414
constants.
Subtracts 8-digit (double-word) BCD data and/or
415
constants.
Subroutines
OK
Data type
–B
–BL
WORD
DWORD
WORD
DWORD
WORD
DWORD
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
@EM
*EM
OK
OK
OK
OK
---
OK
OK
OK
---
---
Operation
–B
• ON when Mi and/or Mi +1 are not BCD.
• ON when Su and/or Su +1 are not BCD.
• OFF in all other cases.
• ON when the result is 0.
• OFF in all other cases.
• ON when the subtraction results in a borrow.
• OFF in all other cases.
3. Instructions
Function
–BL
–BL(415)
Mi: 1st minuend word
Mi
Su: 1st subtrahend word
Su
R: 1st result word
R
SFC action or
Interrupt tasks
transition programs
OK
OK
Size
–B
–BL
1
2
1
2
1
2
Pulse
TK
CF
bits
Indirect
IR
using IR
---
OK
---
---
---
---
OK
---
---
---
–BL
3
TR
bits
---
---
363

Advertisement

Table of Contents
loading

Table of Contents