MC_SetOverride

MC_SetOverride 1:

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

Enable

The command is executed as long as Enable is active.

VelFactor

Velocity override factor

AccFactor

not supported

JerkFactor

not supported

Outputs


VAR_OUTPUT
Enabled : BOOL;
Busy    : BOOL;
Error   : BOOL;
ErrorID : UDINT;
END_VAR

Enabled

The parameterized override is set

Busy

The Busy output becomes TRUE when the command is started with Enable and remains TRUE as long as the command is processed. If Busy becomes FALSE again, the function block is ready for a new job.

Error

Becomes TRUE if an error occurs.

ErrorID

If the error output is set, this parameter supplies the error number.

Inputs/outputs


VAR_IN_OUT
Axis   : AXIS_REF;
END_VAR

Axis

Axis data structure

The axis data structure of type AXIS_REF addresses an axis uniquely within the system. Among other parameters it contains the current axis status, including position, velocity or error status.