Siemens has (or had) a set of standard numerical function blocks for use with the S5 PLCs. You may wish to check if this product has a square root
function block.
--
************************
Michael Griffin
London, Ont. Canada
************************