Single-Precision Floating-Point Comparison Instructions - Omron SYSMAC CJ - REFERENCE MANUAL 08-2008 Reference Manual

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

Advertisement

Floating-point Math Instructions
Description
Flags
Precautions

3-15-24 Single-precision Floating-point Comparison Instructions

Purpose
636
PWR(840) raises the 32-bit floating-point number in B+1 and B to the power
of the 32-bit floating-point number in E+1 and E. In other words, PWR(840)
Y
calculates X
(X = B+1 and B; Y = E+1 and E).
For example, when the base words (B+1 and B) contain 3.1 and the exponent
words (E+1 and E) 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
Error Flag
ER
Equals Flag
=
Overflow Flag
OF
Underflow Flag
UF
Negative Flag
N
The base (B+1 and B) and the exponent (E+1 and E) must be in IEEE754
floating-point data format.
These input comparison instructions compare two single-precision floating
point values (32-bit IEEE754 constants and/or the contents of specified
words) and create an ON execution condition when the comparison condition
is true.
These instructions are supported by CS1-H, CJ1-H, CJ1M, and CS1D CPU
Units only.
Note Refer to 3-7-1 Input Comparison Instructions (300 to 328) for details on the
signed and unsigned binary input comparison instructions and 3-16-21 Dou-
ble-precision Floating-point Input Instructions for details on double-precision
floating-point input comparison instructions.
E+1
E
B+1
B
Base data
Label
ON if the base (B+1 and B) or exponent (E+1 and E) is
not recognized as floating-point data.
ON if the base (B+1 and B) or exponent (E+1 and E) is
not a number (NaN).
ON if the base (B+1 and B) is 0 and the exponent (E+1
and E) is less than 0. (Division by 0)
ON if the base (B+1 and B) is negative and the exponent
(E+1 and E) 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 32-bit floating-point value.
ON if the absolute value of the result is too small to be
expressed as a 32-bit floating-point value.
ON if the result is negative.
OFF in all other cases.
Section 3-15
Exponent data
R+1
R
3
or 29.791.
Operation

Advertisement

Table of Contents
loading

This manual is also suitable for:

Sysmac cs seriesSysmac one nsj seriesSysmac cj series

Table of Contents