教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 求职职场 >

wincc实现软冗余手册(2)

来源:网络收集 时间:2026-09-08
导读: 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. N

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;

}

}

2-12< …… 此处隐藏:3646字,全部文档内容请下载后查看。喜欢就下载吧 ……

wincc实现软冗余手册(2).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/121601.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)