SetValuesXY
Set the spatial components of this position.
Syntax
Definition:
METHOD SetValuesXY
VAR_INPUT
x : LREAL;
y : LREAL;
END_VAR
Inputs
Name |
Type |
Description |
---|---|---|
x |
LREAL |
x-component of the position. |
y |
LREAL |
y-component of the position. |
Beispiel: PositionXYC.SetValuesXY
PLC Deklaration
VAR
position : PositionXYC;
x : LREAL := 4.3;
y : LREAL := 2.5;
END_VAR
PLC Implementierung
position.x := 0;
position.y := 0;
position.c := 3;
position.SetValuesXY(x, y);
Erwartetes Ergebnis
position.x = 4.3
position.y = 2.5
position.c = 3