MC_SetOverride

MC_SetOverride 1:

The override for an axis can be specified with the function block MC_SetOverride.

VAR_INPUT

VAR_INPUT
    Execute  : BOOL;
    Override : LREAL;
END_VAR

Execute : The command is executed with rising edge.

Override: New override value.

VAR_OUTPUT

VAR_OUTPUT
    Done    : BOOL;
    Error   : BOOL;
    ErrorID : UDINT;
END_VAR

Done : Becomes TRUE, if the command was issued successfully.

Error: Becomes TRUE, as soon as an error occurs.

ErrorID : Supplies the error number when the Error output is set.

VAR_IN_OUT

VAR_IN_OUT
    AxisRefIn  : NCTOPLC_AXLESTRUCT;
    AxisRefOut : PLCTONC_AXLESTRUCT;
END_VAR

Axis : Axis structure.

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.8

PC (i386)

TcMC.Lib