L_MC4P_WriteBoolParameter

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

 

 

 

L_MC4P_WriteBoolParameter

 

 

 

AXES_GROUP_KIN

-

AxesGroup

xDone

-

BOOL

BOOL

-

xExecute

xBusy

-

BOOL

DINT

-

diParameterNumber

xError

-

BOOL

BOOL

-

xValue

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 the "Full path smoothing" parameter.

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

Index offset 0, Subindex35

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

diParameterNumber := 1000 * 0 + 35 = 35;

xValue

BOOL

Parameter value to be written (TRUE/FALSE)

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.