Skip to main content

SF_EmergencyStop

Applicable Safety Standards

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

Important

The requirements which are listed in the standards must be met by the user.

Interface Description

This function block is a safety-related 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 22. VAR_INPUT

Name

Data Type

Initial Value

Description, Parameter Values

Activate

BOOL

FALSE

See General Input Parameters

S_EStopIn

SAFEBOOL

FALSE

Safety demand input

Variable

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

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

S_StartReset

SAFEBOOL

FALSE

See General Input Parameters

S_AutoReset

SAFEBOOL

FALSE

See General Input Parameters

Reset

BOOL

FALSE

See General Input Parameters



Table 23. VAR_OUTPUT

Name

Data Type

Initial Value

Description, Parameter Values

Ready

BOOL

FALSE

See General Output Parameters

S_EStopOut

SAFEBOOL

FALSE

Output for the safety-related response

FALSE: Safety output disabled

Demand for safety-related response (e.g. emergency stop button engaged, reset required or internal errors active)

TRUE: Safety output enabled

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

SafetyDemand

BOOL

FALSE

See General Output Parameters

ResetRequest

BOOL

FALSE

See General Output Parameters

Error

BOOL

FALSE

See General Output Parameters

DiagCode

WORD

16#0000

See Diagnostic Codes



Figure 21. 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 safety controller 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 safety controller 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 circuit, depends on the dedicated hardware that is used.

State diagram

Figure 22. State diagram: SF_EmergencyStop
State diagram: SF_EmergencyStop


Tip

The transition from any state to the Idle state due to Activate = FALSE is not shown. However these transitions have the highest priority.

Typical Timing Diagrams

Figure 23. Timing diagram for SF_EmergencyStop: S_StartReset = FALSE; S_AutoReset = FALSE; Start, Reset, Normal Operation, Safety Demand, Restart
Timing diagram for SF_EmergencyStop: S_StartReset = FALSE; S_AutoReset = FALSE; Start, Reset, Normal Operation, Safety Demand, Restart


Figure 24. Timing diagram for SF_EmergencyStop: S_StartReset = TRUE, S_AutoReset = FALSE; Start, Normal Operation, Safety Demand, Restart
Timing diagram for SF_EmergencyStop: S_StartReset = TRUE, S_AutoReset = FALSE; Start, Normal Operation, Safety Demand, Restart


Figure 25. Timing diagram for SF_EmergencyStop: S_StartReset = FALSE, S_AutoReset = TRUE, Start, Normal Operation, Safety Demand, Restart
Timing diagram for SF_EmergencyStop: S_StartReset = FALSE, S_AutoReset = TRUE, Start, Normal Operation, Safety Demand, Restart


Error Detection

The function block detects a static TRUE signal at Reset input.

Error Behavior

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

To leave the error states, the Reset must be set to FALSE.

FB-Specific Error and State Codes

Table 24. FB-specific error codes

DiagCode

State Name

State Description and Output Setting

C001

Reset Error 1

Reset = TRUE while waiting for S_EStopIn = TRUE.

Ready = TRUE

S_EStopOut = FALSE

SafetyDemand = FALSE

ResetRequest = FALSE

Error = TRUE

C011

Reset Error 2

Reset = TRUE while waiting for S_EStopIn = TRUE.

Ready = TRUE

S_EStopOut = FALSE

SafetyDemand = FALSE

ResetRequest = FALSE

Error = TRUE



Table 25. FB-specific state codes (no error)

DiagCode

State Name

State Description and Output Setting

0000

Idle

The function block is not active (initial state).

Ready = FALSE

S_EStopOut = FALSE

SafetyDemand = FALSE

ResetRequest = FALSE

Error = FALSE

8001

Init

Activation is TRUE. The function block was enabled. Check if S_StartReset is required.

Ready = TRUE

S_EStopOut = FALSE

SafetyDemand = FALSE

ResetRequest = FALSE

Error = FALSE

8802

Wait for S_EstopIn 1

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

Ready = TRUE

S_EStopOut = FALSE

SafetyDemand = TRUE

ResetRequest = FALSE

Error = FALSE

8402

Wait for Reset 1

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

Ready = TRUE

S_EStopOut = FALSE

SafetyDemand = FALSE

ResetRequest = TRUE

Error = FALSE

8804

Wait for S_EStopIn2

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

Ready = TRUE

S_EStopOut = FALSE

SafetyDemand = TRUE

ResetRequest = FALSE

Error = FALSE

8404

Wait for Reset 2

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

Ready = TRUE

S_EStopOut = FALSE

SafetyDemand = FALSE

ResetRequest = TRUE

Error = FALSE

8000

Safety Output Enabled

Activation is TRUE. S_EStop = TRUE. Functional mode with S_EStopOut = TRUE.

Ready = TRUE

S_EStopOut = TRUE

SafetyDemand = FALSE

ResetRequest = FALSE

Error = FALSE