网卡故障热备切换逻辑与程序详解_第1页
网卡故障热备切换逻辑与程序详解_第2页
网卡故障热备切换逻辑与程序详解_第3页
网卡故障热备切换逻辑与程序详解_第4页
网卡故障热备切换逻辑与程序详解_第5页
已阅读5页,还剩4页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

1、Unity Hot Standby Ethernet Management网卡故障切换程序逻辑图 PLC冗余切换指PLC在热备运行时,当1#机架上网络出现故障,2#机架上备用的PLC自动接管原主PLC的运行;当1#机架上网络恢复正常后,2#机架上的PLC将控制权切换回1#机架上的PLC;在此期间,生产数据保持正常传输,因此此测试不影响站场、调度中心的控制。Embedded MonitoringMonitoring NOE Board Statistics Health can be monitored locally or remotely Local monitoring embeds lo

2、gic with a watchdog Monitor NOE health with: MBP_MSTR Get Local Statistics (Function 3) Statistics Word 3 Board Status Bytes are swapped, high byte for low byte Link, documented as bit 7, is actually MSB bit position 15 1 indicates link present Run indicates Exec is working Run is documented as bit

3、8, but is in bit position 0 LSB Board status can be used in conjunction with other logic or methods to determine if module is healthy查看通讯字第一位与末位状态获取通讯状态字含义:1 0 0 0 0 0 0 0 1 0 1 1 0 0 1 1Module Type4 bits1011=771011100=77111Reserved1 bitDuplex0=HD / 1=FDConfigured?1 bitRUN0=Not Run1=RunReservedLink

4、Speed10=0 /100=1TP=0 /Fiber=1APPL LED(Crash Log)0=Off/1=OnLink0=NOK / 1=OKBit 8 in ConceptBits 12-15 in ConceptBits 0-3 in Concept网卡热备切换原理获取通讯状态程序This section moves the appropriate values into the MSTR_Control word for the MBP_MSTR function block to perform a read local statistics. The NOE backplane

5、 slot number is specified by the “Slot” input pin of the DFB. IN3OUTMSTR_Control1.1MOVE1IN37OUTMSTR_Control3.2MOVE3IN0OUTMSTR_Control4.3MOVE5INOUTMSTR_Control5.4WORD_TO_INT8IN0OUTMSTR_Control6.5WORD_TO_INT2IN0OUTMSTR_Control7.6WORD_TO_INT4IN0OUTMSTR_Control8.7WORD_TO_INT6IN0OUTMSTR_Control9.8WORD_TO

6、_INT9LOW0HIGHSlotOUT.9BYTE_AS_WORD7获取通讯状态程序This section uses the MBP_MSTR function block with function code 3 to get the 37 local statistics words for the NOE. It then uses word (3) to monitor the Link LED and Run state. The appropriate bits are moved to the LinkFailure and RunFailure output pins of

7、 the DFB.The MPB_MSTR function block is executed at a rate determined by the Monitoring_Rate input pin. This input specificies the number of times the 100ms pulse input will be counted. Thus the reprate the MBP_MSTR block is executed equals 100ms times Monitoring_Rate. For example, a Monitoring_Rate

8、 input value of 10 will result in a reprate of 1s. The “Error” output of MBP_MSTR function block is also monitored. If this output is ON for a set number of retries (execution of the MBP_MSTR function block) the NOE_Failure output is turned on, to indicate the NOE is not healthy. The number of retri

9、es is specified by the “Retries” input pin of the DFB. ENABLEEnableABORTSUCCESSDoneCONTROLMSTR_ControlACTIVEActiveERRORErrorDATABUFMSTR_DataFBI_1MBP_MSTR4IN1PulseIN2activeOUT.3AND1ENIN1RateETIN21ENOOUTRateET.6ADD_INT2IN1RateETIN2MonitoringRateOUTEnable.5EQ_INT3ENIN0ENOOUTRateET.8MOVE6IN1doneIN2error

10、OUT.7OR5ENIN1Error_CountIN21ENOOUTError_Count.10ADD_INT9IN1Error_CountIN2RetriesOUTPrimNOE_Failure.9EQ_INT7IN1ErrorIN2PrimNOE_FailureOUT.14AND8ENDoneIN0ENOOUTError_Count.13MOVE10INMSTR_Data3.15OUTPrimNOE_LinkFailure.1MOVE11热备切换细调程序If an error occurs, the Primary PLC is stopped via the HSBY command s

11、ystem word; forcing the Standby PLC to become the Primary PLC. Using the “SwitchDelayTime” input you can program a delay interval between failure detection and the actual switchover. This time interval will prevent a switchover due to an intermitten failure condition. After a switchover status/error

12、s are monitored but no action will be taken for a defined time. This eliminates debounce immediately after a switchover. IN1Standby_NOE_FailureIN2Primary_NOE_FailureOUT.1AND1ENTestModeSWP_MB3PCB_RUNBnSWP_MB1INV_KEYPCA_RUNSWP_MB2ENOHSBYFBI_2HSBY_WR11IN3IN4IN1IN2IN5OUT.7AND8IN1IN2OUT.8AND10THIS_ISBREM

13、T_OFFLOGIC_OKREMT_SBYTHIS_OFFTHIS_SBYREMT_PRYTHIS_PRYTHIS_ISAHSBYFBI_1HSBY_ST6IN1Standby_Remote_FailureIN2Primary_Remote_FailureOUT.4AND4IN1IN2OUTBn.9AND12INPTStatusMaskTimeQETFBI_6TP7INPTSwitchDelayTimeQETFBI_3TON9IN1Standby_NOE_RunFailureIN2Primary_NOE_RunFailureOUT.3AND3IN3IN4IN1IN2OUT.6OR5IN1Sta

14、ndby_NOE_LinkFailureIN2Primary_NOE_LinkFailureOUT.2AND2IN6Primary_NOE_RunFailureIN3Standby_NOE_LinkFailureIN4Primary_NOE_LinkFailureIN1Standby_NOE_FailureIN2Primary_NOE_FailureIN5Standby_NOE_RunFailureOUT.10AND13IN3IN4IN1IN2IN5OUT.11AND14ENIN0ENOOUTBn.12MOVE16ENIN1ENOOUTBn.13MOVE18INPTt#30SQETFBI_8T

15、ON15INPTt#2SQETFBI_9TON17热备切换主程序EN%SW61.0ENOSby_NOE_RunFailureSby_Remote_FailureSby_NOE_FailureSby_NOE_LinkFailureSby_SCADA_FailureFBI_42EthernetRevRx3EN%SW61.0Sby_NOE_RunFailureSby_NOE_Run_FailureSby_Remote_FailureSby_NOE_FailureSby_NOE_FailureSby_NOE_LinkFailureSby_NOE_Link_FailureSby_SCADA_Failur

16、eENOFBI_43EthernetRevTx5EN%SW61.0Standby_Remote_FailurePrimary_SCADA_FailureStandby_NOE_LinkFailureStatusMaskTimet#60sTestMode0Primary_Remote_FailurePrimary_NOE_LinkFailurePrim_NOE_Link_FailureStandby_SCADA_FailureStandby_NOE_RunFailureStandby_NOE_FailurePrimary_NOE_RunFailurePrim_NOE_Run_FailureSwi

17、tchDelayTimet#10sPrimary_NOE_FailurePrim_NOE_FailureENOFBI_44HSBY_Switch_Descision4EN%SW61.0MSTR_ControlPrim_NOE_MSTR_Co.ActivePrim_NOE_ActiveRateETPrim_NOE_RateETErrorPrim_NOE_ErrorMonitoringRate50MSTR_DataPrim_NOE_MSTR_DataPulsePulseDonePrimNOE_DoneRetries2Error_CountPrim_NOE_ErrorCountSlot5ENOMST

18、R_ControlPrim_NOE_MSTR_ControlActivePrim_NOE_ActiveRateETPrim_NOE_RateETErrorPrim_NOE_ErrorMSTR_DataPrim_NOE_MSTR_DataError_CountPrim_NOE_ErrorCountDonePrimNOE_DonePrimNOE_LinkFailurePrim_NOE_Link_FailurePrimNOE_RunFailurePrim_NOE_Run_FailurePrimNOE_FailurePrim_NOE_FailureFBI_45Prim_NOE_Monitor1EN%SW61.0MSTR_ControlSby_NOE_MSTR_ControlActiveSby_NOE_ActiveRateETSby_NOE_RateETErrorSby_NOE_ErrorMonitoringRate50MSTR_DataSby_NOE_MSTR_DataPulsePulseDoneSby_NOE_DoneRetries2Error_CountSby_NOE_ErrorCountS

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论