EasyManua.ls Logo

Omron CP - PROGRAMMING MANUAL 05-2007 - Page 509

Omron CP - PROGRAMMING MANUAL 05-2007
1175 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
476
Floating-point Math Instructions Section 3-14
The Equals Flag will only turn ON when both the exponent (e) and the man-
tissa (f) are zero after a calculation. A calculation result will also be output as
zero when the absolute value of the result is less than the minimum value that
can be expressed for floating-point data. In that case the Underflow Flag will
turn ON.
Example In this program example, the X-axis and Y-axis coordinates (x, y) are provided
by 4-digit BCD content of D0 and D1. The distance (r) from the origin and the
angle (
θ, in degrees) are found and output to D100 and D101. In the result,
everything to the right of the decimal point is truncated.
0
y
x
P (100, 100)
r
θ

Table of Contents

Related product manuals