MC_AbortTrigger
The MC_AbortTrigger function block interrupts a measuring probe cycle initiated by MC_TouchProbe. MC_TouchProbe initiates a measuring probe cycle by activating a position latch in external encoder hardware. If the process is to be terminated before the trigger signal has activated the position latch, MC_AbortTrigger can be used for this purpose. If the measuring probe cycle has completed successfully, it is not necessary to call up this function block.
VAR_INPUT
VAR_INPUT
Execute : BOOL; (* Starts touch probe recording *)
END_VAR
Execute : The command is executed with the rising edge and the external position latch is deactivated.
VAR_OUTPUT
VAR_OUTPUT
Done : BOOL; (* move completed *)
Busy : BOOL; (* function block is currently busy *)
Error : BOOL; (* Signals that an error has occured within Function Block *)
ErrorID : UDINT; (* Error identification *)
END_VAR
Done : Becomes TRUE, as soon as the measuring probe cycle has been interrupted 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.
VAR_IN_OUT
VAR_IN_OUT
TriggerInput : MC_InputRef; (* Reference to the trigger signal source. *)
Axis : NCTOPLC_AXLESTRUCT; (* Identifies the axis which position should be recorded at a defined event at the trigger input *)
END_VAR
TriggerInput : Data structure of type MC_InputRef, that describes the trigger input for the recording of the axis position. Here the same data structure must be used as in the corresponding MC_TouchProbe function block.
Axis : Axis structure.
Requirements
Development environment | Target system type | PLC libraries to be linked |
---|---|---|
from TwinCAT v2.9 Build 1000 | PC (i386) | TcMC.Lib |