Getting started
2.3 Programming
2.3.4
Step 7: Programming the safety door function
In this step, you program the safety door function for this example.
The safety door secures the application's service area. Opening the safety door results in a
stop or shutdown of the production cell similar to an emergency stop.
Click the "Play" button to start the animation file. Click the other control elements to rewind,
pause, go back, or go forward.
Procedure
1. In the interface of the "Safety_Interlock" F-FB, create a static tag of data type "Bool"
named "EN_Safety_Door" (Enable safety door).
2. Insert the "SFDOOR" instruction from the "Safety functions" subfolder of the "Instructions"
task card.
3. Click "OK" to confirm the "Call options" dialog.
4. Initialize the inputs and outputs with parameters as described in the table below.
Result
The programming of the safety door function is now complete.
52
S7-1200 Functional Safety Manual
Manual, 02/2015, A5E03470344-AA