MLTrigInit

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. - Initializes a Trigger object for use in a PLCClosed Programmable Logic Controller - A digital computer used for automation of industrial processes, such as control of machinery on factory assembly lines. Used to synchronize the flow of inputs from (physical) sensors and events with the flow of outputs to actuators and events. programClosed The act of performing a sequence of instructions or commands..

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initiated Trigger object.

Input_Axis

STRING

No range

N/A

No default

Name of the axis where the Fast InputClosed The inputs are taken into account at each cycle depending on the system periodicity (i.e., 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. This can be 1000 times more accurate than the system periodicity. The timestamp associated with this input can be provided to the IPC to take corrective action. is located.

InputID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of the Fast Input.

InputID INT

Range = 0, 1

EdgeID

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

Default (.Q)

BOOL

No range

N/A

Returns TRUE if the function blockClosed A function block groups an algorithm and a set of private data. It has inputs and outputs. is executed.

See Pipe Network - General Rules.

Remarks


  • Trigger objects are normally created in the Pipe Network using the graphical engine.
    You do not have to add MLTrigInit function blocks to their programs.
    Parameters are entered directlyClosed The orientation components of a vector in space. in pop-up windows and the code is automatically added to the current project.

Fast Homing - Inputs

See these topics for more information:

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Create and Initiate a Trigger Pipe Block named “Trigger” and set it up to receive the trigger signal from Axis1, capture engine 0, and the rising edge of the signal
TRIGGER := MLBlkCreate( 'TRIGGER', 'TRIGGER' );
MLTrigInit( TRIGGER, 'Axis1', 0, 1 );

See Also