MLTrigSetEdge

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. - Sets the edge configuration for a trigger block (e.g., rising, falling, etc.)

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of the trigger block.

Edge

DINT

0, 2

N/A

1 (rising edgeClosed The transition of a digital signal from low to high. AKA: positive edge.)

The edge to trigger on.

Outputs

Output

Data Type

Range

Unit

Description

Q

BOOL

FALSE, TRUE

N/A

  • TRUE if block executed successfully.
  • FALSE if execution is not successful.

Remarks

  • This block should be called prior to calling MLAxisCfgFastIn.
  • The value at the Edge input must match the value at MLAxisCfgFastIn’s Mode input.

Fast Homing - Inputs

See these topics for more information:

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

TrigEdgeChanged := MLTrigSetEdge (TrigBlockID,TrigEdge);