MLTrigReadDelay
Description
Electronic sensors are not able to respond immediately to a signal. Sensors usually require a certain amount of time to process a change of state in their input signal. This function returns the delay that has been programmed in a trigger block by the MLTrigWriteDelay function to compensate for this reaction time required by the sensor A sensor is a type of transducer that converts one type of energy into another for various purposes including measurement or information transfer.
Input
BlockID |
Description |
Identifier of the trigger block whose delay is requested |
|
Data type |
DINT |
|
Range |
[-2147483648, 2147483648] |
|
Unit |
N/A |
|
Default |
— |
En |
Description |
Enables execution |
Data type |
BOOL | |
Unit |
N/A | |
Default |
- |
Output
Delay |
Description |
Value of the delay compensation currently applied by the trigger block |
|
Data type |
LREAL |
|
Unit |
microseconds |
OK |
Description |
Returns true when the function successfully executes |
Data type |
BOOL | |
Unit |
N/A |