Function BlockMC_AbortTriggerPLCopen motion icon

Description

When the Execute input transitions from low to high, this function block aborts an MC_TouchProbe function block.

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 InputClosedThe 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 edgeClosedA rising edge is the transition of a digital signal from low to high. It is also called positive edge, 2 = falling edge
Range is [1,2]

TrigID INT; is the axis number of the input. 0 indicates that the trigger axis is to be the same as Axis.AXIS_NUM.
Range is [0,256]


  • TrigMode INT (TriggerInput.TrigMode) is not presently supported by this function. The TriggerInput.Mode may be supported in a future software version.
 

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

See table in PLCopen Function Block ErrorID Output

 

Data type

INT

Usage

This function block is used to abort an MC_TouchProbe function block.

Related Functions

MC_TouchProbe

Example

Structured Text

 

(* MC_AbortTrigger ST example *)

Inst_MC_AbortTrigger( AbortReq, Axis1, TriggerInputRef );

//Inst_MC_AbortTrigger is an instance of MC_AbortTrigger

 

Ladder Diagram

MC_AbortTrigger: LD Example

Go back to the top of the page [Top]