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

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 157,198评论 4 359
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 66,663评论 1 290
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 106,985评论 0 237
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 43,673评论 0 202
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 51,994评论 3 285
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 40,399评论 1 211
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 31,717评论 2 310
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 30,407评论 0 194
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 34,112评论 1 239
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 30,371评论 2 241
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 31,891评论 1 256
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 28,255评论 2 250
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 32,881评论 3 233
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 26,010评论 0 8
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 26,764评论 0 192
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 35,412评论 2 269
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 35,299评论 2 260

推荐阅读更多精彩内容

  • http://blog.csdn.net/cuzzZYues/article/details/74654098 希...
    月神_阅读 238评论 0 0
  • 晚上十点半,你打来电话说刚从学校开完家长会回来。会上,受到老师多次的表扬和上台领奖多次。开心和兴奋溢于言表,当然还...
    陶筱桃阅读 149评论 0 1