在智能向導應用中,可通過測試組的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文件語法指定:
<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