6-3
ST Programming Exercise
6-3-1
Exercise of Numerical Calculation Programming
Create a ladder program including inline ST to calculate the distance between two points.
Exercise
Create a program to execute the ST code to calculate the distance between two points
when the Switch SW3 is pressed.
[Pythagoras' theorem]
= � ( − )
+ ( − )
101