Skip to main content

SF_TP (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_TP is a timer function block from the SafetyStandard library. It is an extension of TP, a standard IEC 61131-3 function block. The SF_TP function block contains both standard data types and safety-oriented data types (prefix: SAFE).

SF_TP is a timer function block that operates as a signal generator. A timer (ET) is counted up until the upper limit (PT) is reached. During counting up the signal variable (Q) is TRUE.

Figure 121. Function block: SF_TP
Function block: SF_TP


Table 103. VAR_INPUT

Name

Data Type

Initial Value

Description, parameter values

IN

BOOL

FALSE

Rising edge at IN starts the pulse generator.

PT

TIME

TIME#0ms

Time duration of pulse generator (in milliseconds)



Table 104. VAR_OUTPUT

Name

Data Type

Initial Value

Description, parameter values

Q

SAFEBOOL

FALSE

Pulse variable

TRUE while counting up, i.e. as long as ET is less than or equal to PT, otherwise FALSE.

ET

TIME

TIME#0ms

Elapsed time since starting the pulse generator (Q). When ET = PT, the value remains constant.



Figure 122. Timing diagram: SF_TP
Timing diagram: SF_TP