Skip to main content

SF_R_TRIG (FB)

Description of the function block

Tip

The version of the function block as described here corresponds to the latest version of the function block in Version list of function blocks.

Tip

SF_R_TRIG is a function block from the SafetyStandard library. It is an extension of R_TRIG, a standard IEC 61131-3 function block. The SF_R_TRIG function block contains safety-related data types (prefix: SAFE).

This function block detects a rising edge.

Figure 114. Function block: SF_R_TRIG
Function block: SF_R_TRIG


Table 93. VAR_INPUT

Name

Data Type

Initial Value

Description, parameter values

CLK

SAFEBOOL

FALSE

Input signal checked for rising edge.



Table 94. VAR_OUTPUT

Name

Data Type

Initial Value

Description, parameter values

Q

SAFEBOOL

FALSE

TRUE: Rising edge was detected on CLK.



The output Q is TRUE only if CLK = TRUE and was FALSE at the previous call of the function block. In all other cases, Q returns the value FALSE.