Siemens offers the ability to integrate STEP7 and WINCC/WINCC flexible, which has the advantage of significantly reducing project volume and improving engineering efficiency.
1, insert a "SIMATIC PA station" in the STEP7 project, as shown in:
2, click "Configration", insert communication mode and WINCC project:
Compile save after completion.
3, now start to write a PLC control program to insert a motor class equipment as an example:
For more information on writing PLC control procedures, see: http://www.cnblogs.com/InhaSoftware/p/4448928.html
Drag a Hwmotor object to the editor and assign a good background db and input and output address as shown in:
4, by setting the relevant variables of the motor to compile only WINCC: Right-click on the background db, select "Operator Control monitoring", such as:
Tick "Operator Control monitoring", such as:
5, compile the variable to WINCC: Right-click on the inserted OS and select "Compile", such as:
Once the compilation is complete, you can see the background db in WINCC, and a motor class device that contains only one variable implements all the relevant functions:
6, configuring this object on WINCC, see:
Http://www.cnblogs.com/InhaSoftware/p/4471942.html
7, this is the effect of the runtime:
Rapid development project based on STEP7 V5.X&WINCC v7.x