EasyManuals Logo
Home>Omron>Controller>CJ - INSTRUCTIONS

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

Table of Contents

Questions and Answers:

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
BrandOmron
ModelCJ - INSTRUCTIONS
CategoryController
LanguageEnglish

Related product manuals