MLAxisIsTrigged

Pipe Network motion icon

 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. - Verifies if the axis received a trigger event.

Inputs

Input

Data Type

Range

Unit

Default

Description

ID

DINT

No range

N/A

No default

ID Name of the Axis block.

InputID

DINT

No range

N/A

No default

ID of the triggered Fast input of an axis (i.e., IN1 and IN2 on S300Closed "Servostar 300 drive" See Servo Drive in Glossary).

InputID INT

Range = 0, 1

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

edge

DINT

No range

N/A

No default

Configures the Inputs as:

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

Outputs

Output

Data Type

Range

Unit

Description

Default (.Q)

BOOL

 

 

Returns TRUE when the function successfully executes.

See Pipe Network - General Rules for more information.

Remarks

FBD Language Example

MLAxisIsTrigged: FBD example

FFLD Language Example

MLAxisIsTrigged: LD example

IL Language Example

Not available.

ST Language Example

 MLAxisIsTrigged (PipeNetwork.Axis1, 0,1 ) ;

See Also

MLAxisRstFastIn