Example - Ladder Diagram
BDSQR
The BDSQR instruction calculates the square root of the 8-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.5, is ON (1), the instruction takes the square root of the value, H00547813, into the resulting radian value, H14390740.
Memory Monitor
![]()
BDSQRP
The BDSQRP one-shot instruction calculates the square root of the 8-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.6, is ON (1), the instruction takes the square root of the value, H09784312, into the resulting radian value, H98843127.
Memory Monitor
![]()