MC_RegisterCompensation
Reference to a mover template: An axis refers to a mover template via the function block MC_RegisterCompensation
.
- This function block selects the compensation type.
- This function block influences axis behavior.
Inputs
VAR_INPUT
Execute : BOOL;
CompensationType : MC_COMPENSATION_TYPE;
CompensationId : OTCID;
END_VAR
Name | Type | Description |
---|---|---|
Execute | BOOL | This function block activates the selected compensation type when a rising edge is triggered at its |
CompensationType | MC_COMPENSATION_TYPE | Select |
CompensationId | OTCID | This input |
Inputs/outputs
VAR_IN_OUT
Axis : AXIS_REF;
END_VAR
Name | Type | Description |
---|---|---|
Axis | AXIS_REF | The input Axis is of type AXIS_REF and refers to an axis, e.g. to a mover. |
Outputs
VAR_OUTPUT
Done : BOOL;
Busy : BOOL;
Error : BOOL;
ErrorId : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
Done | BOOL | This output becomes |
Busy | BOOL | This output becomes |
Error | BOOL | This output becomes |
ErrorId | UDINT | Contains the command-specific error code of the last executed command. |
Requirements
Development environment | Target platform | PLC libraries to include |
---|---|---|
TwinCAT V3.1.4022.25 | PC or CX (x64) | Tc3_McCollisionAvoidance, |