MLTrigWriteDelay
Function 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. - allows the trigger block to calculate the exact moment at which a signal was triggered by letting you specify the compensation.
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.
The delay compensation should include drive processing time, sensor A sensor is a type of transducer that converts one type of energy into another for various purposes including measurement or information transfer delay, and the communication latency through the EtherCAT ***EtherCAT is an open, high-performance Ethernet-based fieldbus system. The development goal of EtherCAT was to apply Ethernet to automation applications which require short data update times (also called cycle times) with low communication jitter (for synchronization purposes) and low hardware costs network.
Arguments
Input
BlockID | Description | Identifier of the trigger block |
|
Data type | DINT |
|
Range | [-2147483648, 2147483648] |
|
Unit | N/A |
|
Default | — |
Delay | Description | Reaction time of the sensor that the trigger block has to compensate |
|
Data type | LREAL |
|
Range | — |
|
Unit | microseconds |
|
Default | — |
Output
Default (.Q) | Description | Returns TRUE if the delay is successfully setSee Function - General Rules for more information. |
|
Data type | BOOL |
|
Unit | N/A |
Return Type
BOOL