4) Use provided recommendations to handle kernel fields/attributes that expect logical/Boolean inputs appropriately

在上述截图中,如果POVs 41PD1002或41PD1003有一个断开连接,那么外部输出位号Cond_1将返回1。如果41PD1002和41PD1003分别在各自的设定限制外,那么外部输出位号Cond_2 和Cond_3将返回1。最后,如果Cond_1,Cond_2或Cond_3返回true,41PD1004删除标签将设定为true。
使用外部输出位号的一个好处是,计算结果既可以配置在DCS上,在SMOC DB上也是可用的。对后一种情况,使用外部位号允许计算的实时结果在EXASMOC HMI上显示。在上面考虑的例子中,Cond_1,Cond_2和Cond_3的结果既可以配置到DCS位号,也可以配置到SMOC DB位号。如果外部位号配置为值,Cond_1,Cond_2和Cond_3的实时值在EXASMOC HMI都是可用的。作为进一步的步骤,你可以选择将计算4的RHS值写到一个外部输出位号,然后可以分配到CV 41PD1004的删除位号中。这样的安排可以允许你使用EXASMOC HMI(如果外部输出位号被定义为值)或DCS(如果外部位号被定义为DCS位号)在线访问实时计算值。
在被计算修改之前,外部输出位号也可以用作存储属性值的占位符。这使您可以在事件所需条件没有得到满足时还原之前的值。
4)使用提供的建议来处理内核领域/属性以期望逻辑/布尔有适当的输入
对于期望逻辑输入的领域和/或属性,例如TRUE或FALSE,你必须使用“1”指定TRUE值,“0”指定FALSE值。例如,要将CV 35T01删除位号设定为TRUE或FALSE,分别为:
[35T01.CV.Remove] = 1 (True)
[35T01.CV.Remove] = 0 (False)
若要指定许可属性的质量,你必须使用“1”来表示质量=GOOD,“0”表示质量=BAD。例如,考虑一个外部输出位号DOF.EXTOUT.Value_Qual,它表示了与外部输出位号值相关联的质量。若要分配使用质量:
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

你可能感兴趣的:(4) Use provided recommendations to handle kernel fields/attributes that expect logical/Boolean inputs appropriately)