Omron CJ - INSTRUCTIONS Reference Manual page 564

Table of Contents

Advertisement

3. Instructions
Operand Specifications
Word addresses
Area
CI
WR
HR
O
Au, Mi, Md, Dd,
Ad, Su, Mr, Dr
OK
OK
OK
D
Flags
Name
Error Flag
Equals Flag
Overflow Flag
Underflow Flag
Negative Flag
Function
The data specified in S1 and the data specified in S2 are added (+D(845)), subtracted (-D(846)),
multiplied ( D(847)), or divided (/D(848)) as double-precision floating-point data (64 bits: IEEE754) and
the result is output to D+3, D+2, D+1, and D.
• +D
S1+3CH
S1+2CH
S1+1CH
S2+3CH
S2+2CH
S2+1CH
+
D+3CH
D+2CH
D+1CH
D
S1+3CH
S1+2CH
S1+1CH
S2+3CH
S2+2CH
S2+1CH
D+3CH
D+2CH
D+1CH
526
Indirect DM/EM
@DM
AR
T
C
DM
EM
@EM
OK
OK
OK
OK
OK
OK
Label
P_ER
• ON when S1 or S2 is not treated as floating-point data.
• +D
•ON if the augend or addend data is not a number (NaN).
•ON if +o is added to -o.
• -D
•ON if the minuend or subtrahend is not a number (NaN).
•ON if +o is subtracted from +o.
•ON if -o is subtracted from -o.
D
•ON if the multiplicand or multiplier is not a number (NaN).
•ON if +o and 0 are multiplied.
•ON if -o and 0 are multiplied.
• /D
•ON if the dividend or divisor is not a number (NaN).
•ON if the dividend and divisor are both 0.
•ON if the dividend and divisor are both +o or -o.
• OFF in all other cases.
P_EQ
• ON if both the exponent and mantissa of the result are 0.
• OFF in all other cases.
P_OF
• ON if the absolute value of the result is too large to be expressed as a double-precision floating-point
value.
P_UF
• ON if the absolute value of the result is too small to be expressed as a double-precision floating-point
value.
P_N
• ON if the result is negative.
• OFF in all other cases.
Augend
S1CH
(floating-point data, 64-bits)
S2CH
Addend
(floating-point data, 64-bits)
DCH
Result
(floating-point data, 64-bits)
S1CH
Multiplicand
(floating-point data, 64-bits)
S2CH
Multiplier
(floating-point data, 64-bits)
Result
DCH
(floating-point data, 64-bits)
Registers
addresses
Con-
stants
*DM
DR
*EM
OK
---
---
Operation
• -D
S1+3CH
S1+2CH
S1+1CH
S2+3CH
S2+2CH
S2+1CH
D+3CH
D+2CH
D+1CH
• /D
S1+3
S1+2
S1+1
S2+3
S2+2
S2+1
D+3
D+2
D+1
CS/CJ/NSJ Series Instructions Reference Manual (W474)
Flags
Pulse
bits
Indirect
IR
TK
CF
using IR
---
OK
---
---
---
Minuend
S1CH
(floating-point data, 64-bits)
S2CH
Subtrahend
(floating-point data, 64-bits)
DCH
Result
(floating-point data, 64-bits)
Dividend
S1
(floating-point data, 64-bits)
Divisor
S2
(floating-point data, 64-bits)
Result
DCH
(floating-point data, 64-bits)
TR
bits
---

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the CJ - INSTRUCTIONS and is the answer not in the manual?

Questions and answers

Table of Contents

Save PDF