Example - Ladder Diagram
BSQR
The BSQR instruction calculates the square root of the 4-digit binary coded decimal (BCD) value, S, and saves the result in an assigned 8-digit binary coded decimal (BCD) data register, D.
Ladder Diagram Example
When the contact, M1.3, is ON (1), the instruction takes the square root of the value, H4321, into the resulting radian value, H73430065.
Memory Monitor
![]()
BSQRP
The BSQRP one-shot instruction calculates the square root of the 4-digit binary coded decimal (BCD) value, S, and saves the result in an assigned 8-digit binary coded decimal (BCD) data register, D.
Every time this instruction executes, it energizes the output only once.
Ladder Diagram Example
When the contact, M1.4, is ON (1), the instruction takes the square root of the value, H9876, into the resulting radian value, H378000099.
Memory Monitor
![]()