在上述截圖中,如果POVs 41PD1002或41PD1003有一個(gè)斷開連接,那么外部輸出位號(hào)Cond_1將返回1。如果41PD1002和41PD1003分別在各自的設(shè)定限制外,那么外部輸出位號(hào)Cond_2 和Cond_3將返回1。最后,如果Cond_1,Cond_2或Cond_3返回true,41PD1004刪除標(biāo)簽將設(shè)定為true。
使用外部輸出位號(hào)的一個(gè)好處是,計(jì)算結(jié)果既可以配置在DCS上,在SMOC DB上也是可用的。對(duì)后一種情況,使用外部位號(hào)允許計(jì)算的實(shí)時(shí)結(jié)果在EXASMOC HMI上顯示。在上面考慮的例子中,Cond_1,Cond_2和Cond_3的結(jié)果既可以配置到DCS位號(hào),也可以配置到SMOC DB位號(hào)。如果外部位號(hào)配置為值,Cond_1,Cond_2和Cond_3的實(shí)時(shí)值在EXASMOC HMI都是可用的。作為進(jìn)一步的步驟,你可以選擇將計(jì)算4的RHS值寫到一個(gè)外部輸出位號(hào),然后可以分配到CV 41PD1004的刪除位號(hào)中。這樣的安排可以允許你使用EXASMOC HMI(如果外部輸出位號(hào)被定義為值)或DCS(如果外部位號(hào)被定義為DCS位號(hào))在線訪問實(shí)時(shí)計(jì)算值。
在被計(jì)算修改之前,外部輸出位號(hào)也可以用作存儲(chǔ)屬性值的占位符。這使您可以在事件所需條件沒有得到滿足時(shí)還原之前的值。
4)使用提供的建議來處理內(nèi)核領(lǐng)域/屬性以期望邏輯/布爾有適當(dāng)?shù)妮斎?/strong>
對(duì)于期望邏輯輸入的領(lǐng)域和/或?qū)傩?,例如TRUE或FALSE,你必須使用“1”指定TRUE值,“0”指定FALSE值。例如,要將CV 35T01刪除位號(hào)設(shè)定為TRUE或FALSE,分別為:
[35T01.CV.Remove] = 1 (True)
[35T01.CV.Remove] = 0 (False)
若要指定許可屬性的質(zhì)量,你必須使用“1”來表示質(zhì)量=GOOD,“0”表示質(zhì)量=BAD。例如,考慮一個(gè)外部輸出位號(hào)DOF.EXTOUT.Value_Qual,它表示了與外部輸出位號(hào)值相關(guān)聯(lián)的質(zhì)量。若要分配使用質(zhì)量:
OF.EXTOUT.Value_Qual] = 1 (Good)
OF.EXTOUT.Value_Qual] = 0 (Bad)
原文:
In the screenshot above, the external output tag Cond_1 returns 1 if either POVs 41PD1002 or 41PD1003 are disconnected. The external output tags Cond_2 and Cond_3 return 1 if 41PD1002 and 41PD1003 are outside desired limits respectively. Finally, the remove flag for 41PD1004 is set to true if any of Cond_1, Cond_2 or Cond_3 return true.
An added advantage of using external output tags is that the results for the calculations can be configured to be available either on the DCS or the SMOC DB. For the latter case, using external tags allows real time results for the calculations to be displayed on the EXASMOC HMI. In the example considered above, the results for Cond_1, Cond_2 and Cond_3 can be configured to be available either as DCS tags or SMOC DB tags. If the external tags are configured as values, the real time values for Cond_1, Cond_2 and Cond_3 are available on the EXASMOC HMI. As a further step, you may choose to set the value of the RHS of calculation 4 to an external output tag, which may then be assigned to the remove flag for CV 41PD1004. Such an arrangement allows you to view the real time value of the calculation online using the EXASMOC HMI (if the external output tag is defined to be a value) or the DCS (if the external tag is defined to be a DCS tag).
External output tags may also be used as placeholders to store values of attributes before they are modified by calculations. This allows you to revert to the previous values for the various fields in the event required conditions are not satisfied.
4)Use provided recommendations to handle kernel fields/attributes that expect logical/Boolean inputs appropriately
For fields and/or attributes that expect a logical input, i.e., TRUE or FALSE, you must use a ‘1’ to assign a TRUE value and a ‘0’ to assign FALSE value. For example, to set the remove flag for CV 35T01 to TRUE or FALSE use, respectively:
[35T01.CV.Remove] = 1 (True)
[35T01.CV.Remove] = 0 (False)
To assign qualities for permitted attributes, you must use a ‘1’ to indicate a quality=GOOD and a ‘0’ to indicate a quality=’BAD’. As an example, consider an external output tag DOF.EXTOUT.Value_Qual, which denotes the quality associated with the value for the external output tag. To assign the quality use:
OF.EXTOUT.Value_Qual] = 1 (Good)
OF.EXTOUT.Value_Qual] = 0 (Bad)
2016.5.3