WinCC通信手册
- 格式:pdf
- 大小:417.14 KB
- 文档页数:34
WINCC与三菱FX5U通信
一、创建FX5U项目,进行以太网端口配置,配置的网关要与本地电脑在同一个网段类,如
图所示
二、点击详细设置,进入配置,将以太网设备SLMP连接设备拖至总线上,设置协议为TCP,
端口号为2000,配置完后下载至PLC,下载完后断电重启或复位,如图所示
三、创建程序,M12置1 ,Y4动作,D300等于300时Y5动作,如图所示
四、启动WINCC,进入变量管理,添加新的驱动程序Mitsubishi Ethernet,如图所示
五、在Mitsubishi Q系列上右键新建连接NewConnection_1,在NewConnection_1上右键点击连接参数,如下图所示
六,修改IP地址,端口号,选择TCP协议,此设置要与第二步配置PLC参数对应,如图所示
七、创建变量,如图所示
八、新建图像编辑器,设计一个按钮控件,一个输入/输出对话框控件,两个圆形控制,如图所示
九、关联按钮变量,在事件按下左键和释放左键上单击右键选择直接连接,进行变量关联和参数配置,如图所示
十、选择输入/输出对话框,关联变量,如图所示
十一、关联圆形控件颜色变量,选择动态对话框,关联变量,数据类型为布尔型,标准周期选择有变化时,如图所示
十二、设置完后将效果属性中的“全局颜色方案”设置成“否”,设置此步为但关联的变量的发生变化时,颜色对应改变,如图所示
十三、按同样步骤配置另一个圆形控件,如图所示
十四、保存全部,运行系统,如图所示
十五、PLC上Y5点亮,如图所示。
WinCC flexible 2008 SP5 Update 1 Readme05/2018Legal informationWarning notice systemThis manual contains notices you have to observe in order to ensure your personal safety, as well as to preventdamage to property. The notices referring to your personal safety are highlighted in the manual by a safety alertsymbol, notices referring only to property damage have no safety alert symbol. These notices shown below aregraded according to the degree of danger.DANGERindicates that death or severe personal injuryWARNINGindicates that death or severe personal injury may result if proper precautions are not taken.CAUTIONindicates that minor personal injury can result if proper precautions are not taken.NOTICEindicates that property damage can result if proper precautions are not taken.If more than one degree of danger is present, the warning notice representing the highest degree of danger will beused. A notice warning of injury to persons with a safety alert symbol may also include a warning relating to propertydamage.Qualified PersonnelThe product/system described in this documentation may be operated only by personnel qualified for the specifictask in accordance with the relevant documentation, in particular its warning notices and safety instructions. Qualifiedpersonnel are those who, based on their training and experience, are capable of identifying risks and avoidingpotential hazards when working with these products/systems.Proper use of Siemens productsNote the following:WARNINGSiemens products may only be used for the applications described in the catalog and in the relevant technicaldocumentation. If products and components from other manufacturers are used, these must be recommended orapproved by Siemens. Proper transport, storage, installation, assembly, commissioning, operation andmaintenance are required to ensure that the products operate safely and without any problems. The permissibleambient conditions must be complied with. The information in the relevant documentation must be observed. TrademarksAll names identified by ® are registered trademarks of Siemens AG. The remaining trademarks in this publicationmay be trademarks whose use by third parties for their own purposes could violate the rights of the owner. Disclaimer of LiabilityWe have reviewed the contents of this publication to ensure consistency with the hardware and software described.Since variance cannot be precluded entirely, we cannot guarantee full consistency. However, the information inthis publication is reviewed regularly and any necessary corrections are included in subsequent editions.Siemens AGDivision Digital FactoryPostfach 48 4890026 NÜRNBERGGERMANYⓅ 05/2018 Subject to changeCopyright © Siemens AG 2018.All rights reservedTable of contents1Validity (5)2Solved problems (7)3Installation (11)WinCC flexible 2008 SP5 Update 1Readme, 05/20183Table of contentsWinCC flexible 2008 SP5 Update 1 4Readme, 05/2018Validity1 ValidityThis update is valid for the following WinCC flexible editions:●WinCC flexible 2008 SP5InstallationTo install the update, please follow the instructions in the chapter "Installation".WinCC flexible 2008 SP5 Update 1Readme, 05/20185ValidityWinCC flexible 2008 SP5 Update 1 6Readme, 05/2018Solved problems2 This update contains the following improvements:Empty graphic list entries cause errors during printingWhen there was no graphic in a graphic list entry, it was not possible to create the projectdocumentation.Info texts in WinCC flexibleWith some HMI devices, the maximum number of characters permitted for an information textwas too low.Generator: Project files that are too large prevent transferWith some HMI devices, the generated project could become unusually large so that, in somecircumstances, it was no longer possible to transfer the project.Texts in faceplate instances not editable after migrationAfter the migration of a project, it was no longer possible to edit the texts of faceplate instancesdefined at the interface.STEP 7 integrationAfter ProSave had been uninstalled, it sometimes occurred that the STEP 7 integration nolonger functioned without errors because, under some circumstances, a commonly usedruntime library was also uninstalled.Mobile Panels IWLAN V2The EU image for Mobile Panels IWLAN V2 is not included in WinCC flexible. You can onlytransfer the image present in WinCC flexible to non-EU devices.However, you can download the EU image for Mobile Panels IWLAN V2 from SIOS.After the introduction of the new EU article numbers, the associated image which enablesoperation of Mobile Panels IWLAN V2 is made available.The following individual IWLAN EU devices are supported:●Mobile Panel 277 8" IWLAN V2●Mobile Panel 277F 8" IWLAN V2●Mobile Panel 277F 8" IWLAN (RFID Tag)WinCC flexible 2008 SP5 Update 1Readme, 05/20187Solved problemsYou need to select version 1.4.0.0 under "Device selection > Version of the HMI device".Selecting version 1.5.0.0 will result in a bad configuration of the HMI device.The product announcement "EU order numbers for Mobile Panel 277(F) IWLAN" waspublished under entry ID 109745667 (https:///cs/document/109745667/eu-order-numbers-for-mobile-panel-277(f)-iwlan?dti=0&lc=en-WW) for which theEU image is made available for download under entry ID 109746331 (https:///cs/document/109746331/images-for-mobile-panel-277(f)-iwlan?dti=0&lc=en-WW).You can find the corresponding product information documents online in the Product Support(https:// (https:///cs/start?lc=en-WW)):●Product information "Radio operation within the EU": 109745797 (https:///cs/document/109745797/simatic-hmi-radio-operation-within-the-eu?dti=0&lc=en-WW)●Product information "Radio operation outside the EU": 109745796 (https:///cs/document/109745796/simatic-hmi-radio-operation-outside-the-eu?dti=0&lc=en-WW)●Product information "HMI Device Images for Download in SIOS": 109748151 (https:///cs/document/109748151/simatic-hmi-mobile-panel-277-iwlan-v2-mobile-panel-277f-iwlan-v2-mobile-panel-277f-iwlan-(rfid-tag)-hmi-device-images-for-download-in-sios?dti=0&lc=en-WW)You can find additional information under Industry Support (https:///cs/document/109746331/images-for-mobile-panel-277(f)-iwlan?dti=0&lc=en-WW).Transfer to IWLAN devicesIn 1.5.0.1, you can transfer IWLAN devices with the device versions 1.4.0.0 and 1.5.0.0.If you transfer alternately to a 1.4 and 1.5 device, it can occur sporadically that transfer is nolonger possible.SolutionRestart WinCC flexible if autostart is disabled in the Start Center or end the processTransferTool.exe.Use of Asian fonts●When using Asian fonts, it can occur that various characters are not displayed in Runtime,especially with the "SimSun" font. This problem occurs more often with Windows 10.●When using an Asian locale, in particular the "Chinese (Simplified, PRC)" locale (can beset under "Control Panel > Region and Language > Administrative > Language for non-Unicode programs") and depending on the software installed in parallel, Asian fonts maynot be transferred in full size or at all into CE Runtime. This may cause Runtime to abortwith an error or result in the project not being transferred due to the large file size.In this context, problems with Basic Runtime can also occur if there are characters in theproject path that do not match the current locale. With the "Chinese (Simplified, PRC)"locale, for example, these may be characters such as "ä", "ö", "ü" or "ß".WinCC flexible 2008 SP5 Update 1 8Readme, 05/2018Solved problems●It may be possible to configure the reserved font "WinCC_flexible_smart" if the TIA Portalis installed in parallel. This should not be possible. Instead, only the "WinCC_flexible" fontmay be offered.●The following fonts may be missing, depending on the software installed in parallel:–Siemens AD Sans–Siemens Logo–Siemens Sans–Siemens Sans Global–Siemens Sans SC–Siemens Serif–Siemens Serif SC–Siemens Serif SC Semi–Siemens Slab–Siemens Slab SC–WinCC_flexible–WinCC_flexible_high●Internal generation errors may occur when using the "WinCC_flexible" or"WinCC_flexible_smart" fonts, if they are available.SQL ServerDuring startup of the PC or start of WinCC flexible 2008 SP5, an error message sporadicallyappears that no connection to Microsoft SQL Server 2014 Express can be established. Whenthis occurs, WinCC flexible 2008 SP5 projects can no longer be started from STEP 7. Theseproblems have required manual intervention of the user up to now.The patch corrects a problem with the SQL Server "user instance" that has already beendiscontinued by Microsoft. In it, instead of Microsoft SQL Server 2014 Express, the LocalDBvariant of the SQL Server 2014 Express is used. The independent LocalDB variant of the SQLServer does not require the "SQL Server (WINCCFLEX2014)" service, which is prone to errorsin user instances, and no longer requires administrator rights.RoutingIf transfer via routing is available and active for the current configuration, the project cannotbe transferred due to a validation problem.WinCC flexible 2008 SP5 Update 1Readme, 05/20189Solved problemsWinCC flexible 2008 SP5 Update 1 10Readme, 05/2018Installation3 RequirementsThis update requires one of the following WinCC flexible installations:●WinCC flexible 2008 SP5Install the update on your configuration PC.ProcedureTo install the update, proceed as follows:1.Double-click on the "WinCCflexible2008_SP5_Upd1.exe" file.2.Select "C:\WinCCflexible2008_SP5_Upd1" as the installation directory in the "WinZip Self-Extractor" dialog.3.Enable "When done unzipping open .\setup.exe" and exit the dialog by clicking "Unzip".4.Open your project on the configuration PC.5.Execute a full compilation with the menu command "Project > Compiler > Rebuild All...".6.Transfer the project to the HMI device once again.WinCC flexible 2008 SP5 Update 1Readme, 05/201811InstallationWinCC flexible 2008 SP5 Update 1 12Readme, 05/2018。
1. WinCC与组态王之间的OPC通信1.1客户端和服务器都要进行以下配置。
(1)我们要关闭Windows防火墙,具体步骤如下:a.点击Windows开始按钮,选择控制面板,最后点击Windows防火墙。
b.在常规标签中,选择“关闭(不推荐)”。
c.在例外标签中,添加“OPC Server Enumerator”(OpcEnum.exe在C:\WINDOWS\system32目录下)和“Microsoft Management Console”(mmc.exe 在C:\WINDOWS\system32目录下)到例外列表中。
此外,还要添加端口,端口号的名称可以任意,端口号为135。
(2)我们要确保所有的计算机有相同的用户名和密码的组合。
用户名和密码的匹配在OPC的访问是必须的。
(3)设置本地安全策略a.点击Windows开始按钮,双击控制面板中的管理工具,然后点击本地安全策略。
b.在目录树下,找到安全设置→本地策略→安全选项。
c.找到“网络访问:本地账户的共享和安全模式”选项,双击打开它在本地安全设置中选择“经典-本地用户以自己的身份验证”。
1.2 KingView服务器端的配置在本地上位机中安装了KingView6.53版软件,作为系统的监控组态软件, 与下位机PLC系统通信, 完成数据的采集和控制功能, 实现整个控制系统的集中监控。
同时为了满足集成自动化的需要,上层的管理级要采集该监控系统的数据, 在保证不修改该监控系统硬件的情况下,只对软件部分进行适当的修改便可实现数据的传输。
这里利用KingView的OPC功能,其本身可以充当OPC服务器,向其它符合OPC规范的控制系统提供数据。
在KingView中定义相关的变量, 并和采集数据的硬件连接;然后在充当客户端的其它应用程序中与KingView运行系统建立连接,并且添加数据项目,以便能实现数据通信和调用功能。
在应用程序运行时,客户端将按照指定的频率采集KingView的数据。
目录1 使用和组态可能性 (1)1.1 HMI 环境中的定位 (3)1.2 系统组件 (4)1.3 集成到SIMATIC 环境中 (7)1.4 集成在组合的IT 解决方案中 (9)1.5 开放性 (11)1.6 典型组态 (14)1.6.1 单用户系统 (15)1.6.2 多用户系统 (16)1.6.3 Web 客户机系统 (18)1.6.4 分布式系统 (20)1.6.5 冗余系统 (22)1.7 授予许可证 (24)WinCC 如何工作 (25)2.1 图形系统 (27)2.2 报警记录 (29)2.3 归档系统 (32)2.4 报表系统 (35)2.5 通讯 (37)2.6 WinCC 功能图表 (40)使用WinCC 进行组态 (43)3.1 项目的设置与管理 (45)3.2 过程的可视化 (47)3.3 对输入的反应 (50)3.4 过程值的访问 (52)3.5 显示当前的过程值 (55)3.6 过程值的归档 (57)3.7 过程值进展的可视化 (59)3.8 消息的创建和归档 (61)3.9 将过程和事件制成文档 (64)3.10 防止未授权的操作 (66)3.11 设置多语言项目 (68)3.12 运行和测试项目 (70)3.13 项目向导................................................................................................... 72 2 3 在线帮助的发行版i目录 ii2002-7-15 在线帮助的发行版2002-7-15 使用和组态可能性1 使用和组态可能性什么是WinCC ?WinCC 是用于Microsoft Windows NT和Windows 2000的一种高效HMI 系统。
HMI 是“HumanMachine Interface”(人机界面的缩写,即人(操作员和机器(过程之间的界面。
WinCC V7.2与S7-1200 PLC常规通讯自WinCC V7.2版本起,软件新增加了“SIMATIC S7-1200, S7-1500 Channel”通道,用于WinCC与S7-1200/S7-1500 PLC之间的通信。
此驱动只支持以太网通讯,使用TCP/IP 协议。
文档示例的软/硬件环境硬件:WinCC项目运行的电脑自带普通以太网卡、CPU 1214C软件:WinCC V7.2 Upd6、Simatic NET V8.2 SP1、Step7 V13(用于组态S7-1200)1.设置PLC通讯参数以及DB块属性设置在Step7 V13组态软件中打开S7-1200项目,关于PLC硬件组态步骤在此不详述。
注意,如果您使用固件版本为V4.0 以上的S7-1200 CPU,则需要如下额外设置,才能保证通信正常。
请点开CPU 的设备组态,“属性->常规->保护”里“连接机制”一项需要勾选“允许从远程伙伴(PLC\HMI\OPC\...)使用PUT/GET 通信访问”,如下图所示:在树形菜单中打开“设备和网络”,打开网络视图点击CPU 1214C 通讯端口,在“属性”界面中设置通讯参数,在“子网”列表中可把接口连接到某一子网,设置“IP地址”和“子网掩码”参数。
简单通讯情况下,可以不用启用IP路由器,如图1. 所示。
图1. S7-1200通讯参数打开项目中“程序块”,创建DB块,创建数据,如图2.所示。
图2. 创建DB块注意:WinCC需要读写的DB块,不能使用符号寻址,只能使用绝对寻址。
所建的DB块属性中需要取消“优化的块访问”,如图3. 所示。
图3. DB块属性编写相应的PLC程序,下载到实际硬件。
2. WinCC添加新驱动在WinCC项目中可添加此驱动,如图4. 所示,打开变量管理界面,选择“变量管理”点击鼠标右键,选择“添加新的驱动程序”,在驱动列表中选择“SIMATIC S7-1200, S7-1500 Channel”驱动。
西门子Wincc新手入门教程1.西门子Step7和Wincc通讯搭建1.1Step7新建一个项目1.2建立和Wincc的通讯1.3画面编辑及测试2.Wincc画面制作--窗口的使用2.1整体规划2.2画面切换2.3画面下拉菜单跳转画面2.3画面弹出窗口3.Wincc画面制作--动态变化3.1多个位置变化3.2位置动态变化3.3驱动跟踪4.Wincc画面制作--报警4.1WinccAlarmControl控件使用4.2语音报警5.Wincc画面制作---C脚本的使用5.1调用同一个窗口画面实现不同的指令功能5.2对按钮做密码保护5.3截取字符串5.4数据限幅5.5保存数据至TXT文件使用环境:Win732位操作系统Step7V5.5S7-Plcsim V5.4Wincc V7.21.西门子Step7和Wincc通讯搭建1.1Step7新建一个项目:打开Step7,新建一个S7-300站,简单做一个硬件配置,此处以CPU315-2PN/DP 为例,此CPU可以通过MPI,DP或者以太网用S7-PLCSIM模拟,如下:在OB1中简单添加一段程序:下载到PLCSIM就可以仿真了,在下图的Modify可以任意赋值:1.2建立和Wincc的通讯新建一个Wincc的工程,打开变量管理:选择“添加新的驱动程序”->S7Protocol Suite,然后新建一个TCP/IP连接当然,建立MPI或者Profibus都是可以的,此处我是通过TCP建立STEP7和PLCSIM通讯的,因此Wincc也通过以太网通讯。
在TCP/IP属性选择PLCSIM(TCP/IP)并且在NewConnection_1的属性根据实际填写参数,IP就是CPU的IP,机架号0,插槽2,如下:设置完成后,在右边添加变量,一个BOOL 量,2个浮点数,名字可以和Step7中定义的不同,但地址就是在Step7中建立的变量地址:1.3画面编辑及测试新建一个画面,并设置为启动画面编辑画面,此处新建了一个输入输出域,在它的输入输出属性的输出一栏编写代码,并设置触发器:点击设置触发器当M0.0触发时,显示MD200,否则显示MD204同理,对闪烁进行设置:最后,通过仿真测试效果:下图是M0.0不同的情况,MD200为40,MD204为50,那么此时画面应该显示50并且不闪烁:至此,Wincc 和PLC 通过仿真器建立好通讯了,接下来所有的测试例子均基于此。
WinCC与Step7-300通讯步骤如下:1、用一根普通网线连接计算机和以太网模块。
2、启动Step 7 ,点击“选项---->设置PC/PG接口”,将通讯接口设置为ISO的那个,指向你正在使用的网卡。
3、点击“PLC--->编辑以太网节点”,输入以太网模块上的MAC 地址,以及你需要分配的IP地址,子网掩码,最后点击“分配IP组态”,IP分配完成。
4、点击“选项---->设置PC/PG接口”,将通讯接口设置成TCP/IP。
5、在PLC硬件组态中,将以太网IP地址设置成你刚才分配的那个IP。
6、现在你可以正常通过以太网下载程序了。
如果mmc卡是空的或者卡里面的硬件配置程序跟现有硬件一致,可以用mac地址下载。
否则,必须先清空mmc卡或者先用mpi下载∙三菱PLC输出指示灯安装于各自的输出模块上,PLC输出指示灯用于指示PLC输出信号的状态。
当输出指示灯不亮时,检查、确定故障原因。
∙当利用编程器检查,确认PLC输出已经为“1”,且更换模块后PLC输出可以正常输出时,如对应的指示灯还是不亮,在检查输出模块安装、连接正常的基础上,可以确认故障是PLC输出模块或对应的输出点本身不良引起的。
输出模块、输出点本身不良可能的原因有:∙ 1.采用汇点输出(无源)时,可能PLC输出接口电路损坏;∙ 2.采用源输出(有源)时,因输出负载过重、短路引起了三菱PLC内部电源电压的降低、保护;∙ 3.当故障发生在扩展单元时,可能是基本单元与扩展单元间的连接不良;∙ 4.三菱PLC输出接口电路损坏等。
测量三菱PLC输出电压、检查模块安装与连接,在确认正确后,应更换输出模块或进行输出模块的维修与处理。
本章通过一个实际例子讲述WinCC与S7-300 PLC之间通过Ethernet的通讯方法。
下面列举了一些在通讯中常用的术语。
4.1 通讯术语(1)通讯通讯用于描述两个通讯伙伴之间的数据交换。
(2)通讯伙伴通讯伙伴是指可以相互进行通讯的模块,也可是说它们互相交换数据。
WINCC连接Siemens PLC的常用方式The serial methods of communication between Siemens PLC and WinCC摘要 WinCC上位组态软件和西门子PLC建立通讯的几种方法关键词 WinCC,PLC,通讯,MPI协议,Profibus协议,EthernetKey Words WinCC,PLC,Commnication,MPI,Profibus,EthernetA&D Service & Support Page 2-39目录WINCC连接Siemens PLC的常用方式 (1)一.WINCC使用CP5611通讯卡通过MPI连接PLC (4)前提条件 (4)1.STEP 7 硬件组态 (4)2.安装CP5611通讯板卡 (5)3.添加驱动程序和系统参数设置 (5)4.设置Set PG/PC Interface (6)5.添加通道与连接设置 (8)6.连接测试与通讯诊断 (10)二.WINCC使用CP5611通讯卡通过PROFIBUS连接PLC (11)前提条件 (11)I.STEP 7 硬件组态 (11)2.安装CP5611通讯板卡 (13)3.添加驱动程序和设置系统参数 (13)4.设置Set PG/PC Interface (14)5.添加通道与连接设置 (17)6.连接测试与通讯诊断 (18)三.WINCC使用普通网卡通过TCP/IP连接PLC (20)前提条件 (20)1.STEP7硬件组态 (20)2.设置IP地址与通讯检测 (22)3.添加驱动程序和设置系统参数 (23)4.设置Set PG/PC Interface (24)5.添加通道与连接设置 (28)6.连接测试与通讯诊断 (29)四.WINCC使用普通网卡通过Industrial Ethernet连接PLC (31)前提条件 (31)1.STEP7硬件组态 (32)2.添加驱动程序和设置系统参数 (33)3.设置Set PG/PC Interface (34)4.添加通道与连接设置 (36)5.连接测试与通讯诊断 (37)A&D Service & Support Page 3-39说明:1.文档并未列出所有的WINCC连接Siemens品牌PLC的所有方法,只是列举了一些常用的方法。
此配置是在WIN7/Windows2008server系统下,使用Step75.5版本和WINCC7.0SP3版本来配置服务器和客户端的。
1.首先安装操作系统和Step7 5.5+SP2,WINCC7.0+SP3,WINCC选择安装专家模式。
2.将所有的计算机包括工程师站,服务器和客户机的用户名都选用administrator,密码都设置成一样。
3.将系统防火墙关闭。
4.配置Windows系统,将administrator放置在SIMATIC HMI,Administrators 和SQLServer2005MSSQLUser$(计算机名)$WINCC组下,如果没有在任一个组可以使用以下方式添加:5.设置服务器和客户机硬盘共享,在安全里添加SIMATIC HMI用户名,并选择Full Control模式。
并在共享的选择高级共享将硬盘共享,并配置允许Full Control模式。
共享就配置完成了,对应的硬盘符上出现一个共享的图标,系统就配置完成了。
6.以下配置WINCC项目。
在工程师站的程序包中插入已有参考项目的HMI 的服务器程序包和Client OS程序包。
7.配置WINCC服务器项目现在路径。
8.配置Client OS项目下砸路径9.服务器生成server data10.OS Client配置服务器10.打开OS Client项目检查计算机属性设置,初始画面,屏幕设置,用户授权等是否正确。
11. 将HMI_Server 程序下载到服务器并运行后,这里HMI_Server的Computer里不用再添加任何的Client了。
将HMI_Client 下载到客户机,就可以在线画面了。
Client的包也可以在工程师站打开并运行,可以用来事先检查项目运行是否正常,然后再进行下载。
12. 如果OS在Assign OS Server时出现unknown状态,先将勾去掉,然后点击OK,在进到HMI Server项目中将server data删除掉,再重新生成一次server data,然后在OS中Assign一下就又能到步骤9的状态了。