Omron SYSMAC CJ - REFERENCE MANUAL 01-2008 Reference Manual page 609

Sysmac cs/cj/one nsj series programmable controllers
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.
570

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the SYSMAC CJ - REFERENCE MANUAL 01-2008 and is the answer not in the manual?

Questions and answers

Table of Contents