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
378
CS/CJ/NSJ Series Instructions Reference Manual (W474)
/U, /UL
Applicable Program Areas
Operands
z Operand Specifications
Flags
Instruction Mnemonic Variations
Function
code
Function
UNSIGNED BINARY DIVIDE /U @/U 432
Divides 4-digit (single-word) unsigned hexadeci-
mal data and/or constants.
DOUBLE UNSIGNED BINARY
DIVIDE
/UL @/UL 433
Divides 8-digit (double-word) unsigned hexadeci-
mal data and/or constants.
Symbol
/U /UL
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
/U /UL /U /UL
Dd
/U: Dividend word
/UL: First dividend word
UINT UDINT 1 2
Dr
/U: Divisor word
/UL: First divisor word
UINT UDINT 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
/U
Dd, Dr
OK OK OK OK OK OK OK OK OK OK
OK OK
--- OK --- --- --- ---
R --- ---
/UL
Dd, Dr
OK OK OK OK OK OK OK OK OK OK
OK
--- --- OK --- --- --- ---
R ---
Name Label Operation
Error Flag ER ON when the divisor is 0.
OFF in all other cases.
Equals Flag = ON when as a result of the division R/R+1, R is 0.
OFF in all other cases.
Negative Flag N ON when the leftmost bit of the R/R+1, R is 1.
OFF in all other cases.
/U(432)
R
Dd
Dr
Dd: Dividend word
Dr: Divisor word
R: Result word
/UL(433)
R
Dd
Dr
Dd: 1st dividend word
Dr: 1st divisor word
R: 1st result word

Table of Contents

Related product manuals