![background image](http://html1.mh-extra.com/html/omron/sysmac-cs1d-cpu/sysmac-cs1d-cpu_reference-manual_742268676.webp)
637
Floating-point Math Instructions
Section 3-15
Description
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)
calculates X
Y
(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
3
or 29.791.
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.
Flags
Precautions
The base (B+1 and B) and the exponent (E+1 and E) must be in IEEE754
floating-point data format.
3-15-24 Single-precision Floating-point Comparison Instructions
Purpose
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
R+1
R
Exponent data
Base data
Name
Label
Operation
Error Flag
ER
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.
Equals Flag
=
ON if both the exponent and mantissa of the result are 0.
OFF in all other cases.
Overflow Flag
OF
ON if the absolute value of the result is too large to be
expressed as a 32-bit floating-point value.
Underflow Flag
UF
ON if the absolute value of the result is too small to be
expressed as a 32-bit floating-point value.
Negative Flag
N
ON if the result is negative.
OFF in all other cases.
Summary of Contents for SYSMAC CS1D-CPU**
Page 3: ...iv...
Page 29: ...xxx...
Page 185: ...146 List of Instructions by Function Code Section 2 4...
Page 1389: ...1350 CJ series Instruction Execution Times and Number of Steps Section 4 2...
Page 1390: ...1351 Appendix A ASCII Code Table ASCII SP Four leftmost bits Four rightmost bits...
Page 1391: ...1352 ASCII Code Table Appendix A...