MC_SetOverride_BkPlcMc (from V3.0)
The function block sets the override of an axis.
This function block only takes effect if the profile type iTcMc_ProfileCtrlBased is used. |
Inputs
VAR_INPUT
Enable: BOOL;
VelFactor: LREAL;
END_VAR
Name | Type | Description |
---|---|---|
Enable | BOOL | An active state at this input sets the override of the axis. |
VelFactor | LREAL | [1] The new override of the axis. |
Inputs/outputs
VAR_INOUT
Axis: Axis_Ref_BkPlcMc;
END_VAR
Name | Type | Description |
---|---|---|
Axis | Axis_Ref_BkPlcMc | Here, the address of a variable of type Axis_Ref_BkPlcMc should be transferred. |
Outputs
VAR_OUTPUT
Enabled: BOOL;
Busy: BOOL;
Error: BOOL;
ErrorID: UDINT;
END_VAR
Name | Type | Description |
---|---|---|
Enabled | BOOL | This indicates the active state of the function block. |
Busy | BOOL | This output is TRUE while the command is being processed. |
Error | BOOL | The occurrence of an error is indicated here. |
ErrorID | UDINT | An encoded indication of the cause of the error is provided here. |
Behavior of the function block
If the Enable state is active, the value transferred as VelOverride is limited to the range 0.0 to 1.0 and entered in Axis.pStAxParams^.fOverride. Enabled is set to TRUE.
A falling edge at Enable clears all outputs.
All velocity changes caused by an override modification are limited according to the maximum permitted accelerations and decelerations.
In order to ensure reproducible behavior during the target approach, the override only reduces the travel speed to pStAxParams.fCreepSpeed. Therefore, it is not possible to stop the axis movement through an override of 0.0. |