EasyManua.ls Logo

Omron CJ - INSTRUCTIONS

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
Loading...
3. Instructions
380
CS/CJ/NSJ Series Instructions Reference Manual (W474)
/B, /BL
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
BCD DIVIDE /B @/B 434
Divides 4-digit (single-word) BCD data and/or con-
stants.
DOUBLE BCD DIVIDE /BL @/BL 435
Divides 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
Dd
/B: Dividend word
/BL: First dividend word
WORD DWORD 1 2
Dr
/B: Divisor word
/BL: First divisor word
WORD DWORD 1 2
R First result word DWORD LWORD 2 4
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
Dd, Dr
OK OK OK OK OK OK OK OK OK OK
OK OK
--- OK --- --- --- ---
R --- ---
*BL
Dd, Dr
OK OK OK OK OK OK OK OK OK OK
OK
--- --- OK --- --- --- ---
R ---
Name Label
Operation
/B /BL
Error Flag ER ON when Dd is not BCD.
ON when Dr is not BCD.
ON when the divisor is 0.
OFF in all other cases.
ON when Dd, Dd+1 is not BCD.
ON when Dr, Dr +1 is not BCD.
ON when the divisor is 0.
OFF in all other cases.
Equals Flag = ON when as a result of the division R is 0.
OFF in all other cases.
ON when as a result of the division R+1, R is 0.
OFF in all other cases.
/B(434)
R
Dd
Dr
Dd: Dividend word
Dr: Divisor word
R: Result word
/BL(435)
R
Dd
Dr
Dd: 1st dividend word
Dr: 1st divisor word
R: 1st result word

Table of Contents

Related product manuals