F_TRIG('Expression')

Arguments

'Expression'

Digital input signal or expression

Description

This function returns the value TRUE for 1 sample, if the change from TRUE to FALSE has been detected on ‘Expression’.

Specifically, falling edges can be detected and indicated by this function.

Example

Each time the signal of a temperature alert turns off, a signal shall be generated.

Solution

Generate a digital signal Temp_down by using the function F_TRIG, which only turns TRUE for a short time, if there is a falling edge on the temperature alert signal Temperature_alert.