改变计算的顺序

继续考虑窗体中原有的3个计算:
B = A (1)
C = B (2)
D = C + 1 (3)
其顺序如下所示:


若要将第3个计算移动到第一的位置,在列‘Order’(见下面截图)下对应的单元格里输入“1”并按下‘Enter’。


先前在第三行的计算现在移动到了第一行。现有的计算每个都向下移动一行:即第一行的计算移动到第二行,第二行的计算移动到第三行。

现在计算将按照下面的顺序:
D = C + 1 (1)
B = A (2)
C = B (3)
注意:计算出现的顺序对得到的结果息息相关。因此,改变计算的顺序可能会影响计算的结果。
2)在适当范围内嵌入每个计算并检查值
对每个Tag.Type,可以被写入的所有属性中(例如预置内核/内核后计算LHS可用的属性),其可接受的值都有特定的范围。例如,对任一Tag.POV脉冲因子属性值都必须是0~1的实数值。我们强烈建议添加额外的计算验证属性的计算值是否是可接受的。在事件中,若计算值是不能接受的,我们可以推荐指定的行动过程。*
内置SMOCPro内核检查
在SMOCPro内核中提供了属性值校验范围。例如,如果一个计算错误重新定义了MV下限比现有的MV上限还要大,SMOCPro内核将赋予高低限品质为BAD。随后,SMOCPro内核里的质量处理模块将该特定的MV设定为前馈模式。尽管内置内核检查为事件中您获得的错误和/或用户定义计算中不能接受的结果提供了一定的鲁棒性自由度,我们还是建议您为每次计算嵌入合适的有效性检查。内核中的内置属性验证根本主题是当属性值在可接受范围之外时,设置相关的属性质量标志位BAD。内核中的质量处理模块随后指示一个BAD属性质量的结果。内置SMOCPro内核属性验证的细节可参考内核容许值检查和质量管理章节。


原文:
Changing the order of calculations
Again, consider the original 3 calculations of the form
B = A (1)
C = B (2)
D = C + 1 (3)
Again, consider the original 3 calculations of the form
and ordered as shown below
To move the third calculation (3) to the first position, enter ‘1’ in the corresponding cell under the column ‘Order’ (see screenshot below) and press ‘Enter’.
The calculation that was previously in row 3 is now moved to the first row. The existing calculations are each moved a row down, i.e., the calculation that was in the first row moved to the second row and the calculation that was in the second row moved to the third.
The calculations are now in the following order
D = C + 1 (1)
B = A (2)
C = B (3)
NOTE: The order in which calculations appear has a strong bearing on the obtained results. Therefore, altering the order of calculations will likely impact the outcome of calculations.
**2) Embed each calculation within appropriate range and value checks **
For each Tag.Type, all attributes that may be written to, i.e., attributes that are available on the LHS of pre-kernel and/or the post-kernel calculations, have a specific range of acceptable values. For example, the impulse factor attribute for any Tag.POV must be a real value between 0 and 1. We strongly recommend that additional calculations be added to verify if the calculated values for the attributes are acceptable. In the event, the calculated values are not acceptable, we recommend that a course of action be specified.
**Built-in SMOCPro Kernel Checks **
A range of attribute value validations is provided inside the SMOCPro kernel. For example, if a calculation incorrectly redefines an MV low limit to be greater than the existing MV high limit, the SMOCPro kernel will assign a BAD quality for the low limit-high limit pair. Subsequently, the quality-handling module in the SMOCPro kernel will set that specific MV in feed forward mode. While the built-in kernel checks provide some degree of robustness in the event you obtain erroneous and/or unacceptable results from user defined calculations, we encourage you to embed each calculation within appropriate validity checks. The underlying theme of built-in attribute validation within the kernel is to set the associated quality flag for the attribute to BAD when the value for the attribute is outside acceptable limits. The quality-handling module in the kernel subsequently dictates the consequences of a BAD attribute quality. Details on built-in SMOCPro Kernel attribute validation are available in the section on Kernel Allowable-Value Checks and Quality Management.


2016.4.30

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 文/芷芷蔷薇 夏夜的烛光, 晃过每一张脸。 印在残墙上的影子, 被微风吹起波浪。 也快忘了, 春的泪水送来夏的微笑...
    芷木槿阅读 150评论 0 0
  • 成功的经验千千万,个体、环境等差异导致我们不能完全照搬,但是我们可以从众多的经验中总结归纳出成功所必须的一些条件,...
    环盈阅读 183评论 2 3
  • 夏天, 炎热无比, 我们, 却冷若冰霜。 若是冬, 遇见了夏, 会发生什么样的化学反应? 风, 带走了一切, 唯独...
    Vicky蓝酱阅读 456评论 0 2