MC_ExtSetPointGenDisable
The external set value generator of an axis can be switched off with the function block MC_ExtSetPointGenDisable. The axis then no longer 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_ExtSetPointGenEnable and MC_ExtSetPointGenFeed
Inputs
VAR_INPUT
Execute : BOOL;
END_VAR
Execute |
The command is executed with the rising edge. |
Outputs
VAR_OUTPUT
Done : BOOL;
Busy : BOOL;
Error : BOOL;
ErrorID : UDINT;
Enabled : BOOL;
END_VAR
Done |
Becomes TRUE, if the command was executed 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.