FunctionMLTrigSetEdgePipe Network motion icon

Description

Sets the edge configuration (rising, falling, etc.) for a trigger block. This block should be called prior to calling MLAxisCfgFastIn. Also the value at the Edge input must match the value at MLAxisCfgFastIn’s Mode input.

Arguments

Input

BlockID Description Identifier of the trigger block

 

Data type DINT

 

Range [-2147483648, 2147483647]

 

Unit N/A

 

Default
Edge Description The edge on which to trigger
0 = disable 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
1 = rising edgeClosed A rising edge is the transition of a digital signal from low to high. It is also called positive edge
2 = falling edge
  Data type DINT
  Range [0,2]
  Unit N/A
  Default 1 (rising edge)

Output

Q Description True if block executed successfully
False if execution is not successful

 

Data type BOOL

 

Unit N/A

Return Type

BOOL

See Also

Examples

Function Block Diagram

Ladder Diagram

Structured Text