SetZero

SetZero 1:

Set the components of this vector to '0.0'.

Syntax

Definition:

METHOD SetZero

Beispiel: PositionXYC.SetZero

PLC Deklaration

VAR
   position : PositionXYC;
END_VAR

PLC Implementierung

position.x := 0.3;
position.y := 0.5;
position.c := 20.0;
position.SetZero();

Erwartetes Ergebnis

position.x = 0
position.y = 0
position.c = 0