L_MC4P_WriteParameter

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

 

 

 

L_MC4P_WriteParameter

 

 

 

AXES_GROUP_KIN

-

AxesGroup

xDone

-

BOOL

BOOL

-

xExecute

xBusy

-

BOOL

DINT

-

diParameterNumber

xError

-

BOOL

LREAL

-

IrValue

eErrorID

-

L_IE1P_Error

 

 

 

 

 

 

 

 

Inputs

Name

Data type

Information/possible settings

AxesGroup

AXES_GROUP_KIN

axes group reference

xExecute

BOOL

FALSE รค TRUE

Trigger write request.

diParameterNumber

DINT

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

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:

Writing 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 offset3, Subindex2 )

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

diParameterNumber := 1000 * 3 + 2 = 3002;

IrValue

LREAL

Parameter value to be written

Outputs

Name

Data type

Value/meaning

xDone

BOOL

TRUE

Write request completed successfully.

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.