Omron CJ - REFERENCE MANUAL 10-2009 Reference Manual page 406

Table of Contents

Advertisement

3. Instructions
/, /L
Instruction
SIGNED BINARY DIVIDE
DOUBLE SIGNED BINARY
DIVIDE
Symbol
Applicable Program Areas
Function block
Area
definitions
Usage
OK
Operands
Operand
/:
Dividend word
Dd
/L: First dividend word
/:
Divisor word
Dr
/L: First divisor word
R
First result word
Operand Specifications
Area
CIO
WR
HR
Dd, Dr
/
OK
OK
OK
R
Dd, Dr
/L
OK
OK
OK
R
Flags
Name
Error Flag
ER
Equals Flag
=
Negative Flag
N
368
Mnemonic
Variations
/
@/
/L
@/L
/
/(430)
Dd
Dd: Dividend word
Dr
Dr: Divisor 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 the divisor is 0.
• OFF in all other cases.
• ON when as a result of the division, R/R+1, R is 0.
• OFF in all other cases.
• ON when the leftmost bit of the R/R+1, R is 1.
• OFF in all other cases.
Function
code
Divides 4-digit (single-word) signed hexadecimal
430
data and/or constants.
Divides 8-digit (double-word) signed hexadecimal
431
data and/or constants.
Subroutines
Interrupt tasks
OK
Data type
/
/L
INT
DINT
INT
DINT
DWORD
LWORD
Indirect
DM/EM
Registers
Con-
addresses
stants
@DM
*DM
DR
IR
@EM
*EM
OK
OK
OK
OK
---
---
---
OK
OK
OK
---
---
---
Operation
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Function
/L
/L(431)
Dd
Dd: 1st dividend word
Dr
Dr: 1st divisor word
R
R: 1st result word
SFC action or
transition programs
OK
OK
Size
/
/L
1
2
1
2
2
4
Pulse
TR
TK
CF
bits
bits
Indirect
using IR
OK
---
---
---
---
OK
---
---
---
---

Advertisement

Table of Contents
loading

Table of Contents