Detecting a falling edge
This is a user-defined function from a system function block. F_TRIG_FUN (falling edge trigger) allows you to recognize a falling edge at an input.
Input
signal input
detects falling edge for clock
Input/output
Internal memory containing the internal values and states, which corresponds to the instance memory of the associated FB.
Output
signal output
is set for each falling edge at the signal input CLK (clock)
The output Q of a function F_TRIG_FUN remains set for a complete PLC cycle after the occurrence of a falling edge (status change TRUE -> FALSE) at the CLK input and is then reset in the following cycle.