MLTrigReadTime

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. - Returns the time of the moment where the block was triggered in milliseconds.

Inputs

Input

Data Type

Range

Unit

Default

Description

BlockID

DINT

-2147483648 to 2147483647

N/A

No default

ID number of an initiated Trigger object.

Outputs

Output

Data Type

Range

Unit

Description

Time

LREAL

No range

Microseconds

Returns the time the Trigger Block's selected 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. was triggered.

Remarks

Fast Homing - Inputs

See these topics for more information:

FBD Language Example

FFLD Language Example

IL Language Example

Not available.

ST Language Example

//Save time when Fast Input event occurs
Trig_Time := MLTrigReadTime( PipeNetwork.TRIGGER );

See Also