Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual page 733

Programmable controllers
Hide thumbs Also See for SYSMAC CJ - REFERENCE MANUAL 08-2008:
Table of Contents

Advertisement

Double-precision Floating-point Instructions (CS1-H, CJ1-H, CJ1M, or CS1D Only)
Description
Flags
Area
EM Area with bank
Indirect DM/EM
addresses in binary
Indirect DM/EM
addresses in BCD
Constants
Data Registers
Index Registers
Indirect addressing
using Index Registers
PWRD(860) raises the double-precision (64-bit) floating-point number in
words B to B+3 to the power of the double-precision (64-bit) floating-point
number in words E to E+3. In other words, PWR(840) calculates X
tent of B to B+3; Y = content of E to E+3).
S2+3
S2+2
S1+3
S1+2
S1+1
For example, when the base words (B to B+3) contain 3.1 and the exponent
words (E to E+3) contain 3, the result is 3.1
If the absolute value of the result is greater than the maximum value that can
be expressed as floating-point data, the Overflow Flag will turn ON.
If the absolute value of the result is less than the minimum value that can be
expressed as floating-point data, the Underflow Flag will turn ON.
Name
Label
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
B
En_00000 to En_32764
(n = 0 to C)
@ D00000 to @ D32767
@ E00000 to @ E32767
@ En_00000 to @ En_32767
(n = 0 to C)
*D00000 to *D32767
*E00000 to *E32767
*En_00000 to *En_32767
(n = 0 to C)
---
---
---
,IR0 to ,IR15
–2048 to +2047 ,IR0 to –2048 to +2047 ,IR15
DR0 to DR15, IR0 to IR15
,IR0+(++) to ,IR15+(++)
,–(– –)IR0 to, –(– –)IR15
Exponent data
S2+1
S2
S1
Base data
3
or 29.791.
Operation
ON if the base data (B to B+3) or exponent data (E to
E+3) is not recognized as floating-point data.
ON if the base data (B to B+3) or exponent data (E to
E+3) is not a number (NaN).
ON if the base data (B to B+3) is 0 and the exponent data
(E to E+3) is less than 0. (Division by 0)
ON if the base data (B to B+3) is negative and the expo-
nent data (E to E+3) is non-integer. (Root of a negative
number)
OFF in all other cases.
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
ON if the absolute value of the result is too large to be
expressed as a double-precision floating-point value.
Section 3-16
E
D
Y
(X = con-
D+3
D+2
D+1
D
693

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents