wincc实现软冗余手册

合集下载

wincc冗余系统与客户机的配置

wincc冗余系统与客户机的配置

冗余系统配置冗余系统配置步骤如下:1、用移动存储设备将一个组态好的项目复制服务器;2、打开刚复制过来的项目,找到里面的*.mcp文件,并双击将之打开;3、双击“冗余”;4、在打开的画面中填写、勾选相关的内容之后,单击“确定”;5、左击“服务器数据”;6、将右面编辑窗口中的前项目删除;7、右击“服务器数据”,在弹出的菜单里选择“创建”,并单击“确定”关闭对话框;8、右击“服务器数据”,在弹出的对话框中选择“隐含更新”选项,并将里面的复选框都勾选,单击“确定”关闭对话框;9、双击项目浏览窗口的“用户管理器”;10、右击“Administrator-Group”,在弹出得菜单项中选择“添加用户”;11、输入“用户名****”与“密码****”,单击“确定”关闭对话框;12、选中“远程激活”与“远程组态”;13、右击项目浏览器中的“计算机”,出现“添加新计算机”选项;14、添加计算机名“PC01”、“PC02”、“PC03”“PC04”、“PC05”、“PC08”、“PC10”15、右击“S1”,在弹出的菜单里选择“属性”;16、选择“图形运行系统”,在出现的“属性”栏中勾选“全屏”,在“起始画面”项点击“浏览”,选择“登陆界面.PDL”,单击“确定”关闭对话框;17、打开项目复制器Project Duplicator;18、将项目复制到伙伴服务器的共享文件夹的Project目录下;19、单击工具栏上的“激活运行”按钮,运行项目;20、打开备份服务器的项目,按照配置服务器的步骤配置备份服务器,配置完成以后运行项目就可以了;21、接下来就需要配置客户机了,每台客户机都需要进行配置。

注:一定要在主服务器完全运行起来以后再配置备份服务器上的项目客户机的配置客户机的配置步骤:1、退出原来的项目;2、运行WinCC Explorer应用程序;3、新建“客户端项目”→输入“项目名称”(命名方式为PC01-1101) →创建;4、单击工具栏上的“打开”按钮→在弹出的对话框中选择“网络邻居”→找到“Project”文件夹→双击要运行的项目文件夹→双击应用程序;剩下步骤与服务器配置类似,不再赘述。

构建一个WinCC冗余项目

构建一个WinCC冗余项目

如果需要使用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 软件和授权表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用户,检查是否属于上述三个组。

wincc实现软冗余手册

wincc实现软冗余手册

wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册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 isperformedautomatically in the event of a malfunction. However, a manual switchover isalso possible by specifying a tag (@ForceConnectionState).NoteEstablishing a redundant connection requires two PLCs.1-1wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册1-2Setting up software redundancy:In order to use software redundancy under WinCC, the following settings arerequired in the Control Center:Step 1The computer properties must be set to the following values:Step2Within the Alarm Logging system, the “sh ort-term archive" must be activated: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" objectand select the "Add/Remove" menu item. Within the "Assign StorageParameters" dialog box, activate the "Short-Term Archive Active" checkbox.wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册Step 3Within the Alarm Logging, the system messages must be retrieved; selectthe "Options" and "WinCC System Messages" menu items for thispurpose. In the "WinCC system messages" dialog box, activate the "CreateNew System Messages Only" option and press the "Create" button. Thisprocedure retrieves the system messages associated with softwareredundancy.1-3wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册1-4Step 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 theWindows Explorer, start the"C:\Siemens\WinCC\bin\DynWizEdit.exe"program. Select the "German" language in the toolbar. Retrievethe"C:\Siemens\WinCC\wscripts\wscripts.deu\SW_Redundanz.wnf" script byselecting the "Dynamic Wizard" and "Retrieve Wizard Script" menuitems. The compilation progress is shown in the output window. After thecompilation has been completed successfully, the new entry "Establish Redundant Connection" appears in the "Dynamic Wizard"window.Step 5Integrate the "__ S7 __L SUITE" communications driverwithin the tag management.Step 6Within the required bus type (e.g. MPI), create a logical connection in the"__ S7 __L 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.wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册Step 8Press the "More" button in the welcome screen.Step 9Select the main connection in the "Set Options" dialog box. Thenpress the"More" button.1-5wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册Step 101-6Edit the settings for the back-up connection in the "Set Options" dialogbox. Then press the "More" button. The "Automatic Switchover" checkbox must be active (default setting).The settings for the back-up connection (S7 network address) can be foundin the "Connection" tab. Access this tab via the connection propertiesdialog box for the connection.wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册Step 11The settings you specified are displayed in the final "Finished" dialog box.By pressing the "Finish" button, connection-specific internal tags are created in a tag group. This tag group is stored within the tag managementunder "__ S7 __L SUITE" and the associated channelunit.NoteBy pressing the "Back"u button, you can go back one step and make anynecessary changes.1-7wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册1.1 Connection-specific Internal Tags1-8Connection 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 ispossible tohave read and write access to connection-specific internal tags independentlyof the connection status.The following system tags are available for __ S7 __L SUITEsoftwareredundancy:@ConnectionStateMeaning:connectionstatusType:DWORDAccess:readDefault:0 = "faulty"The current connection status can be determined by means of the'ConnectionState' tag.0 = connection faulty1 = connection ready foroperation@ConnectionErrorMeaning:errorcauseType:DWORDAccess:readDefault:0 = "no error"The tag contains an error cause describing the reason why theconnection was interrupted. Default = 0, i.e. connection not yetloaded with 0 (no error) again. The error code is interpreted in ahere.0 = no error 0 = S7 DOS error code wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册@ConnectionErrorStringMeaning:Type:Access:Default:error cause as stringTEXT8 read"" = "no error"language currently selected. Default = "", i.e. connection not yetestablished or without error. The following texts are entered in the S7 channel in English, without regard to the selected language."No Error""Error hhhh"@ConnectionErrorCountMeaning:Type:Access:Default:= No error= hhhh error occurred(hhhh = S7 DOS hexadecimal error code)communication error counterDWORDread0 = "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 with0.@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 entered in this tag, the connection will not be reestablished automatically atintervals of 4 seconds, but remains interrupted.0 = manual connecting mode- deactivate automatic connecting0 = automatic connect mode- activate automatic connecting1-9wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册1-10@ForceConnectionStateMeaning:preferred connection statusType:DOWRDAccess:writeDefault:1 = "established"This tag can be used to notify the channel of the preferred connectionstatus. 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 interruptsthe 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 beestablished@ForceConnectionAdressMeaning:selecting the connection addressType:DWORDAccess:writeDefault:0 = "configured"This tag specifieswhich of the connection addresses is to be used forestablishing 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.wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册@AlternateConnectionAdressMeaning:Alternative connection addressType:TEXT8Access: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 beenExample of an address specified for an S7 PLC with station address 3 via 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 beinterrupted.-If the "automatic" connect mode has been set, the connection isestablished automatically, using the address just previously written.1-11wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册2 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 AktionenCPU_3.pasCPU_4.pasCPU_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 call ed 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-12wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc 实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册Note: you can add the Standby bit“ to the structure for the redundant software backupscreen block (see section 7.2.2 in the user documentation for the redundant-backupsoftware blocks) as follows:NameData typeOffsetBit。

构建一个WinCC冗余项目

构建一个WinCC冗余项目

如何构建一个WinCC冗余项目如果需要使用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 软件和授权表 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三个用户组。

S7-300软冗余调试总结--WINCC组态(最新整理)

S7-300软冗余调试总结--WINCC组态(最新整理)
下边说如何实践冗余现实。首先在画面编辑器打开一个画面,在右边动态向导栏 (dynamic wizard)里选择“建立冗余连接”(creat redundant connection),出来对话框,点 “next”,出现选择连接的窗口,点一下上边所建的连接,“next”,出现下面窗口
这 里 Main Connection 是 主 连 接 , 也 就 是 主 PLC 站 的 连 接 , 下 边 的 Reserve Connection 需要自己根据具体情况修改,默认的是和主站一样的。。。要改为自己备用 PLC 站的地址,比如 IP192.168.0.2,,0,2,02。继续下一步“next”,然后结束。冗余连接就生 成了,按正常说,现在就可以实现下边 PLC 故障切换的时候,自动将上位机 WINCC 中变 量转到备用 PLC 连接上。但是实际上现在不能完全实现自动切换,和手动切换。尤其是下 边主备站都没问题的时候,手动切换过来会发现 WINCC 跟 PLC 失去联系。。。传上来的数 据多是错的。要实现完整的切换,需要在全集脚本里加上几句话,来强制连接切换,这样 才能完全实现容易的切换。
当我们上边冗余连接建立以后,在变量组里会自动生成一个@sw 变量组(其中 SW 是 前边建立的连接的名称),这个变量组里的变量在后边要用到。打开全局脚本编辑器 Global Scrip C 在左边项目浏览栏里边找:ActionsActions:XXX,其中 XXX 为你的计算机名。 在这个SW 就是刚刚在 TCP/IP 协议项下建立的那 个连接的名字。打开这个文件,将编辑窗口拉到最下边,将紫色部分代码复制添加到上下 文相对应的位置。
参考文献:S7300S7400SIMITIC S7 的软冗余 wincc 实现软冗余手册(英文)
{ SetTagDWord( "@sw@ForceConnectionState", 0 ); } } return 1; 这其中的几个变量"@sw@ConnectionState", "@sw@ForceConnectionState"这两个变量 在前边说到的@SW 变量组里边有。其中的 SW 是连接的名字,需要对应上自己前边建的连 接的名字。"SWR_wincc.Standby"这个变量就是 FB101 冗余程序块的背景数据块中的变量 DB***.DBX9.1, ***是在 PLC 冗余程序中调用冗余程序时自己设定的背景数据块号,我用 的是 DB101,所以我这里变量就连接 DB101.DBX9.1 这个数据位。 好啦,这样就可以实现手动自动切换啦。。。当然手动切换可以自己按照 DB101 的定义去手 动生成变量做,也可在网上搜索《S7300S7400SIMITIC S7 的软冗余》这个文档,里边有 介绍一个系统自带的手动切换冗余的模板,很方便。。。

西门子 WinCC S7-400H 冗余连接 操作指南

西门子 WinCC S7-400H 冗余连接 操作指南

/CN/view/zh/108987749C o p y r i g h t S i e m e n s A G C o p y r i g h t y e a r A l l r i g h t s r e s e r v e d问题描述:从V8.2开始,SIMATIC NET 支持SOFTNET-IE S7 REDCONNECT VM ,即普通网卡都可以在虚拟机环境中使用并建立WinCC 和S7-400H 的容错连接。

注意:从SIMATIC NET V8.2开始,也可以在实际的计算机环境中使用普通网卡直接建立WinCC 和S7-400H 的容错连接C o p y r i g h t S i e m e n s A G C o p y r i g h t y e a r A l l r i g h t s r e s e r v e d回答:硬件和软件环境可以通过VMware 官方网站查询支持ESXi 硬件直通的服务器列表,本例中使用的HP Compaq 8200 Elite 。

服务器硬件配置如表1所示:指标 HP Compaq 8200 Elite CPU Intel Core i5 2400 3.1GHz (4Core)内存 26GB DDR3 1600MHz 硬盘 500G普通网卡Intel 82579LM Gigabit表1服务器、管理机和客户机的软件配置如表2所示:计算机 软件配置服务器VMware ESXi Server 5.5 Updata1 管理机 (工程师站)Windows 7 Ultimate SP1 VMware vSphere Client 5.5 STEP 7 Professional 2010 SR3WinCC V7.2 Update3 SIMATIC Net V12表2服务器上运行的虚拟机的软件配置如表3所示:软件操作系统 Windows Server 2008 R2 Standard SP1 SIMATICWinCC V7.2 Update3 SIMATIC Net V12表3操作步骤ESXi 服务器和管理机的安装和配置,请参考相关文档,在这里不再赘述。

构建一个WinCC冗余项目

构建一个WinCC冗余项目

如果需要使用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 软件和授权表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用户,检查是否属于上述三个组。

wincc冗余问题

wincc冗余问题

如果需要使用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 软件和授权表 012.2 安装系统环境建议使用Windows Server 2003或者Windows Server 2003 R2对于单用户的冗余系统,也可使用Windows XP操作系统。

更详细的兼容性列表,可以参考:3.组态WinCC冗余系统3.1 创建Windows用户在两台服务器上,创建相同的用户名和密码。

步骤:(1)在Windows开始管理工具计算机管理里面打开本地用户和组图 01(2)创建一个新用户或者使用默认的Administrator(3)对于新建用户,在隶属于中,为用户分配Administrator,SIMATIC HMI和SQLServer2005MSSQLUSER$本地计算机名称$WinCC三个用户组。

对于默认Administrator用户,检查是否属于上述三个组。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

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。

相关文档
最新文档