This article demonstrates how to control the reciprocating motion of a Maxim servo motor using a complete project in TIA Portal v15. It mainly covers two parts: connecting the EP3E PROFINET servo with a process object to an S7-1200 PLC, and establishing communication between the S7-1200 PLC and WinCC RT Advanced. The connection between the EP3E PROFINET servo and the S7-1200 PLC will not be detailed here; please refer to the article "Connecting the EP3E PROFINET Servo to S7-1200". The following section focuses on configuring WinCC RT Advanced.
1. Add new equipment
In the project tree on the left, click "Add New Device", then click "PC System - SIMATIC HMI Application Software - WINCC RT Advanced".
2. Add a communication module
Click "Device View", select the newly added "WINCC RT Advanced" icon, and in the hardware directory on the right, select "Communication Modules - PROFINE/ETHERNET - General IE" in sequence, and drag and drop it into the relevant slot.
3. Configure IP address
Click on the newly added communication module, open the properties settings, go to General, and set the IP address to be in the same segment as the PC.
4. Create a connection between the PLC and "WinCC RT Advanced".
Click on the network view, select "Connections - HMI Connection", and drag and drop to connect.
View the connection information in the project tree.
5. Configure PG/PC interface
Open the Control Panel, select Settings for PG/PC Interface, configure it as "S7ONLINE(STEP7)", and select the currently connected network card.
6. Edit the PLC program block and download it.
Add "MC_POWER_DB", "MC_HOME_DB", "MC_MoveRelative_DB", and "MC_MoveAbsolute_DB" to the code block.
7. Add a screen in WinCC RT Advanced
Add elements such as "I/O field", "button", and "trend view" respectively, and set the corresponding element properties and event parameter values.
8. Configure and run the system settings in WinCC RT Advanced.
Set the initial screen, screen resolution, full-screen mode, and other settings.
Click the following icon in the toolbar: "Run the system on PC".
In the pop-up window, set the running distance and speed, then click Enable, Return to Zero, and Run the System. Once the system runs normally, observe whether the curve changes are consistent with the actual program.