Transition功能塊本質(zhì)上就是一個(gè)“wait” statement;一個(gè)Transition包含最多10個(gè)用于邏輯門(mén)的條件;這些條件使用3個(gè)主邏輯門(mén)和1個(gè)次邏輯門(mén)連接在一起進(jìn)行邏輯運算;在SCM繼續執行之前,Transition statement在邏輯上必須為T(mén)RUE(=1)。
(2) 每個(gè)新的Handler在添加時(shí)總帶有一個(gè)invoketransition功能塊,缺省的invoke transition是一個(gè)“空”的 transition,沒(méi)有任何條件且所有邏輯門(mén)都為NONE;若SCM要執行這個(gè)Handler程序,需要操作人員或另一個(gè)SCM發(fā)布一個(gè)START命令,每次從程序的開(kāi)始invoke transition處執行。
(3) 如果Handler需要連續運行,invoketransition必須包含總是為T(mén)RUE的statement且程序最后一個(gè)STEP必須反饋連接到這個(gè)invoke transition;為了disable SCM自動(dòng)執行,可設置Force Permit 參數為 On 和 Force Request參數為 Off,該設置讓總是為T(mén)RUE的條件為FALSE。
(4) Transition 條件 Bypass/Force請求,在SCM的invoketransitions總是為T(mén)RUE且SCM設計為連續執行回路,為了停止SCM的執行,當強制允許為ON時(shí),可以將一個(gè)條件強制到ON或OFF。
4.2 Step 功能塊
(1) 一個(gè)STEP最多包含16個(gè)可執行的輸出表達式。輸出表達式控制跟蹤通過(guò)CM或SCM參數的過(guò)程行為,記錄SCM的事件、提供Comments, Warnings, Notes, and/or Output Instructions界面與操作人員交互。
每STEP有兩個(gè)與時(shí)間相關(guān)聯(lián)的參數,MINTIME 和 MAXTIME。最小等待時(shí)間(MINTIME)指定了當前STEP的所有輸出完成后,延時(shí)多長(cháng)時(shí)間執行隨后的transition 功能塊。最大活動(dòng)時(shí)間(MAXTIME)指定了step timeout報警觸發(fā)前當前STEP能保持多久活動(dòng)的時(shí)間。MAXTIME不影響當前STEP的的執行,MINTIME和MAXTIME在一個(gè)循環(huán)內測量,也就是說(shuō)如果PERIOD=1000ms,則它們的值只能響應到秒。
(2)每STEP有一個(gè)stopcondition option (SC.OPT) 和一個(gè) interrupt conditionoption(IC.OPT)。當停止條件選項設置為ON且組態(tài)的STOP條件為T(mén)RUE,則SCM自動(dòng)地開(kāi)始執行StopHandler。當中斷條件選項設置為ON且組態(tài)的interrupt條件為T(mén)RUE,則SCM自動(dòng)地開(kāi)始執行interruptHandler。
(3) STEP的輸出應注意在Instruction 和 Expression 都存在的情況下,優(yōu)先級別最高為Expression,Instruction則忽略不執行,只能作為附加的描述信息。當改變一個(gè)CM或SCM參數時(shí),STEP的輸出表達式只支持一個(gè)委派作業(yè)。
(4)Step Output Instruction 具有HTML的格式,有兩種類(lèi)型:Informational and Confirmable。其中的信息Informational Instruction不需要操作人員確認,而ConfirmableInstruction則是需要操作人員確認。
(5)SCM STEP輸出的執行帶有或沒(méi)有STEP輸出延時(shí)組態(tài)。在輸出表達式之間含有未確認的Instructions存在時(shí),所有輸出表達式可以在當前STEP變?yōu)榧せ顣r(shí)同時(shí)執行。
5 SCM Synchronization (SYNC) 功能塊
PLC product line. At the time of Ruben's disclosure, Schneider had proposed solutions to the two reported vulnerabilities, but patches for other vulnerabilities were still under research and development. In order to help users ensure the safety of PLC while other patches are still in the development and testing stage, Schneider provides a user guide entitled "using doveno SA products to alleviate PLC vulnerability".
This detailed guide explains how to filter harmful traffic using Hirschmann Tofino industrial firewall before it reaches the PLC. As shown in Figure 4, these firewalls are placed in front of one or more PLCs. These firewalls were configured according to the rules formulated to solve each vulnerability. For example, the FTP buffer overflow vulnerability (ics-alert-12-020-03) could have been resolved simply by blocking all FTP traffic. Unfortunately, because FTP traffic is critical to some processes, this approach is not feasible