-

R_TRIG / R_TRIG_S

Type Function block

Available as standard (non-safety-related) and safety-related type (*_S). For the safety-related type, the safety-related data types (SAFE*) are expected at the formal parameters.
Description Detects a rising edge. If a rising edge is detected at the input CLK, the output Q changes from FALSE to TRUE. Q remains TRUE until the next execution of the function block.

If the function block is called for the first time, Q is FALSE until the first edge is detected.
Note Function blocks have to be instantiated. The instance name of the function block has to be declared in the 'Variables' table of the POU where the FB is going to be used. The instance name must be unique within the POU.
Parameters Input

CLK

Output

Q