wincc实现软冗余手册(2)
language currently selected. Default = "", i.e. connection not yet
established or without error. The following texts are entered in the S7
channel in English, without regard to the selected language.
"No Error"
"Error hhhh"
@ConnectionErrorCount
Meaning:
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 is
interrupted.
In the event of an overflow the count starts again with 0.@ConnectionEstablishMode
Meaning:connect mode
Type:DWORD
Access:write
Default:1 = "automatic"
This tag enables you to specify a connection to be established
automatically. The S7 channel then attempts to reestablish a failed
connection at intervals of approx. 4 seconds. If a value = 0 is entered
in this tag, the connection will not be reestablished automatically at
intervals of 4 seconds, but remains interrupted.
0 = manual connecting mode
-> deactivate automatic connecting
<> 0 = automatic connect mode
-> activate automatic connecting
1-9
wincc实现软冗余手册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 be established@ForceConnectionAdressMeaning:selecting the connection addressType:DWORDAccess:writeDefault:0 = "configured"This tag specifies which 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实现软冗余手册
@AlternateConnectionAdress
Meaning:Alternative connection address
Type:TEXT8 [255]
Access:write
Default:"..." = "configured"
The alternative connection address string can be entered in this tag.
This is the same string as the one which is displayed as connection
parameter in the WinCC Control Center. The string is channel-
specific. On system start-up (runtime), the configured address is
entered here as default for the S7 channel. If an address has not been
Example 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 be
interrupted.
->If the "automatic" connect mode has been set, the connection is
established automatically, using the address just previously written.
1-11
wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册wincc实现软冗余手册
2 Master-Reserve Change-over on the S7
When the Dynamics Wizard has finished setting up the redundant-backup link, you can
extend the script by adding the Master-Reserve Change-over“ option.
To do so, you open the script under Global Script -> Actions -> Global Actions“. If your
selected connection is called CPU_3“ as in the illustrations above, open @CPU_3.pas.Control Center- (Projekt.MCP)
Projekt
Variablenhaushalt
Editoren
Global Script
Aktionen
Globale AktionenCPU_3.pasCPU_4.pasCPU_5.pas
Having opened it, you then insert the sequence printed in bold type and highlighted in
gray. Here too it is assumed that your connection is called CPU_3“. If you have used a
different 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 the
instance 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;
}
}
相关推荐:
- [求职职场]加法运算定律的运用练习题
- [求职职场]大型石油化工工业过程节能新技术
- [求职职场]2015-2020年中国箱纸板行业分析与投资
- [求职职场]NADEX-IWC5A点焊机故障代码
- [求职职场]英语阅读 非常有用
- [求职职场]鲁卫疾控发〔2012〕2号(联合,印发山东
- [求职职场]2014年莆田公务员行测技巧:数字推理的
- [求职职场]基于最近发展区理论的高中数学课堂有效
- [求职职场]与贸易有关的知识产权协议
- [求职职场]【王风范】微演说·职场演说三
- [求职职场]新时代国珍健康大课堂
- [求职职场]群论期末考试复习题
- [求职职场]施工现场消防安全专项施工方案(范本)-
- [求职职场]初中物理光学知识点归纳完美版
- [求职职场]毕业设计总结与体会范文
- [求职职场]江南大学2018年上半年展示设计第1阶段
- [求职职场]景尚乡民兵参战支前保障方案
- [求职职场]【优质】2019年工会职工之家建设工作总
- [求职职场]数据库技术与应用—SQL Server 2008(第
- [求职职场]汽车变速箱构造与工作原理
- 首钢工业区工业遗产资源保护与再利用研
- 第4课 《大学》节选
- 2016程序文件——检验检测结果发布程序
- 2011年高考试题文言文阅读全解释__2011
- 化学是一门基础的自然科学
- 海外做市商制度的借鉴意义
- 外国建筑史复习资料(
- 七年级下思想品德期末综合测试(二)
- 思政课部2013年上学期教学工作总结
- 电大国际公法任务3 0004
- 《圆的认识》教学设计
- 中国轨道交通牵引变流器行业市场发展调
- 中泰证券#定期报告:坚守时代硬科技和
- 浅论企业财务管理与企业经营投资风险的
- 大功率半导体激光器光纤耦合技术调研报
- 中国传统家具的现状与发展探讨
- Broadcom数字电视芯片助海尔扩展高清电
- 新HSK4词汇练习 超全(五)
- 2013届高考数学单元考点复习12
- 雨霖铃精品课件




