web123456

Boto can only find plc_S7-300F with ET200S by address same device Safe Communication - Complete Safe PLC Hardware and Software Configuration Case ...

write sth. right in front of you

Hello, I'm Alic, the owner's friend.

Today we take the S7-300F and ET200S security communication as an example, to bring you a complete security configuration, of course, many people will say that long ago Botu, but also use step7 Manager, this benevolent to see the wisdom of it, I mainly want to disseminate the concept, not to give you the application of tools and software ~!

01 Hardware configuration of S7-300F with ET200S

1) Click "New Project", enter the project name (CPU317F_ET200S) and click "OK" to complete the project creation.

2) Insert the S7-300 station and change the name to: CPU317F.

3) Double click the Hardware Configuration Configuration interface, find CPU317F-2PN/DP from the product list on the right side, and drag it into the project.

4) Double-click CPU Hardware Configuration to set the CPU password protection and security program password in the CPU Properties page.

5) Setting the IP address and industrial Ethernet network (download via Ethernet programming).

6) Create a Profinet IO system bus.

7) Locate the IM151-3 PN HF V7.0 from the product list on the right and drag it onto the PROFINET IO bus.

8) To assign an IP address to the IM151-3 PN HF, first double-click on the IM151 site, and on the properties page click "Ethernet"button and change the IP address to "192.168.0.151" in the interface properties page.

9) Configure the power supply, F-DI and F-DO modules in the ET200S station.

The safety module hardware dip switches need to be consistent with the F target address set by the F-DI/DO module configuration, in this example, the safety target address of F-DI is set to 1 and F-DO is set to 2.

NOTE: The F_destination_address on the F-I/O must be set via the DIP switches before the F-I/O can be installed.

10) The hardware configuration has been completed, click on the "Compile" button, no error report click on the "Download" button to download the hardware configuration.

After clicking the "OK" button, click the "Update" button in the dialog box of selecting node address, and select the found devices in "AccessibleNodes". In the "AccessibleNodes" dialog box, select the found devices and click "OK" button to download the hardware configuration.

Click "OK" to confirm the download of hardware and offline CPU information.

After the download is completed, the system prompts if you need to start the CPU, click "Yes" and the CPU will enter the RUN mode.

11) To assign an ET200S device name, first select the IM151 station in the hardware configuration and then click on the menu bar "PLC"Assign Device Name..." in "Ethernet" under "Options".

In the new dialog box that pops up, select the device name "IM151-3PN" to be assigned, then select the MAC address of the target device and click "Assign name" button to assign the device name.

02 Software configuration of S7-300F with ET200S

A program example is used to understand the process of configuring the safety program to realize the safety stop function. When there is no emergency stop signal, the indicator L1 lights up; when the emergency stop signal arrives or the emergency stop signal is faulty, the indicator L1 goes out. When the emergency stop signal leaves or the fault is restored, the answer request ACK_REQ is changed to 1, and then the indicator L1 lights up again after the confirmation by switch S2.

1) To create the security organization block OB35, in the STEP7 project interface, right click on the blank space in the Blocks directory and select the "Organization Block" option in "insert New Object". in the "insert New Object" section of the STEP7 project interface.

In the pop-up dialog box, change "Name" to OB35 and click OK.

2) Create the FC1 function, using the same method as above.

In the pop-up dialog box, change "Name" to FC1 and "Created in Language" to F-CALL, then click OK.

3) Create Security Master Block FB1, using the same method as above.

In the pop-up dialog box, change "Name" to FB1 and "Created in Language" to LAD, then click OK.

4) To create a safe runtime group, click on the Safe Editor button in the STEP 7 main interface, click on the "Runtime groups" button in the pop-up interface, click on the "New" button in the new interface, and add the IDB block number manually in the pop-up interface, in this case it is DB1. In the popup screen, manually add the IDB block number, in this case it is DB1.

5) Call F-CALL in OB35.

6) Open FB1 and write the safety program; call the FB215 emergency stop function block in the safety program library.

7) Open Security Editor, click "Compile" button to compile the security program; then click "Download" button to download it.

8) Open security block FB1 and click on the Monitor button.

9) If one of the two channels of the emergency stop signal is lost, resulting in a channel difference, the safety module automatically detects an external signal error and blunts the template, at which point the SF indicator of the safety module becomes illuminated. The error information can be obtained by directly reading the diagnostic information of the safety module.

10) In the program, the working status of the module can be read by accessing the F-I/O DB of this safety signal module. In this example, this F-I/O DB is DB1092, and by observing the bit status of PASS_OUT and QBAD, it can be seen that the module has been passivated.

11) Restore the wiring of the emergency stop switch fault channel input, and the request answer signal ACK_REQ becomes 1, indicating a request to go blunt.

11) Set ACK_REI to give an answer signal and complete depassivation. Only after passivation can the status of the external input value be read in the safety program. It is necessary to program the ACK_REI bit in the safety program block FB1.

When the rising edge is triggered, depassivation is completed and the module returns to normal, but the emergency stop block still needs a software reset, at this time, the output pin ACK_REQ of the FB215 is 1, indicating that the block requests depassivation.

To de-obtuse the FB215 function block, simply provide a rising edge signal to input pin ACK.

03 Focus on principles rather than application tools

I'd like to have read Chi's post:

Automation isn't what it used to be, so why are you still what you used to be?

You should know that what we advocate is the underlying thinking, if you only carry out the pure application of tools to learn, then the riotous years, your energy will never be enough, with the continuous integration of IT and OT, you may feel more and more overwhelmed~

Source: Intelligent Industrial Automation Technology

Disclaimer: The articles contained in this public number for the public number of original or according to the network search editing, article copyright belongs to the original author. Due to the reproduction of many, can not find the real source, such as the wrong source, or for the text used in the picture, information, download links contained in the software, information, etc., such as copyright infringement, please contact us to negotiate or delete, thank you!

Past Recommendations From Ethernet to TSN, Top 7 Industrial Ethernet,OPC UAindustrial real-time communications

Siemens, Rockwell, Dassault, PTC and other industrial giants under siege of the domestic industrial software jianghu

S7-1500 connected to V90 servo system to realize positionclosed-loop control

System Interpretation Rockwell MES platform FTPC - Follow me to get started with MES / MOM series of specials

Over transition from traditional PLC, robotics, and process programming to simulation and virtual debugging

Overall design and implementation plan of intelligent manufacturing for an automobile assembly workshop

MES has never been more than just a B-side thing: the MES system planning and implementation principles

We are a group of smart manufacturing technology enthusiasts, we are willing to share, we are positive, we may be a bit nerdy, but we are very loving, we look forward to your joining us!

--Home of Intelligent Manufacturing