How to Find Square Root in PLC Programming

Calculate Square Root of A Value in Omron PLC :-

Square Root of a particular Data Word can be directly calculated in Omron PLC with a simple instruction. The name of instruction is ROOT.

Syntax :- ROOT S R

Where :- S is the Source Data Word whose Square Root is to be calculated and R is the Result Data word where the result will be stored.

This Instruction computes the square root of the eight-digit contents of Sq and Sq+1 and places the result in R. The fractional portion is truncated.

This instruction is very useful in handling and processing of Process Data.

We have also made a simple program for your reference.

Download.