MC_AbortTrigger
Description
-
- This function block starts a motion-related action and therefore stores data for calculations and error checking. Please see Calling Function Blocks Multiple Times in the Same Cycle if you are using a dual-core controller.
Arguments
For more details on how inputs and outputs work, refer to PLCopen Function Blocks - General Rules
Input
Execute |
Description |
Enables execution |
Data type |
BOOL |
|
Range |
0, 1 |
|
Unit |
n/a |
|
Default |
— |
|
Axis |
Description |
Specifies the axis that was specified in the MC_TouchProbe function block which is to be aborted |
Data type |
AXIS_REF |
|
Range |
[1,256] |
|
Unit |
n/a |
|
Default |
— |
|
TriggerInput |
Description |
Specifies the Fast InputThe inputs are taken into account at each cycle depending on the system periodicity (for example each millisecond). Under certain circumstances this can be insufficient when more accuracy is needed, or if a quick response is required from the system. To fill the gap, a drive may have some Fast Input connections (generally one or two). When an event happens that triggers a Fast Input (e.g. when a sensor sends a rising edge), the detection of a signal occurs faster (which can be 1000 times more accurate than the system periodicity). Then the timestamp associated with this input can be provided to the IPC to take corrective action that was specified in the MC_TouchProbe function block which is to be aborted. The elements of TriggerInput are as follows: InputID INT; 0 = Touch Probe 1 / Capture Engine 0 1 = Touch Probe 2 / Capture Engine 1 Range is [0,1] Direction INT; 1 = rising edgeA rising edge is the transition of a digital signal from low to high. It is also called positive edge, 2 = falling edge TrigID INT; is the axis number of the input. 0 indicates that the trigger axis is to be the same as Axis.AXIS_NUM.
|
Data type |
TRIGGER_REF |
|
Range |
See Description above |
|
Unit |
n/a |
|
Default |
— |
Output
Done |
Description |
Function block has completed |
Data type |
BOOL |
|
Busy |
Description |
Indicates the function block is currently executing |
Data type |
BOOL |
|
Error |
Description |
Indicates the function block did not complete due to an error. The ErrorID output indicates the type of error when this output is high |
Data type |
BOOL |
|
ErrorID |
Description |
When the Error output is high, this output indicates the type of error. When the Error output is low, this output is undefined
|
Data type |
INT |
Usage
This function block is used to abort an MC_TouchProbe function block.
Related Functions
Example
Structured Text
(* MC_AbortTrigger ST example *) Inst_MC_AbortTrigger( AbortReq, Axis1, TriggerInputRef ); //Inst_MC_AbortTrigger is an instance of MC_AbortTrigger
|
Ladder Diagram