MC_StopRegist

PLCopen motion icon

 Function BlockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. - Turns off registration for the specified axis and disarms the specified 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.

Inputs

Input

Data Type

Range

Unit

Default

Description

En

BOOL

0, 1

N/A

No default

Enables execution.

Axis

AXIS_REF

1, 256

N/A

N/A

Axis registration to turn off.

TriggerInput

TRIGGER_REF

See Description.

N/A

No default

Structure specifying the fast input. (to disarm)

The structure elements are:

DirectionINT

Range = 1, 5.

InputID INT

Range = 0, 1

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

TrigidINT

Range = 0, 256.

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

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

Outputs

Output

Data Type

Range

Unit

Description

OK

BOOL

 

 

Execution successful.

Remarks

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

StopOK := MC_StopRegist( Axis1, Trig1);

See Also