L_MC4P_ReadParameter

This FB serves to read a parameter of the axes group.

Note!

No parameters can be read out of the "STRING" data type.

 

 

 

L_MC4P_ReadParameter

 

 

 

AXES_GROUP_KIN

-

AxesGroup

xValid

-

BOOL

BOOL

-

xEnable

xBusy

-

BOOL

DINT

-

diParameterNumber

xError

-

BOOL

eErrorID

-

L_IE1P_Error

lrValue

-

LREAL

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

AxesGroup

AXES_GROUP_KIN

axes group reference

xEnable

BOOL

TRUE

Read parameters continuously.

diParameterNumber

DINT

Determination of the parameter number of the parameter to be read.

When an axes group is inserted into the device tree, a parameter structure with four automatically assigned main indices with a maximum of 255 subindices each is created. The subindices contain the individual parameters of the axes group. The first to fourth main index corresponds to the index offset 0 ... 3 with regard to the parameter description.

Example:

Read-out of arm length L1 of a Delta3_3dof axes group.

The following can be gathered from the description of the individual parameter of this axes group:

Arm length L1 (index offset 3, Subindex2 )

The following results:
diParameterNumber := 1000 * index offset + subindex;

diParameterNumber := 1000 * 3 + 2 = 3002;

Outputs

Name

Data type

Value/meaning

xValid

BOOL

TRUE

Valid values are applied to the FB outputs.

xBusy

BOOL

TRUE

Processing is running.

xError

BOOL

TRUE

An error has occurred. For details see ErrorID .

eErrorID

If Error = TRUE: Error number for the error that has occurred.

lrValue

LREAL

Read parameter value