用wincc做冗余
WinCC冗余服务器
![WinCC冗余服务器](https://img.taocdn.com/s3/m/2b96e81455270722192ef792.png)
WinCC冗余服务器实验实验设备:两台装有WinCC RC,WinCC Server和Redundancy选件的电脑,一根串口电缆。
Server Master组态:1.新建一个多用户项目。
2.组态Alarm Logging。
新建一个内部变量t1打开Alarm Logging,选择Tools -> Add Ins建一个模拟量上限报警。
右键“Analog Alarm” -> New右键“t1” -> New∙生成系统消息:选择Tools -> WinCC-System Messages -> Create3.组态Tag Logging打开Tag Logging,右键Archives -> Archives Wizard -> Archives Name=a1 -> 选择t1变量4.组态画面∙创建一个I/O域连接变量t1∙创建报警消息窗口∙创建趋势窗口,连接变量t1归档a15.在计算机属性中激活”Alarm Logging Runtime”和”Tag Logging Runtime”。
6.选择Redundancy,激活冗余,Partner Server选择WINCC2。
7.局域网内计算机的时钟同步,选择Time Synchronization。
设置如下图,以计算机WinCC1的时钟为参考,每一分钟发送一次时钟。
8.创建Server Data。
项目复制在主服务器中WinCC -> Tools中打开项目复制器选择源(主服务器的项目)和目标(从服务器)的地址,按Duplicate。
结束后提示复制完成。
从服务器端在计算机wincc2中打开复制过来的项目打开Redundancy项,如下图Server变为WINCC2,伙伴服务器变为WINCC1。
冗余服务器组态完成。
实验结果首先激活主服务器,再激活从服务器。
等冗余服务器建立完成了(可见系统消息),断开其中一台的网络,模拟一个网络故障;此期间模拟一些归档曲线,激活一些模拟量报警,再恢复网络,此时同步开始(系统消息”Synchronization launched”),等待大概10-15分钟,同步结束(系统消息”Synchronization finished”)。
WinCC客户端与冗余服务器配置步骤
![WinCC客户端与冗余服务器配置步骤](https://img.taocdn.com/s3/m/074fdce755270722182ef73e.png)
WinCC客户端与冗余办事器配置步调之五兆芳芳创作主办事器CP1623网卡配置1.在办事器端设置CP1623网卡IP地址2.在Configuration Console(组态控制台)中设置CP1623网卡模块模式为组态模式,修改索引编号后点击应用.此时打开Station Configurator(站组态编辑器),显示如下3.在Configuration Console(组态控制台)中设置S7ONLINE拜访点为PC internal local4.在Station Configurator(站组态编辑器)中添加类型为WinCC应用程序的组件,并修改索引编号.此时Station Configurator(站组态编辑器)显示如下5.在Station Configurator(站组态编辑器)中修改站名,与计较机名相同.6.在Step7中设置PG/PC接口为PC internal local7.在Step7中打开主服器硬件组态,设置CP1623网卡的IP地址与MAC地址.编译并下载下载完成后,打开Station Configurator(站组态编辑器)显示如下8.在Step7中打开网络组态,编译后选中办事器,下载.下载完成后,打开Station Configurator(站组态编辑器)显示如下9.在办事器端重新设置CP1623网卡IP地址,IP地址与Step7硬件组态中不克不及重复.IP地址修改完成后,打开Configuration Console(组态控制台)中地址,如下图所示备用办事器CP1623网卡配置备用办事器配置步调除第4步与主办事器不合,其余均相同.4. 在Station Configurator(站组态编辑器)中添加类型为WinCC应用程序(待机)的组件,并修改索引编号.。
wincc冗余
![wincc冗余](https://img.taocdn.com/s3/m/a6b21299daef5ef7ba0d3c4e.png)
三、WINCC 冗余系统的设置与实现一般情况下WINCC 都采用Server-Clients的模式,如图1没有Server2时的网络拓扑:Server1是HMI服务器,它一方面和PLC直接通讯采集、设定数据;另一方面和Clients通讯发布画面和数据给Clients;而Clients上的所有画面和数据全部来自Server1。
这样的优势是做系统开发时只需要在Server1开发一套系统,既可以发布给所有的Clients共享,而且数据管理和维护更合理和方便,可以把管理级和过程级清晰的分开。
但是缺点也是很明显的,那就是一旦Server1发生故障,则整个控制级就无法正常工作。
如果能象图中增加Server2,使其和Server1互为热备,则可以大大的降低系统的运行风险。
WINCC就提供了这样的解决方案即WINCC冗余系统。
(图1)WINCC冗余系统采用两台连接到一起的服务器协同工作,运行期间,两台服务器相互监控,可以及时的发现对方是否进入故障状态,如果一台服务器发生故障,则所有的客户端自动切换到仍然正常的服务器,从而保证所有客户端总可以进行对自动化系统的监视和操作。
在一台发生故障期间,正常的服务器继续完成系统内的信息、过程数据归档和记录;当故障服务器正常投入后,故障期间的归档记录会自动复制到恢复后的服务器,从而保证了服务器数据的完整和连续。
这一过程也称作恢复后同步。
冗余系统的基本需求:1.服务器需要安装Windows 2000 Server版,WINCC项目配置为多用户模式(Multi-user) 2.系统要求工作在时钟同步方式下。
最好整个系统包括过程级和控制级都进行时钟同步,最少要在过程级进行时钟同步。
如果控制级也要进行时钟同步,则需要安装WINCC的“Timesynchronization”选项。
3.从PLC来的报警信息必须包含时间帧信息,在PLC程序内用报警块触发信息就包含时间帧信息。
4.两个Server必须分别连接到PLC,这样下级的过程数据和信息可以并行的传送到Server 5.两个Server都需要安装WINCC “Redundancy”选项6.两个Server在功能的配置上需要完全相同7.每一个用户归档都要指定唯一的字段用来保存最后变化的时间时钟同步,简单的说就是在一个系统内所有的具有时钟的站点都工作在相同的时间系统上。
WinCC冗余项目
![WinCC冗余项目](https://img.taocdn.com/s3/m/68cadc2a87c24028915fc35a.png)
如何构建一个WinCC冗余项目显示订货号如果需要使用WinCC冗余系统时,请仔细阅读下面的文档,它将解决以下几个问题:(1)WinCC冗余有什么样的功能?(2)需要购买什么样的授权?(3)应该安装在怎么样的系统上?(4)如何为用户配置操作系统的权限?(5)如何创建WinCC的冗余服务器项目?(6)如何创建WinCC的客户机?(7)如何诊断冗余错误和识别冗余工作状态?除此之外,对于需要引申的内容,该文档还提供了相关内容的链接地址和帮助路径,方便用户更加系统地学习WinCC冗余内容。
1.冗余系统简介WinCC冗余是两台互联的WinCC并行工作,并基于事件进行同步,提高了系统的可靠性。
WinCC冗余具有下列功能:(1)故障自动识别,故障恢复后自动同步变量记录、报警消息、用户归档。
(2)在线同步变量记录、报警消息、用户归档。
(3)服务器故障时,客户端自动切换到可用的服务器。
(4)自动识别伙伴服务器的状态,并实时显现主备服务器的工作状态。
(5)自动生成系统故障信息,及时发现服务器软件故障。
步骤:(1)在Windows开始管理工具计算机管理里面打开本地用户和组图01(2)创建一个新用户或者使用默认的Administrator(3)对于新建用户,在隶属于中,为用户分配Administrator,SIMATIC HMI和SQLServer2005MSSQLUSER$本地计算机名称$WinCC三个用户组。
对于默认Administrator 用户,检查是否属于上述三个组。
图02注意:两个$之间的“本地计算机名称”不能包含@ 、- 、空格、中文字符,同时第一个字符必须是字母。
如果不满足上述要求,请右键点击我的电脑—〉属性—〉计算机名称—〉更改,修改计算机名称,并重新安装SQL Server。
3.2 创建一个WinCC项目创建一个WinCC单用户或者多用户项目,组态相应的WinCC功能。
3.3 冗余功能设置(1)激活冗余选项右键单击冗余,打开冗余,选中“激活冗余”复选框。
wincc冗余组态画面修改问题
![wincc冗余组态画面修改问题](https://img.taocdn.com/s3/m/92f2fac7f9c75fbfc77da26925c52cc58ad69049.png)
wincc冗余组态画面修改问题
wincc冗余组态画面修改问题
现在问题是又2台服务器,4台客户机,其中一台做工程师站,做的C/S结构。
2台服务器做冗余,想修改冗余服务器的画面是如何修改?然后每次修改以后通过项目复制器复制到另一台里面?在工程师站是如何修改呢?
最佳答案
TO学习WINCC
1.如果是PCS7平台,
请在工程师站(ES)上打开PCS7项目,打开wincc服务器(Master,主服务器)项目,对之进修画面,变量等相关修改,然后进行下载,在下载的过程中,PCS7会自动的将两台服务器(master和standardby)都下载。
PS.如果你只做画面位置的调整改动,不涉及变量等其它操作,你可以在ES上的PCS7项目中的wincc服务器项目里面修改画面后,直接将这个画面文件PDL通过网络复制到两台服务器计算机对应的GraCS画面文件夹中,就不需要去下载了。
2.如果你是单单是WinCC平台上
你可以使用项目复制器,在simatictool里面,里面有个复制到哪里,你选择你的冗余服务器就可以。
这两种方法都可以实现,前提是你要拥有对冗余服务器的操作权限,最简单的取得冗余服务器权限的方法,就是在同一个子网内(一般都是的),把两个服务器的计算机用户名和密码都设置为一样的。
wincc冗余
![wincc冗余](https://img.taocdn.com/s3/m/a0c01df69e314332396893b4.png)
三、WINCC 冗余系统的设置与实现一般情况下WINCC 都采用Server-Clients的模式,如图1没有Server2时的网络拓扑:Server1是HMI服务器,它一方面和PLC直接通讯采集、设定数据;另一方面和Clients通讯发布画面和数据给Clients;而Clients上的所有画面和数据全部来自Server1。
这样的优势是做系统开发时只需要在Server1开发一套系统,既可以发布给所有的Clients共享,而且数据管理和维护更合理和方便,可以把管理级和过程级清晰的分开。
但是缺点也是很明显的,那就是一旦Server1发生故障,则整个控制级就无法正常工作。
如果能象图中增加Server2,使其和Server1互为热备,则可以大大的降低系统的运行风险。
WINCC就提供了这样的解决方案即WINCC冗余系统。
(图1)WINCC冗余系统采用两台连接到一起的服务器协同工作,运行期间,两台服务器相互监控,可以及时的发现对方是否进入故障状态,如果一台服务器发生故障,则所有的客户端自动切换到仍然正常的服务器,从而保证所有客户端总可以进行对自动化系统的监视和操作。
在一台发生故障期间,正常的服务器继续完成系统内的信息、过程数据归档和记录;当故障服务器正常投入后,故障期间的归档记录会自动复制到恢复后的服务器,从而保证了服务器数据的完整和连续。
这一过程也称作恢复后同步。
冗余系统的基本需求:1.服务器需要安装Windows 2000 Server版,WINCC项目配置为多用户模式(Multi-user) 2.系统要求工作在时钟同步方式下。
最好整个系统包括过程级和控制级都进行时钟同步,最少要在过程级进行时钟同步。
如果控制级也要进行时钟同步,则需要安装WINCC的“Timesynchronization”选项。
3.从PLC来的报警信息必须包含时间帧信息,在PLC程序内用报警块触发信息就包含时间帧信息。
4.两个Server必须分别连接到PLC,这样下级的过程数据和信息可以并行的传送到Server 5.两个Server都需要安装WINCC “Redundancy”选项6.两个Server在功能的配置上需要完全相同7.每一个用户归档都要指定唯一的字段用来保存最后变化的时间时钟同步,简单的说就是在一个系统内所有的具有时钟的站点都工作在相同的时间系统上。
WinCC客户端与冗余服务器配置步骤
![WinCC客户端与冗余服务器配置步骤](https://img.taocdn.com/s3/m/93e3bdedf524ccbff0218442.png)
WinCC客户端与冗余服务器配置步骤主服务器CP1623网卡配置1.在服务器端设置CP1623网卡IP地址2.在Configuration Console(组态控制台)中设置CP1623网卡模块模式为组态模式,修改索引编号后点击应用。
此时打开Station Configurator(站组态编辑器),显示如下3.在Configuration Console(组态控制台)中设置S7ONLINE访问点为PC internal local4.在Station Configurator(站组态编辑器)中添加类型为WinCC应用程序的组件,并修改索引编号。
此时Station Configurator(站组态编辑器)显示如下5.在Station Configurator(站组态编辑器)中修改站名,与计算机名相同。
6.在Step7中设置PG/PC接口为PC internal local7.在Step7中打开主服器硬件组态,设置CP1623网卡的IP地址与MAC地址。
编译并下载下载完成后,打开Station Configurator(站组态编辑器)显示如下8.在Step7中打开网络组态,编译后选中服务器,下载。
下载完成后,打开Station Configurator(站组态编辑器)显示如下9.在服务器端重新设置CP1623网卡IP地址,IP地址与Step7硬件组态中不能重复。
IP地址修改完成后,打开Configuration Console(组态控制台)中地址,如下图所示备用服务器CP1623网卡配置备用服务器配置步骤除第4步与主服务器不同,其余均相同。
4. 在Station Configurator(站组态编辑器)中添加类型为WinCC应用程序(待机)的组件,并修改索引编号。
WinCC冗余服务器
![WinCC冗余服务器](https://img.taocdn.com/s3/m/882f3b23fd4ffe4733687e21af45b307e871f9d0.png)
WinCC冗余服务器目录1·引言·21·1 目的21·2 范围21·3 预期读者21·4 术语定义·22·系统概述··32·1 系统架构32·2 硬件要求32·3 软件要求33·安装和配置过程·43·1 安装WinCC冗余服务器软件··4 3·2 配置主服务器·43·2·1 配置网络设置·43·2·2 配置数据库设置··53·2·3 配置通讯设置·53·3 配置备份服务器·53·3·1 配置网络设置·53·3·2 配置数据库设置··6 3·3·3 配置通讯设置·63·4 启动和测试冗余服务器·6 4·系统维护和故障排除··74·1 日常维护74·2 故障排除85·安全和备份策略·95·1 安全策略95·1·1 访问控制95·1·2 日志记录105·2 备份策略··105·2·1 数据库备份··105·2·2 系统备份·116·升级和升级策略·126·1 升级前准备126·2 升级过程··126·3 后续步骤··137·相关法律名词及注释··148·附件·151·引言1·1 目的本文档旨在提供基于WinCC冗余服务器的安装、配置、维护和故障排除的详细指南,以帮助用户顺利搭建和运行冗余服务器。
wincc冗余问题
![wincc冗余问题](https://img.taocdn.com/s3/m/1616133da98271fe910ef977.png)
如果需要使用WinCC冗余系统时,请仔细阅读下面的文档,它将解决以下几个问题:(1)WinCC冗余有什么样的功能?(2)需要购买什么样的授权?(3)应该安装在怎么样的系统上?(4)如何为用户配置操作系统的权限?(5)如何创建WinCC的冗余服务器项目?(6)如何创建WinCC的客户机?(7)如何诊断冗余错误和识别冗余工作状态?除此之外,对于需要引申的内容,该文档还提供了相关内容的链接地址和帮助路径,方便用户更加系统地学习WinCC冗余内容。
1.冗余系统简介WinCC冗余是两台互联的WinCC并行工作,并基于事件进行同步,提高了系统的可靠性。
WinCC冗余具有下列功能:(1)故障自动识别,故障恢复后自动同步变量记录、报警消息、用户归档。
(2)在线同步变量记录、报警消息、用户归档。
(3)服务器故障时,客户端自动切换到可用的服务器。
(4)自动识别伙伴服务器的状态,并实时显现主备服务器的工作状态。
(5)自动生成系统故障信息,及时发现服务器软件故障。
如果项目中有上述需求,WinCC冗余可以方便项目的实施。
2.搭建WinCC冗余项目的必要条件2.1 软件和授权授权名称个数安装位置备注WinCC RT/RC2每个服务器上1个至少一个RC一个订货号包含两WinCC/Redundancy1每个服务器上1个个冗余授权WinCC/Server2每个服务器上1个多用户项目与客户端的数目相WinCC RT 128每个客户机上1个需要客户端等表 012.2 安装系统环境建议使用Windows Server 2003或者Windows Server 2003 R2对于单用户的冗余系统,也可使用Windows XP操作系统。
更详细的兼容性列表,可以参考:87957163.组态WinCC冗余系统3.1 创建Windows用户在两台服务器上,创建相同的用户名和密码。
步骤:(1)在Windows开始管理工具计算机管理里面打开本地用户和组图 01(2)创建一个新用户或者使用默认的Administrator(3)对于新建用户,在隶属于中,为用户分配Administrator,SIMATIC HMI 和 SQLServer2005MSSQLUSER$本地计算机名称$WinCC三个用户组。
WinCC中文手册-WINCC冗余
![WinCC中文手册-WINCC冗余](https://img.taocdn.com/s3/m/edb1bac30c22590102029db4.png)
在线帮助的发行版
冗余
1
WinCC 冗余
05.2005
WinCC 冗余选件提供:
在线帮助的发行版
冗余
7
WinCC 冗余
05.2005
过程连接出错后的同步
如果在服务器和一台或多台 PLC 之间进行运行操作时发生网络错误,则该错误解决 后,同步会被自动启动(如果此前已组态)。
在线同步
在内部消息报警记录期间和用户归档中将进行服务器到服务器的直接同步(在线同 步)。
在线帮助的发行版
8
05.2005
在线帮助的发行版
4
冗余
05.2005
1.1.2 带冗余的 WinCC 系统结构
引言
WinCC 冗余
WinCC 项目 WinCC 项目由一组自动化系统、一台服务器以及一台或多台客户机组成。项目还包括 诸如程序、组态数据和其它设置等所有数据。
冗余 WinCC 项目 当另一台功能完全相同的服务器开始并行运行时,就构建了项目的冗余。这两台服 务器相互连接,并都与 PLC 和客户机相连。更详细信息参见“组态完全相同的功 能”。
注意: 如果“应用程序正常检查”功能检测到软件出错,且启动了客户机的切换,则必须 重新启动相关的服务器。只有如此,才能将客户机与服务器重新链接。 冗余服务器上必须安装有 Windows 2000 Server,而客户机 PC 上必须安装有 Windows 2000 或 Windows XP。
WinCC客户端与冗余服务器配置步骤
![WinCC客户端与冗余服务器配置步骤](https://img.taocdn.com/s3/m/7c3bbe92fc4ffe473368abd8.png)
WinCC客户端与冗余服务器配置步骤1 / 33主服务器CP1623网卡配置2 / 331.在服务器端设置CP1623网卡IP地址3 / 334 / 332.在Configuration Console(组态控制台)中设置CP1623网卡模块模式为组态模式,修改索引编号后点击应用。
5 / 336 / 33此时打开Station Configurator(站组态编辑器),显示如下7 / 338 / 333.在Configuration Console(组态控制台)中设置S7ONLINE访问点为PC internal local9 / 3310 / 334.在Station Configurator(站组态编辑器)中添加类型为WinCC应用程序的组件,并修改索引编号。
11 / 3312 / 33此时Station Configurator(站组态编辑器)显示如下13 / 3314 / 335.在Station Configurator(站组态编辑器)中修改站名,与计算机名相同。
15 / 3316 / 336.在Step7中设置PG/PC接口为PC internal local17 / 3318 / 337.在Step7中打开主服器硬件组态,设置CP1623网卡的IP地址与MAC地址。
19 / 3320 / 33编译并下载21 / 3322 / 33下载完成后,打开Station Configurator(站组态编辑器)显示如下23 / 3324 / 338.在Step7中打开网络组态,编译后选中服务器,下载。
25 / 3326 / 33下载完成后,打开Station Configurator(站组态编辑器)显示如下27 / 3328 / 339.在服务器端重新设置CP1623网卡IP地址,IP地址与Step7硬件组态中不能重复。
29 / 3330 / 33IP地址修改完成后,打开Configuration Console(组态控制台)中地址,如下图所示31 / 3332 / 33备用服务器CP1623网卡配置备用服务器配置步骤除第4步与主服务器不同,其余均相同。
wincc实现软冗余手册
![wincc实现软冗余手册](https://img.taocdn.com/s3/m/24468176a417866fb84a8e6a.png)
1 Software RedundancyWithin WinCC, the software redundancy feature makes it possible to monitorcritical sections of a plant by using a redundant connection to several PLCs.Software redundancy considerably improves reliability when critical plantsections are to be monitored. For example, a redundant connection to twoPLCs means that one PLC takes over if the other PLC fails. Using softwareredundancy does not mean that you can only establish redundant connectionsto the PLCs configured. It is still possible to connect any PLC in a non-redundant layout. The switchover between redundant PLCs is performedautomatically in the event of a malfunction. However, a manual switchover isalso possible by specifying a tag (@ForceConnectionState).NoteEstablishing a redundant connection requires two PLCs.Setting up software redundancy:In order to use software redundancy under WinCC, the following settings are required in the Control Center:Step 1The computer properties must be set to the following values:Step 2Within the Alarm Logging system, the "short-term archive" must beactivated:If the "short-term archive" has not yet been activated, proceed as follows: In the navigation window, open the pop-up menu of the "Archives" object and select the "Add/Remove" menu item. Within the "Assign StorageParameters" dialog box, activate the "Short-Term Archive Active" check box.Step 3Within the Alarm Logging, the system messages must be retrieved; select the "Options" and "WinCC System Messages" menu items for thispurpose. In the "WinCC system messages" dialog box, activate the "Create New System Messages Only" option and press the "Create" button. This procedure retrieves the system messages associated with softwareredundancy.Step 4By means of the "DynWizEdit.exe" program, integrate the DynamicWizard for software redundancy into the WinCC system (GraphicsDesigner). This integration procedure requires the following steps: In the Windows Explorer, start the "C:\Siemens\WinCC\bin\DynWizEdit.exe"program. Select the "German" language in the toolbar. Retrieve the"C:\Siemens\WinCC\wscripts\wscripts.deu\SW_Redundanz.wnf" script by selecting the "Dynamic Wizard" and "Retrieve Wizard Script" menuitems. The compilation progress is shown in the output window. After the compilation has been completed successfully, the new entry "EstablishRedundant Connection" appears in the "Dynamic Wizard" window.Step 5Integrate the "SIMATIC S7 PROTOCOL SUITE" communications driver within the tag management.Step 6Within the required bus type (e.g. MPI), create a logical connection in the "SIMATIC S7 PROTOCOL SUITE" communications driver. Give anexpressive name to this connection.Step 7Open an existing picture in the Graphics Designer. Within the Dynamic-Wizard (in the "System Functions" tab), start the "Establish RedundantConnection" program by double-clicking.Step 8Press the "More" button in the welcome screen.Step 9Select the main connection in the "Set Options" dialog box. Then press the "More" button.Step 10Edit the settings for the back-up connection in the "Set Options" dialog box. Then press the "More" button. The "Automatic Switchover" check box must be active (default setting).The settings for the back-up connection (S7 network address) can be found in the "Connection" tab. Access this tab via the connection propertiesdialog box for the connection.Step 11The settings you specified are displayed in the final "Finished" dialog box.By pressing the "Finish" button, connection-specific internal tags arecreated in a tag group. This tag group is stored within the tag management under "SIMATIC S7 PROTOCOL SUITE" and the associated channelunit.NoteBy pressing the "Back"u button, you can go back one step and make any necessary changes.1.1 Connection-specific Internal TagsConnection control is accomplished by means of connection-specific internaltags. The connection-specific internal tags are created by a wizard. The nameof a connection-specific internal tag is composed of the name of the associatedconnection and an identifier. The connection name is provided with a '@'prefix to identify it as a system tag. Example: "@connectionname@identifier". All connection-specific internal tags are assembled to forma "@connection name" tag group.NoteOnly if the associated connection is ready for operation does the WinCC datamanager permit access to connection-specific tags. However, it is possible tohave read and write access to connection-specific internal tags independentlyof the connection status.The following system tags are available for SIMATIC S7 PROTOCOL SUITEsoftware redundancy:@ConnectionStateMeaning:connection statusType:DWORDAccess:readDefault:0 = "faulty"The current connection status can be determined by means of the'ConnectionState' tag.0 = connection faulty1 = connection ready for operation@ConnectionErrorMeaning:error causeType:DWORDAccess:readDefault:0 = "no error"The tag contains an error cause describing the reason why theconnection was interrupted. Default = 0, i.e. connection not yetestablished or without error. When establishing a connection, the tag isloaded with 0 (no error) again. The error code is interpreted in achannel-specific manner. The S7 channel stores the S7 DOS error codehere.0 = no error<> 0 = S7 DOS error code@ConnectionErrorStringMeaning:error cause as stringType:TEXT8 [128]Access:readDefault:"" = "no error"The tag contains the error cause in the format of a string describing the reason why the connection was interrupted. The string is put out in the language currently selected. Default = "", i.e. connection not yetestablished or without error. The following texts are entered in the S7channel in English, without regard to the selected language."No Error"= No error"Error hhhh"= hhhh error occurred(hhhh = S7 DOS hexadecimal error code)@ConnectionErrorCountMeaning:communication error counterType:DWORDAccess:readDefault:0 = "no error"The value of this tag is incremented by 1 each time a connection isinterrupted.In the event of an overflow the count starts again with 0.@ConnectionEstablishModeMeaning:connect modeType:DWORDAccess:writeDefault: 1 = "automatic"This tag enables you to specify a connection to be establishedautomatically. The S7 channel then attempts to reestablish a failedconnection at intervals of approx. 4 seconds. If a value = 0 is enteredin this tag, the connection will not be reestablished automatically atintervals of 4 seconds, but remains interrupted.Writing the @ConnectionEstablishMode tag takes the following effect:0 = manual connecting mode-> deactivate automatic connecting<> 0 = automatic connect mode-> activate automatic connecting@ForceConnectionStateMeaning:preferred connection statusType:DOWRDAccess:writeDefault: 1 = "established"This tag can be used to notify the channel of the preferred connection status. Usually this tag has the value 1, i.e. the channel attempts toestablish the connection (at regular intervals of approx. 4 seconds, ifapplicable). If the value 0 is written to this tag, the channel interrupts the connection.Writing to this tag takes the following effect:0 = preferred connection status: connection interrupted-> if connection established-> cause connection to be interrupted1 = preferred connection status: connection established-> if connection interrupted-> cause connection to be established@ForceConnectionAdressMeaning:selecting the connection addressType:DWORDAccess:writeDefault:0 = "configured"This tag specifies which of the connection addresses is to be used for establishing the connection.Writing to this tag takes the following effect:0 = connection via configured connection parameters-> if @ForceConnectionAddress previously 1-> cause connection to be interrupted1 = connection via alternative connection parameters-> if @ForceConnectionAddress previously 0-> cause connection to be interrupted->If connect mode is set to "automatic", the connection isautomatically established with the corresponding address.@AlternateConnectionAdressMeaning:Alternative connection addressType:TEXT8 [255]Access:writeDefault:"..." = "configured"The alternative connection address string can be entered in this tag.This is the same string as the one which is displayed as connectionparameter in the WinCC Control Center. The string is channel-specific. On system start-up (runtime), the configured address isentered here as default for the S7 channel. If an address has not beenconfigured yet, the text "Illegal Address" is entered for the S7 channel.Example of an address specified for an S7 PLC with station address 3via MPI: “MPI,3 0,,0,0,02“Writing to this tag takes the following effect:->If the address is changed by the write process, the "Connection via alternative connection parameters" setting causes the connection to be interrupted.->If the "automatic" connect mode has been set, the connection isestablished automatically, using the address just previously written.1-112 Master-Reserve Change-over on the S7When the Dynamics Wizard has finished setting up the redundant-backup link, you canextend the script by adding the …Master-Reserve Change-over“ option.To do so, you open the script under …Global Script -> Actions -> Global Actions“. If yourselected connection is called …CPU_3“ as in the illustrations above, open @CPU_3.pas.Control Center- (Projekt.MCP)ProjektVariablenhaushaltEditorenGlobal ScriptAktionenGlobale Aktionen CPU_3.pas CPU_4.pas CPU_5.pasHaving opened it, you then insert the sequence printed in bold type and highlighted ingray. Here too it is assumed that your connection is called …CPU_3“. If you have used adifferent name, replace each occurrence of …CPU_3“ with the name you have used. The bitvariable …SWR.Standby“ is the bit …Reserve“ from the status word (DW 9.1) from theinstance DB of the call for FB101 …SWR_ZYK“. If you have used a different name forthis, replace the name accordingly............{MSRTStopMsgService ( ServiceID, &Error );}If ( GetTagDWordWait( "@CPU_3@ConnectionState" ) == 0 ){SetTagDWord( "@CPU_3@ForceConnectionState", 1 );}else{if ( GetTagBitWait( "SWR.Standby" ) == TRUE ){SetTagDWord( "@CPU_3@ForceConnectionState", 0 );}}return 1;}}2-12Note: you can add the …Standby bit“ to the structure for the redundant software backup screen block (see section 7.2.2 in the user documentation for the redundant-backup software blocks) as follows:Name Data type Offset BitWORD Status WORD00BIT MasterSwitch BIT20BIT RedTurnOn BIT29BIT RedTurnOff BIT28BIT Standby BIT092-13。
WINCC如何实现B.Data系统的冗余
![WINCC如何实现B.Data系统的冗余](https://img.taocdn.com/s3/m/208d5d0c9ec3d5bbfc0a7456.png)
WINCC如何实现B.Data系统的冗余1、概述基于WinCC/B.Data的综合能源管理系统,是西门子公司集成于TIA全集成自动化& TIP全集成能源自动化的一体化产品,通过这一强有力的工具,对从SCADA层中得到的数据,采用成熟高效的综合能源分析方式,覆盖能源采购,能源调度,确保能源的高效使用和良好的成本控制。
采用B.Data进行能源系统的分析及管理,最终实现:技术数据和商务数据处理系统的整合;基于历史负荷数据和生产计划的负荷预测;气体和废水排放预测;增加发电和输配电的效率;通过生产相关的负荷预测提高规划可靠性;采购能源时,为采购部门提供成本优化支持;履行法律义务,监测报表温室气体排放;建立能源和原料帐目的公司级透明度;基于costs-by-cause原则,进行能源成本分配,易与财务系统关联(如SAP);相应的分析结果,通过报表系统合理展示。
但在项目设计时,要考虑能源管理系统的冗余,保证数据的完整,进而保证能源分析统计报表的完整。
根据系统情况,有下面两种冗余备份方式:系统完整冗余;通过WinCC数据冗余;下面基于项目系统配置分别进行说明:2、系统的完整冗余2.1 系统配置这种冗余方式适用于B.Data的所有服务都在一台计算机上部署的情况:计算机主要包括下面组件:Database Server:数据库服务器,存放B.Data的结构、配置及采集数据点;Acqusition Server:数据采集服务器,实现数据采集;Function Server:功能服务器,报表实现(数据从数据库到Excel中),任务管理;Web Server:发布服务器,作为B/S客户端的服务器;同类WinCC 项目WinCC C/S客户端WinCC B/S客户端对于WinCC C/S及B/S客户端,考虑是可以在别的计算机上,但是要考虑重新配置数据访问文件(C/S客户端)及不同的Web访问地址(B/S客户端)。
图1:完整冗余配置系统1图2:完整冗余配置系统2在上图1及图2中,考虑了两种情况,可以看出两台互为冗余计算机上的WinCC需要是同一个层次,同为WinCC服务器或同为WinCC客户端。
WinCC客户端与冗余服务器配置步骤
![WinCC客户端与冗余服务器配置步骤](https://img.taocdn.com/s3/m/cf8db9f116fc700aba68fcae.png)
WinCC客户端与冗余办事器设置装备摆设步调主办事器CP1623网卡设置装备摆设1.在办事器端设置CP1623网卡IP地址2.在Configuration Console(组态掌握台)中设置CP1623网卡模块模式为组态模式,修正索引编号后点击运用.此时打开Station Configurator(站组态编辑器),显示如下3.在Configuration Console(组态掌握台)中设置S7ONLINE拜访点为PC internal local4.在Station Configurator(站组态编辑器)中添加类型为WinCC运用程序的组件,并修正索引编号.此时Station Configurator(站组态编辑器)显示如下5.在Station Configurator(站组态编辑器)中修正站名,与盘算机名雷同.6.在Step7中设置PG/PC接口为PC internal local7.在Step7中打开主服器硬件组态,设置CP1623网卡的IP地址与MAC地址.编译并下载下载完成后,打开Station Configurator(站组态编辑器)显示如下8.在Step7中打开收集组态,编译后选中办事器,下载.下载完成后,打开Station Configurator(站组态编辑器)显示如下9.在办事器端从新设置CP1623网卡IP地址,IP地址与Step7硬件组态中不克不及反复.IP地址修正完成后,打开Configuration Console(组态掌握台)中地址,如下图所示备用办事器CP1623网卡设置装备摆设备用办事器设置装备摆设步调除第4步与主办事器不合,其余均雷同.4. 在Station Configurator(站组态编辑器)中添加类型为WinCC运用程序(待机)的组件,并修正索引编号.。
wincc冗余问题
![wincc冗余问题](https://img.taocdn.com/s3/m/35cb9fc42af90242a995e5aa.png)
如果需要使用WinCC冗余系统时,请仔细阅读下面的文档,它将解决以下儿个问题:(1)WinCC冗余有什么样的功能?(2)需要购买什么样的授权?(3)应该安装在怎么样的系统上?(4)如何为用户配置操作系统的权限?(5)如何创建WinCC的冗余服务器项口?(6)如何创建WinCC的客户机?(7)如何诊断冗余错误和识别冗余工作状态?除此之外,对于需要引申的内容,该文档还提供了相关内容的链接地址和帮助路径,方便用户更加系统地学习WinCC冗余内容。
1.冗余系统简介WinCC冗余是两台互联的WinCC并行工作,并基于事件进行同步,提高了系统的可黑性。
WinCC冗余具有下列功能:(1)故障自动识别,故障恢复后自动同步变量记录、报警消息、用户归档。
(2)在线同步变量记录、报警消息、用户归档。
(3)服务器故障时,客户端自动切换到可用的服务器。
(4)自动识别伙伴服务器的状态,并实时显现主备服务器的工作状态。
(5)自动生成系统故障信息,及时发现服务器软件故障。
如果项U中有上述需求,WinCC冗余可以方便项LI的实施。
2.搭建WinCC冗余项目的必要条件2. 1软件和授权表012. 2安装系统环境建议使用Windows Server 2003 或者Windows Server 2003 R2 对于单用户的冗余系统,也可使用Windows XP操作系统。
更详细的兼容性列表,可以参考:87957163.组态WinCC冗余系统3・1创建Windows用户在两台服务器上,创建相同的用户名和密码。
步骤:(1) 在Windows开始管理工具计算机管理里面打开本地用户和组图01< 2)创建一个新用户或者使用默认的Administrator(3)对于新建用户,在隶属于中,为用户分配Administrator, SIMATIC HMI SQLServer2005MSSQLUSER$本地计算机名称$WinCC三个用户组。
对于默认Administrator用户,检查是否属于上述三个组。