ladder logic in action library automationdirect com distance measurement and ladder logic 2