MC_SetOverride
The override for an axis can be specified with the function block MC_SetOverride.
Inputs
VAR_INPUT
Enable : BOOL; (* B *)
VelFactor : LREAL (* B *) := 1.0; (* 1.0 = 100% *)
AccFactor : LREAL (* E *) := 1.0; (* 1.0 = 100% *) (* not supported *)
JerkFactor : LREAL (* E *) := 1.0; (* 1.0 = 100% *) (* not supported *)
END_VAR
Name | Type | Description |
---|---|---|
Enable | BOOL | TRUE as long as the command is executed. |
VelFactor | LREAL | Velocity override factor |
AccFactor | LREAL | Not supported |
JerkFactor | LREAL | Not supported |
Inputs/outputs
VAR_IN_OUT
Axis : AXIS_REF;
END_VAR
Name | Type | Description |
---|---|---|
Axis | Axis data structure that unambiguously addresses an axis in the system. Among other parameters it contains the current axis status, including position, velocity or error state. |
Outputs
VAR_OUTPUT
Enabled : BOOL;
Busy : BOOL;
Error : BOOL;
ErrorID : UDINT;
END_VAR
Name | Type | Description |
---|---|---|
Enabled | BOOL | The parameterized override is set. |
Busy | BOOL | TRUE as soon as the command is started with Enable and as long as the command is processed. If "Busy" is FALSE, the function block is ready for a new order. |
Error | BOOL | TRUE, if an error occurs. |
ErrorID | UDINT | If the error output is set, this parameter supplies the error number. |
Requirements
Development environment | Target system type | PLC libraries to include |
---|---|---|
TwinCAT v3.0.0 | PC or CX (x86 or x64) | Tc2_MC2 |