StepByLocalXY
Apply a local step in respect to the local coordinate frame without changing the orientation.
Syntax
Definition:
METHOD StepByLocalXY
VAR_INPUT
dx : LREAL;
dy : LREAL;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
dx |
LREAL |
The displacement within the local x-direction. |
dy |
LREAL |
The displacement within the local y-direction. |
Beispiel: PositionXYC.StepByLocalXY
PLC Deklaration
VAR
position : PositionXYC;
dx : LREAL := 2.0;
dy : LREAL := 0.0;
END_VAR
PLC Implementierung
position.SetValuesXYC(0, 3, 10);
position.StepByLocalXY(dx, dy);
Erwartetes Ergebnis
position.x = 1.9696
position.y = 3.3473
position.c = 10