Example - Ladder Diagram
SQR
The SQR instruction calculates the square root of the REAL value, S, and saves the result in an assigned REAL data register, D.
Ladder Diagram Example
When the contact, M0.9, is ON (1), the instruction takes the square root of the value, 60.123402, into the resulting radian value, 7.753928.
Memory Monitor
![]()
SQRP
The SQRP one-shot instruction calculates the square root of the REAL value, S, and saves the result in an assigned REAL data register, D.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
When the contact, M1.0, is ON (1), the instruction takes the square root of the value, 57.135132, into the resulting radian value, 7.558778.
Memory Monitor
![]()