MC_ExtSetPointGenEnable

MC_ExtSetPointGenEnable 1:

The external set value generator of an axis can be switched on with the function block MC_ExtSetPointGenEnable. Subsequently, the axis takes over the set value specifications from its cyclic axis interface ( fExtSetPos, fExtSetVelo, fExtSetAcc and nExtSetDirection)

VAR_INPUT

VAR_INPUT
    Execute      : BOOL;
    Position     : LREAL;
    PositionType : E_TargPosType;
END_VAR

Execute : The command is executed with rising edge.

Position : Position for target position monitoring. Setting of this position does not mean that the axis moves to this position, for which only the external set value generator is responsible. Setting of this position activates target position monitoring, and the flag In target position becomes TRUE, as soon as this position is reached.

PositionType : Position type

VAR_OUTPUT

VAR_OUTPUT
    Done    : BOOL;
    Error   : BOOL;
    ErrorID : UDINT;
    Enabled : BOOL;
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.

Enabled : Enabled shows the current state of the external set value generator, independent of the function execution.

VAR_IN_OUT

VAR_IN_OUT
    Axis : NCTOPLC_AXLESTRUCT;
END_VAR

Axis : Axis structure.

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.8

PC (i386)

TcMC.Lib