MC_AbortTrigger

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - When the Execute input transitions from low to high, this function block aborts an MC_TouchProbe function block.

Inputs

Input

Data Type

Range

Unit

Default

Description

Execute

BOOL

0, 1

N/A

No default

On the rising edgeClosed A rising edge is the transition of a digital signal from low to high. It is also called positive edge, request to abort the MC_TouchProbe function block.

Axis

AXIS_REF

1, 256

N/A

No default

Identifies the axis specified in the MC_TouchProbe function block which is to be aborted.

TriggerInput

TRIGGER_REF

INT

N/A

No default

Identifies the fast inputClosed The 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 specified in the MC_TouchProbe function block which is to be aborted.

The structure elements are:

Direction INT

Range = 1, 2.

  • 1 = Rising edge.
  • 2 = Falling edge.

InputID INT

Range = 0, 1

  • 0 = Touch Probe 1 / Capture Engine 0
  • 1 = Touch Probe 2 / Capture Engine 1

TrigidINT

Range = 0, 256.

  • The axis number of the input.
  • 0 (zero) indicates the trigger axis is to be the same as Axis.AXIS_NUM.

  • TrigMode INT (TriggerInput.TrigMode) is not presently supported by this function.

Outputs

Output

Data Type

Range

Unit

Description

Done

BOOL

No range

N/A

FunctionClosed A function calculates a result according to the current value of its inputs. A function has no internal data and is not linked to declared instances. block has completed.

Busy

BOOL

No range

N/A

Indicates this function block is executing.

Error

BOOL

No range

N/A

Indicates the function block did not complete due to an error.

The ErrorID output indicates the type of error when this output is high.

ErrorID

INT

No range

N/A

When the Error output is:

  • high, this output indicates the type of error.
  • low, this output is undefined.

See PLCopen Function Block ErrorIDs for more information.

Remarks

See Pipe Network - General Rules for more information.

FBD Language Example

Not available.

FFLD Language Example

MC_AbortTrigger: LD Example

IL Language Example

Not available.

ST Language Example

(* MC_AbortTrigger ST example *)
Inst_MC_AbortTrigger( AbortReq, Axis1, TriggerInputRef );
//Inst_MC_AbortTrigger is an instance of MC_AbortTrigger

See Also

MC_TouchProbe