MC_ExtSetPointGenEnable

MC_ExtSetPointGenEnable 1:

The external set value generator of an axis can be switched on with the function block MC_ExtSetPointGenEnable. The axis then adopts the set value specifications from its cyclic axis interface (Axis.PlcToNc.ExtSetPos, ExtSetVelo, ExtSetAcc and ExtSetDirection).

An external set value generator is usually a PLC block that calculates cyclic set values for an axis and can therefore substitute the internal set value generator in an NC axis.

See also: MC_ExtSetPointGenDisable and MC_ExtSetPointGenFeed

Inputs


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

Execute

The command is executed with the 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 Data type ST_AxisStatus becomes TRUE, as soon as this position is reached.

PositionType

Position type - POSITION TYPE_ABSOLUTE or POSITION TYPE_RELATIVE

Outputs


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

Done

Becomes TRUE, if the command was issued successfully.

Busy

Becomes TRUE as soon as the function block is active, and becomes FALSE when it has returned to its initial state.

Error

Becomes TRUE, as soon as an error occurs.

ErrorID

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

Enabled

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

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.