SetValuesXYC
Set the components of this position.
Syntax
Definition:
METHOD SetValuesXYC
VAR_INPUT
x : LREAL;
y : LREAL;
c : LREAL;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
x |
LREAL |
x-component of the position. |
y |
LREAL |
y-component of the position. |
c |
LREAL |
c-component of the position scaled in degrees [°]. |
Beispiel: PositionXYC.SetValuesXYC
PLC Deklaration
VAR
position : PositionXYC;
x : LREAL := 4.3;
y : LREAL := 2.5;
c : LREAL := 20;
END_VAR
PLC Implementierung
position.x := 0;
position.y := 0;
position.c := 0;
position.SetValuesXYC(x, y, c);
Erwartetes Ergebnis
position.x = 4.3
position.y = 2.5
position.c = 20