VAL_DefineTrsf

VAL_DefineTrsf 1:

FUNCTION VAL_DefineTrsf : T_Trsf

This function might be used to initialize a T_Trsf variable.
It provides a way to have a more compact code. The following code below:

myTrsf := VAL_DefineTrsf(10,-13.125,115.10,45.5,25.3,-90.25);

is equivalent to

myTrsf.X := 10;
myTrsf.Y := -13.125;
myTrsf.Z := 115.10;
myPoint.RX := 45.5;
myTrsf.RY := 25.3;
myTrsf.RZ := -90.25;

Syntax

Definition:

FUNCTION VAL_DefineTrsf : T_Trsf
VAR_INPUT
    X   : REAL := 0;
    Y   : REAL := 0;
    Z   : REAL := 0;
    RX  : REAL := 0;
    RY  : REAL := 0;
    RZ  : REAL := 0;
END_VAR

VAL_DefineTrsf 2: Inputs

Name

Type

Description

X

REAL

Value for X coordinate

Y

REAL

Value for Y coordinate

Z

REAL

Value for Z coordinate

RX

REAL

Value for RX coordinate

RY

REAL

Value for RY coordinate

RZ

REAL

Value for RZ coordinate

VAL_DefineTrsf 3: Return value

Name

Type

Description

VAL_DefineTrsf

T_Trsf