实例讲解WinCC的入门项目使用方法
希望大家能通过这篇文章对WINCC有个认识,也会发觉学习组态软件其实也不那么难,我会持续更新通过实例玩转WINCC系列。希望大家持续关注、转发和评论。一、编写step7程序我们做一个循环灯程序,简单点的,呵呵呵首先新建项目:https://p1-tt.byteimg.com/origin/pgc-image/15394770502309789f98cca?from=pc组态硬件:https://p6-tt.byteimg.com/origin/pgc-image/153947707425488d5903741?from=pc
编写程序,我们这里用接通延时定时器来控制三个灯循环亮,可以通过按钮和WINCC画面来进行启动和停止,具体编程如下,大家可以跟着一起操作下。https://p6-tt.byteimg.com/origin/pgc-image/153947710852144f4539f2a?from=pc
https://p1-tt.byteimg.com/origin/pgc-image/15394770995861a4f728a43?from=pc
启动仿真器,将我们做好的站下到仿真器中,选择MPI网。进行仿真运行来验证我们所做的程序是否满足功能。参见如下图https://p1-tt.byteimg.com/origin/pgc-image/15394771269430548399f92?from=pc
这样我们程序就算完成了,并且已经下载到我们PLC的CPU了。通过仿真,可以完美完成我们的设计要求。二、编写WINCC画面1、打开WINCC程序,选择新建项目,选择单用户项目,点击确定https://p3-tt.byteimg.com/origin/pgc-image/153947718441370efde4785?from=pc
出现如下界面https://p1-tt.byteimg.com/origin/pgc-image/1539477201868d83b932925?from=pc
2、新建连接选择变量管理,选择打开,出现如下画面https://p1-tt.byteimg.com/origin/pgc-image/153947721785460985ca02b?from=pc
3、右键点击变量管理选择【添加新的驱动程序】-【SIMATIC S7 protocol Suite】,出现如下界面https://p6-tt.byteimg.com/origin/pgc-image/1539477239685b396cb1697?from=pc
4、在画红框中的选择【MPI】,点击右键选择【新建连接】,给新建连接起名lamp,如下图https://p6-tt.byteimg.com/origin/pgc-image/1539477260040e30e7a3373?from=pc
在lamp下建立如下变量https://p6-tt.byteimg.com/origin/pgc-image/153947728164439a818136d?from=pc
在图形编辑器中新建图形,如下图https://p1-tt.byteimg.com/origin/pgc-image/15394773030759db337086c?from=pc
在NewPdl1.PDL编辑画面新建静态文本,https://p6-tt.byteimg.com/origin/pgc-image/1539477323368b57ca605a8?from=pc
做三个灯(1)插入圆,https://p1-tt.byteimg.com/origin/pgc-image/1539477339300464e5dd3a4?from=pc
(2)如上图选择颜色,如下图选择背景颜色,右键点击动态,选择【动态对话框】。https://p3-tt.byteimg.com/origin/pgc-image/1539477358180a9a2155aaa?from=pc
先选择变量,设置变量类型,设置背景颜色。以此类推,做三个圆。如图所示https://p3-tt.byteimg.com/origin/pgc-image/1539477378035489a804ef8?from=pc
https://p3-tt.byteimg.com/origin/pgc-image/1539477386750ff239444ba?from=pc
插入按钮,按如下图进行设置https://p6-tt.byteimg.com/origin/pgc-image/1539477407879558e2abaa9?from=pc
https://p6-tt.byteimg.com/origin/pgc-image/15394774148378f1232f3ea?from=pc
以此类推做一个STOP按钮。整体画面如下https://p1-tt.byteimg.com/origin/pgc-image/15394774335469bf878f066?from=pc
点击保存和运行,如下图。https://p3-tt.byteimg.com/origin/pgc-image/1539477451400e3494e8ecc?from=pc
运行效果如下:https://p1-tt.byteimg.com/origin/pgc-image/15394774668701adfdeddab?from=pc
是否觉得简单,看会了不等于你真会了,还是需要大家亲自上手来操作。
真是被感动的痛哭流涕……
好东西一定要看看! 路过混个脸熟,顺便为优质内容打 call~ 谁懂啊!真的被戳中笑点 / 泪点了 水个经验,支持楼主,加油呀 不请自来,只为说一句:太精彩了! 占个楼慢慢看,先马克一下
楼主辛苦啦,期待下一篇分享 不请自来,就想夸一句:太顶了! 蹲一波同款,有没有姐妹 / 兄弟推荐?
页:
[1]
2