GetRadius
Get the distance from the origin.
Syntax
Definition:
METHOD GetRadius : LREAL
Return value
LREAL
Example: PositionXY.GetRadius
PLC declaration
VAR
position : PositionXY;
distance : LREAL;
END_VAR
PLC implementation
position.SetValues(5.6, 0.2);
distance := position.GetRadius();
Expected result
distance = 5.604