MC_ExtSetPointGenDisable

MC_ExtSetPointGenDisable 1:

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

VAR_INPUT

VAR_INPUT
    Execute : BOOL;
END_VAR

Execute : The command is executed with rising edge.

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.

Example

Requirements

Development environment

Target system type

PLC libraries to be linked

TwinCAT v2.8

PC (i386)

TcMC.Lib