Lab sampling support in a SmartStep application 智能向导应用支持实验采样

在智能向导应用中,可通过测试组的Lab-AutoLab-Manual模式支持实验采样。
在这些模式中,测试仪设法将过程维持在稳态。测试仪的目的是在保持因变量处于测试限的前提下,最小化MV的动作(即最小控制器动作)。
该模式与REPOSITION模式类似,不同之处在于其因变量限制保持不变。操作变量和因变量的复合状态指示将被设成Lab以指示这种特殊模式的操作。
测试组可以通过使用STGREQ项手动输入Lab模式。
如果测试组处于TestTest-NoPulse模式,那么其将暂停测试,同时请求保持在Lab
如果测试组状态STGSTS是Reposition(复位)、Suspend(挂起)或Control(控制),那么它会立即切换到Lab-Manual(实验手动)模式。
如果当Lab模式需要手动,而测试组状态是Lab-Auto(实验自动)时,那么在完成有效实验样本前,测试仪将等待,然后切换到Lab-Manual(实验手动)模式。
Lab-Auto模式允许测试组经过基于用户指定计划的实验样本时间自动切换到Lab模式。

指定实验采样时间表
实验采样时间表可以由下述XML文件语法指定:


<labsamples intimefmt="%m-%d-%Y  %H:%M:%S"  outtimefmt="%m-%d-%Y      %H:%M:%S">

<sample name="Top Comp 1" desc="Overhead composition lab 300ppm"  samp_time="05-04-2001 02:00:0" ss_mins="120" exp_mins="15" rpt_hrs="24">

<target type="dep" name="DRAWT" llimit="250.0" ulimit="300.0" restore="yes"/>

<target type="dep" name="OHTEMP" ulimit="115.0"  restore="no"/>

</sample>

<sample  name="Top Comp 2" desc="Overhead composition lab 300ppm" samp_time="05-04-2001 10:00:0" ss_mins="120" exp_mins="15" rpt_hrs="24">

<target type="dep" name="DRAWT" llimit="275.0"  ulimit="325.0" restore="no"/>

<target type="dep" name="OHTEMP" ulimit="112.0"/>

</sample>

<sample name="Top Comp 3" desc="Overhead composition lab 300ppm" samp_time="05-04-2001 18:00:0" ss_mins="120" xp_mins="15" rpt_hrs="24">

<target type="dep" name="DRAWT" llimit="290.0" ulimit="340.0" restore="yes"/>

<target type="dep" name="OHTEMP" ulimit="109.0" restore="no"/>

</sample>

</labsamples>

XML注释
默认XML文件名是tester-name_lab.xml.
注意:CONFIG部分中的STLABXML条目可用于指定不同lab的XML文件。
当STLABLOAD条目被设成1(Load),测试应用从在线应用目录中加载实验XML文件:
ONLINEAPPS\app\tester-name

<labsamples>节点
实验室XML文件的顶层节点是<labsamples>,并且其具有下列属性:
•该节点的intimefmt属性指定出现在XML文件中采样时间的格式。
•该节点的outtimefmt属性用于在Aspen Production Control Web Server提供的实验详细视图页面中显示时间戳值。

在<labsamples>节点下可能会出现任何数量的<sample>节点。每个<sample>节点描述了计划实验样本信息。
每个<sample>节点具有以下属性:

•name
计划实验样本的名称。最长为12个字符串。

•desc
计划实验样本的描述。最长为80个字符串。

•samp_time
实验样本预计采出的时间。采样时间的格式必须与<labsamples>节点的intimefmt属性相匹配。

•ss_mins
系统至稳态所需要的时间(min)。实验样本的开始时间由采样时间之前的ss_mins所计算。此时,实验样本中指定的目标将得到执行,测试组被切换到Lab-Auto模式。

•exp_mins
自采样时间后样本过期的时间(min)。如果在这一时刻样本是活跃的,则其被标记为完成。最初的因变量测试限得到恢复,测试组切换出Lab-Auto模式。在先前的时间里,操作员亦可通过设定STLABCNCL值为1来标记一个活跃的实验样本为完成状态。

•rpt_hrs
该属性可用于在完成重复指定数目小时后自动重置一实验样本。

一个<sample>节点可以有若干个<target>子节点。每个<target>节点描述了一个因变量的上下(and/or)测试限。当所有的测试组都切换到Lab-Auto模式后,这些限制在实验样本开始时(即samp_time前ss_mins时)得到执行。

<target>节点具有以下属性:

•type
此属性支持唯一值dep,表示因变量。

•name
因变量名称。

•llimit
可选的因变量低限。在实验样本开始时该值将被写入STCVMIN条目。如果其在工程限外或超过上限,下限值将被拒绝。

• ulimit
可选的因变量高限。在实验样本开始时该值将被写入STCVMAX条目。如果其在工程限外或低于下限,上限值将被拒绝。

•restore
可选属性,值可以是yes或no。此属性的默认值是yes。此属性控制在实验样本完成时是否恢复原先的STCVMIN (and/or) STCVMAX限。

计划注意事项
加载实验XML文件时之前的所有实验日程信息将被清除。可以通过将STLABLOAD项设置为2(清除)来强制清理实验日程信息。当测试应用被重新启动或重新加载时,实验日程信息也将被清除。
STLABCOUNT项表示排定实验样本数。在前述例子的实验XML文件中,XML文件加载到测试后STLABCOUNT值将为“3”。
STLABREQ项可用于启用或禁用计划实验样本处理。如果STLABREQ项设置为0(禁止),则实验样本将不被激活。这防止了因变量限或测试组模式的任何更改。

Aspen Production Control Web Server 中查看实验详细信息页面
实验详细信息页面提供了有关计划实验样本的全面信息。
当STLABCNT大于0时,此页面的链接显示在主页、操作视图、工程视图和Aspen Production Control Web Server概述界面中。
为了标记实验样本完成和终止测试组Lab-Auto**模式,STLABCNCL标签可使用实验详细界面链接旁边的按钮来设置。


附原文:
Lab sampling is supported in a SmartStep application through use of the Lab-Auto and** Lab-Manual** modes for a test group.
In these modes, the tester will try to maintain the process at a steady state. The objective for the tester is to hold the dependent variables within their test limits while minimizing the movement of the manipulated variables (that is, min-move controller).
This mode is similar to the REPOSITION mode, with the exception that the dependent limits remain unchanged. The combined status indicator for the manipulated and dependent variables will be set to** Lab** to indicate this special mode of operation.
A test group can be requested to enter** Lab** mode manually using the STGREQ entry.
If the test group is in Test or Test-NoPulse mode, then it will suspend the testing while the request remains at
Lab
.
If the test group status** STGSTS **was Reposition, Suspend, or Control, then it will immediately switch to Lab-Manual mode.
If the test group status is Lab-Auto when the Lab mode is manually requested, then the tester will wait until the completion of the active lab sample before switching to Lab-Manual mode.
The
Lab-Auto
mode allows the test groups to automatically switch to Lab mode for the duration of a lab sample based on a user specified schedule.

Specifying a lab sampling schedule
The lab sampling schedule is specified using the following XML file syntax:

XML notes
The default XML file name is** tester-name_lab.xml**.
Note: The STLABXML entry in the CONFIG section can be used to specify a different lab XML file.
When STLABLOAD entry is set to 1 (Load), the tester application loads the lab XML file from the online applications directory:
ONLINEAPPS\app\tester-name

The <labsamples> node
The top level node in the lab XML file is <labsamples>, and it has the following attributes:
•The intimefmt attribute of this node specifies format of the sample times appearing in the XML file.
•The outtimefmt attribute is used to display the timestamp values in the Lab Detail page of view provided by Aspen Production Control Web Server.
Any number of <sample> nodes may appear below the <labsamples> node. Each <sample> node describes information about a scheduled lab sample.

Each <sample> node has the following attributes:
•name
The name of the scheduled lab sample. It can be up to 12 characters long.
•desc
The description of the scheduled lab sample. It can be up to 80 characters long.
•samp_time
The time when lab sample is expected to be taken. The format of the sample time must match the intimefmt attribute of the <labsamples> node.
•ss_mins
The time to steady-state in minutes. The start time for the lab sample is calculated as ss_mins prior to the sample time. At this time, the targets specified for the lab sample are implemented and the test groups are switched to Lab-Auto mode.
•exp_mins
The time in minutes after the sample time when the sample is considered as expired. If the sample is active at this time, then it is marked as completed. The original dependent variable test limits are restored and the test groups are switched out of the Lab-Auto mode. The operator can signal the completion of an active lab sample by setting STLABCNCL entry to 1 at a prior time as well.
•rpt_hrs
The attribute can be used to automatically reschedule a lab sample after the specified number of repeat hours following its completion.

A <sample> node can have a number of <target> child-nodes. Each <target> node describes the upper and/or lower test limits for a dependent variable. These limits are implemented at the start of the lab sample (i.e., ss_mins prior to samp_time) when all the test groups are switched to Lab-Auto mode.

The <target> node has the following attributes:
•type
The only supported value of this attribute is dep, which indicates a dependent variable.
•name
Name of the dependent variable.
•llimit
Optional lower limit of the dependent variable. This value will be written to the STCVMIN entry at the start of the lab sample. The lower limit value will be rejected if it is outside the engineering limits or if it is above the upper limit.
•ulimit
Optional upper limit of the dependent variable. This value will be written to the STCVMAX entry at the start of the lab sample. The upper limit value will be rejected if it is outside the engineering limits or if it is below the lower limit.
•estore
Optional attribute that can have values of yes or no. The default value for this attribute is yes. This attribute controls whether the original STCVMIN and/or STCVMAX limits are restored upon completion of a lab sample.

Scheduling notes
All the previous lab schedule information is cleared prior to loading a lab XML file. The STLABLOAD entry can be set to 2 (Clear) to force the clearing of lab schedule information. The lab schedule information is also cleared when a tester application is re-started or re-loaded.
The STLABCOUNT entry indicates the number of scheduled lab samples. In the example lab XML file shown above, the STLABCOUNT value will be "3" after the XML file is loaded into the tester.
The STLABREQ entry can be used to enable or disable the processing of scheduled lab samples. If the STLABREQ entry is set to 0 (disabled), then the lab samples do not become active. This prevents any changes to the dependent variable limits or test group modes.

Lab Detail page in Aspen Production Control Web Server view
The Lab Detail page provides comprehensive information about the scheduled lab samples.
A link for this page is displayed on the Home Page, Operation View, Engineering View and Overview pages of the Aspen Production Control Web Server view when STLABCNT is greater than zero.
The STLABCNCL flag can be set using a button that appears next to the Lab Detail page link, in order to signal the completion of the lab sample and to terminate the Lab-Auto mode for test groups.


2015/11/9

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

推荐阅读更多精彩内容