網(wǎng)卡故障熱備切換邏輯與程序詳解_第1頁
網(wǎng)卡故障熱備切換邏輯與程序詳解_第2頁
網(wǎng)卡故障熱備切換邏輯與程序詳解_第3頁
網(wǎng)卡故障熱備切換邏輯與程序詳解_第4頁
網(wǎng)卡故障熱備切換邏輯與程序詳解_第5頁
已閱讀5頁,還剩4頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)

文檔簡介

1、Unity Hot Standby Ethernet Management網(wǎng)卡故障切換程序邏輯圖 PLC冗余切換指PLC在熱備運行時,當(dāng)1#機架上網(wǎng)絡(luò)出現(xiàn)故障,2#機架上備用的PLC自動接管原主PLC的運行;當(dāng)1#機架上網(wǎng)絡(luò)恢復(fù)正常后,2#機架上的PLC將控制權(quán)切換回1#機架上的PLC;在此期間,生產(chǎn)數(shù)據(jù)保持正常傳輸,因此此測試不影響站場、調(diào)度中心的控制。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查看通訊字第一位與末位狀態(tài)獲取通訊狀態(tài)字含義: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網(wǎng)卡熱備切換原理獲取通訊狀態(tài)程序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獲取通訊狀態(tài)程序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熱備切換細調(diào)程序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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論