Using Siemens touchscreen software (WINCC flexibleSMART) and Siemens S7-200SMART series PLC, this project enables online simulation functionality between the WINCC flexibleSMART simulation software and the S7-200SMART series PLC.
To achieve this function, the following steps are mainly involved:
1. In the communication connection section of the WINCC FlexibleSMART software, establish a communication driver connection with the S7-200SMART series PLC. The specific connection parameter settings are shown in the figure below:
a : Double-click to open the connection dialog box
b : Select the PLC to connect. Here, the selected PLC is the S7-200SMART series PLC.
c : Set the touchscreen IP address. Since a computer is used to simulate the touchscreen here, the IP address set must be the same as the computer's.
d : Configure the PLC's IP address, ensuring that the PLC's IP address and the computer's IP address are on the same network segment.
e : Set the access point name. This access point name must be consistent with the application access point used to configure the PC/PG interface parameters later.
II. Configuring the Touchscreen Programming Monitoring Screen and Writing PLC Programs
Let's take a simple example of starting a motor and monitoring its running time to illustrate this.
(1) Establish the necessary variables in the touch screen.
(2) Configure a monitoring screen on a touch screen. The configuration process will not be described in detail here.
(3) Write a PLC program for testing and download the program to the PLC.
III. Setting up some parameters for online simulation connection
(1) Open the Control Panel on your computer. In the Control Panel, there is an option to set the PC/PG interface. Click this option to open the PC/PG interface settings dialog box and make the settings. (If you can't find it, you can change the view in the upper right corner to small icons.)
(2) Set application access points and interface parameters
a . The application access point selection should be consistent with the access point set in the communication connection settings of the WINCC flexible SMART software.
b . The communication connection uses Ethernet, so when assigning interface parameters, select the network card name used by your computer to connect to the PLC, and the protocol is TCP/IP.
IV. Launch the simulation system in WINCC flexibleSMART software to perform online simulation testing, as shown in the following figure:
Online simulation interface: