Omron CS1G/H-CPUxxH Instructions Manual page 516

Sysmac cs series; sysmac cj series
Hide thumbs Also See for CS1G/H-CPUxxH:
Table of Contents

Advertisement

Section 3-14
Special Math Instructions
Truncated
Square Root of a 4-digit Number
The following example shows how to take the square root of a 4-digit number
and round off the result. This program example calculates the square root of
the 4-digit number in CIO 0010, rounds off the result, and writes it to
2
CIO 0011. (Basically, the 4-digit number is multiplied by 10,000 (100
) and the
result is divided by 100, increasing the precision of the calculation by a factor
of 100.)
Note Figures after the decimal point are rounded for 4-digit numbers.
495

Advertisement

Table of Contents
loading

Table of Contents