在智能向导应用中,可通过测试组的Lab-Auto和Lab-Manual模式支持实验采样。
在这些模式中,测试仪设法将过程维持在稳态。测试仪的目的是在保持因变量处于测试限的前提下,最小化MV的动作(即最小控制器动作)。
该模式与REPOSITION模式类似,不同之处在于其因变量限制保持不变。操作变量和因变量的复合状态指示将被设成Lab以指示这种特殊模式的操作。
测试组可以通过使用STGREQ项手动输入Lab模式。
如果测试组处于Test或Test-NoPulse模式,那么其将暂停测试,同时请求保持在Lab。
如果测试组状态STGSTS是Reposition(复位)、Suspend(挂起)或Control(控制),那么它会立即切换到Lab-Manual(实验手动)模式。
如果当Lab模式需要手动,而测试组状态是Lab-Auto(实验自动)时,那么在完成有效实验样本前,测试仪将等待,然后切换到Lab-Manual(实验手动)模式。
Lab-Auto模式允许测试组经过基于用户指定计划的实验样本时间自动切换到Lab模式。
指定实验采样时间表
实验采样时间表可以由下述XML文件语法指定:
XML注释
默认XML文件名是tester-name_lab.xml.
注意:CONFIG部分中的STLABXML条目可用于指定不同lab的XML文件。
当STLABLOAD条目被设成1(Load),测试应用从在线应用目录中加载实验XML文件:
ONLINEAPPS\app\tester-name
实验室XML文件的顶层节点是
•该节点的intimefmt属性指定出现在XML文件中采样时间的格式。
•该节点的outtimefmt属性用于在Aspen Production Control Web Server提供的实验详细视图页面中显示时间戳值。
在
每个
•name
计划实验样本的名称。最长为12个字符串。
•desc
计划实验样本的描述。最长为80个字符串。
•samp_time
实验样本预计采出的时间。采样时间的格式必须与
•ss_mins
系统至稳态所需要的时间(min)。实验样本的开始时间由采样时间之前的ss_mins所计算。此时,实验样本中指定的目标将得到执行,测试组被切换到Lab-Auto模式。
•exp_mins
自采样时间后样本过期的时间(min)。如果在这一时刻样本是活跃的,则其被标记为完成。最初的因变量测试限得到恢复,测试组切换出Lab-Auto模式。在先前的时间里,操作员亦可通过设定STLABCNCL值为1来标记一个活跃的实验样本为完成状态。
•rpt_hrs
该属性可用于在完成重复指定数目小时后自动重置一实验样本。
一个
•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
The top level node in the lab XML file is
•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
Each
•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
•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
The
•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