laitimes

How to realize the secure communication of S7-1500F PLC and S120

author:Look automation

1 Introduction

With the introduction of the S7-1500F product, ROFIsafe secure communication with the S120 can be realized to implement the security control functions of the S120. In PROFIsafe communication, SINAMICS devices communicate with the safety PLC via either the PROFIBUS interface or the PROFINET interface. For ordinary PROFIsafe communication, you can use the No. 30 security message for control, and the specific configuration steps can be referred to as follows

2 Project configuration

Software and hardware:·

TIA Portal V13 Update 2 and above

· TIA Safety Advance V13

· Starter/SIMOTION V4.4

· CPU 1518F-3DP/PN

· CU320-2PN Fw 4.7

Project configuration steps

1. Open Portal software and create a new project:

How to realize the secure communication of S7-1500F PLC and S120

2. Add a new device, the hardware used in this article is the 1518F CPU:

How to realize the secure communication of S7-1500F PLC and S120

3. Configure the network and configure the S120, in this case using s120-2DP CBE20 V4.7:

How to realize the secure communication of S7-1500F PLC and S120
How to realize the secure communication of S7-1500F PLC and S120

4. Establish the network connection between the PLC and the S120, configure the device name:

How to realize the secure communication of S7-1500F PLC and S120

5. Configure the message, first insert the DO servo, then configure the safety message 30 and basic message 1:

How to realize the secure communication of S7-1500F PLC and S120

6. Save the compiled project:

How to realize the secure communication of S7-1500F PLC and S120

7. Configure S120 in Starter/SCOUT and configure packets offline, the driver message is divided into two parts, namely security packet 30 and standard packet 1:

How to realize the secure communication of S7-1500F PLC and S120

8. Download the configuration of the S120 online:

How to realize the secure communication of S7-1500F PLC and S120

9. Download the configuration of the PLC:

How to realize the secure communication of S7-1500F PLC and S120

10. Write the security program (FB1) and download:

How to realize the secure communication of S7-1500F PLC and S120

11.

How to realize the secure communication of S7-1500F PLC and S120

12. Activate the security function of S120 online: Click change setting, and the changed interface is as follows:

How to realize the secure communication of S7-1500F PLC and S120

13. Select Extended Security Features:

How to realize the secure communication of S7-1500F PLC and S120

14. Click the Configure button to configure PROFIsafe:

How to realize the secure communication of S7-1500F PLC and S120

15. Select the security message attribute of S120 on the way to Bo to obtain the security address of S120:

How to realize the secure communication of S7-1500F PLC and S120

Fill in the secure address:

How to realize the secure communication of S7-1500F PLC and S120

16. Activate security features:

How to realize the secure communication of S7-1500F PLC and S120

17. Click Copy parameter, click Change setting, and set the password as shown below:

How to realize the secure communication of S7-1500F PLC and S120

18. Click Confirm:

How to realize the secure communication of S7-1500F PLC and S120

19. Copy RAM to ROM is required before booting, and program settings are uploaded, after which the device needs to be powered back on.

How to realize the secure communication of S7-1500F PLC and S120

20. Safe function control can be performed through the Watch table (false means that the corresponding safety function is activated), if the PASS_OUT variable is true, you need to use ACK for depassivation:

How to realize the secure communication of S7-1500F PLC and S120