Skip to main content

SF_EmergencyStop

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.

Applicable safety standards

SF_EmergencyStop is a certified PLCopen function block. For detailed information about applied standards, see "PLCopen – Technical Committee 5 – Safety Software".

Important

The requirements listed in the standards must be fulfilled by the user.

Interface description

This function block is a safety-oriented function block for monitoring an emergency stop button. SF_EmergencyStop can be used for emergency switch-off functionality (stop category 0), or – with additional peripheral support – as emergency stop (stop category 1 or 2).

Table 27. VAR_INPUT

Name

Data Type

Initial Value

Description, parameter values

Activate

BOOL

FALSE

General input parameters

S_EStopIn

SAFEBOOL

FALSE

Input which requests safety

Variable

FALSE: Demand for safety-oriented response (e.g. emergency stop button is engaged)

TRUE: No demand for safety-oriented response (e.g. emergency stop button not engaged)

S_StartReset

SAFEBOOL

FALSE

General input parameters

S_AutoReset

SAFEBOOL

FALSE

General input parameters

Reset

BOOL

FALSE

General input parameters



Table 28. VAR_OUTPUT

Name

Data Type

Initial Value

Description, parameter values

Ready

BOOL

FALSE

General output parameters

S_EStopOut

SAFEBOOL

FALSE

Output for safety-oriented response

FALSE: Safety output disabled

Request for safety-oriented response (for example, emergency stop button is engaged, reset required or internal error exists)

TRUE: Safety output is activated

No demand for safety-oriented response (e.g. emergency stop button not engaged; no internal errors active).

Error

BOOL

FALSE

General output parameters

DiagCode

WORD

16#0000

Diagnostic codes



Figure 63. Function block: SF_EmergencyStop
Function block: SF_EmergencyStop


Functional description

The S_EStopOut enable signal is reset to FALSE as soon as the S_EStopIn input is set to FALSE. The S_EStopOut enable signal is reset to TRUE only if the S_EStopIn input is set to TRUE and a reset occurs. The enable reset depends on the defined S_StartReset, S_AutoReset, and Reset.

If S_AutoReset = TRUE: Acknowledgment is automatic.

If S_AutoReset = FALSE: A rising trigger at the Reset input must be used to acknowledge the enable.

If S_StartReset = TRUE: Acknowledgment is automatic the fist time the S-PLC is started.

If S_StartReset = FALSE: A rising trigger at the Reset input must be used to acknowledge the enable.

Caution

The S_StartReset and S_AutoReset inputs shall only be activated if it is ensured that no hazardous situation can occur when the S-PLC is started.

SF_EmergencyStop can be used to monitor both single and dual-channel emergency stop buttons. For example, for two-channel applications, the additional SF_Equivalent function block can be used to detect whether the contact synchronization has been exceeded. The category classification in accordance with EN ISO 13849-1 will depend on the final elements that are used.

The SF_EmergencyStop automatically detects a static TRUE on Reset. Further error detection, e.g. wire break or short circuiting, depends on the dedicated hardware that is used.

Status diagram

Figure 64. Status diagram: SF_EmergencyStop
Status diagram: SF_EmergencyStop


Tip

Note: The transition from any state to the Idle state, initiated by Activate = FALSE, is not shown. In every case, these transitions have the highest priority.

Figure 65. Timing diagram 1: SF_EmergencyStop
Timing diagram 1: SF_EmergencyStop


Figure 66. Timing diagram 2: SF_EmergencyStop
Timing diagram 2: SF_EmergencyStop


Figure 67. Timing diagram 3: SF_EmergencyStop
Timing diagram 3: SF_EmergencyStop


Error detection

The POU detects a static TRUE signal at the Reset input.

Error behavior

S_EStopOut is set to FALSE. In case of a static TRUE signal at the Reset input, the DiagCode output shows the relevant error code and the Error output is set to TRUE.

To exit the error states, the reset has to be set to FALSE.

FB-specific error and status codes

Table 29. FB-specific error codes

DiagCode

Statue Name

Status description and output setting

C001

Reset Error 1

While waiting for S_EStopIn = TRUE, Reset becomes TRUE.

Ready = TRUE

S_EStopOut = FALSE

Error = TRUE

C002

Reset Error 2

While waiting for S_EStopIn = TRUE, Reset becomes TRUE.

Ready = TRUE

S_EStopOut = FALSE

Error = TRUE



Table 30. FB-specific status codes (no error)

DiagCode

Statue Name

Status description and output setting

0000

Idle

The function block is not active (basic state).

Ready = FALSE

S_EStopOut = FALSE

Error = FALSE

8001

Init

Activation is TRUE. The block has been activated. Check whether S_StartReset is requested.

Ready = TRUE

S_EStopOut = FALSE

Error = FALSE

8002

Wait for S_EstopIn 1

Activation is TRUE. Check if Reset is FALSE and wait for S_EStopIn = TRUE.

Ready = TRUE

S_EStopOut = FALSE

Error = FALSE

8003

Wait for Reset 1

Activation is TRUE. S_EStopIn = TRUE. Wait for rising trigger edge of Reset.

Ready = TRUE

S_EStopOut = FALSE

Error = FALSE

8004

Wait for S_EStopIn2

Activation is TRUE. Safety requirement detected. Check if Reset is FALSE and wait for S_EStopIn = TRUE.

Ready = TRUE

S_EStopOut = FALSE

Error = FALSE

8005

Wait for Reset 2

Activation is TRUE. S_EStopIn = TRUE. Check S_AutoReset or wait for rising trigger edge of Reset.

Ready = TRUE

S_EStopOut = FALSE

Error = FALSE

8000

Safety Output Enabled

Activation is TRUE. S_EStop = TRUE. Function type with S_EStopOut = TRUE.

Ready = TRUE

S_EStopOut = TRUE

Error = FALSE