R_TRIG('Expression')
Arguments
|
'Expression' |
Digital input signal or expression |
Description
This function returns the value TRUE for 1 sample, if the change from FALSE to TRUE has been detected on ‘Expression’.
Specifically, rising edges can be detected and indicated by this function.
Example
Each time the signal of a temperature alert turns on, a signal shall be generated.
Solution
Generate a digital signal Temp_up by using the function R_TRIG, which only turns TRUE for a short time, if there is a rising edge on the temperature alert signal Temperature_alert.
