在智能向?qū)?yīng)用中,可通過測(cè)試組的Lab-Auto和Lab-Manual模式支持實(shí)驗(yàn)采樣环揽。
在這些模式中岔留,測(cè)試儀設(shè)法將過程維持在穩(wěn)態(tài)。測(cè)試儀的目的是在保持因變量處于測(cè)試限的前提下箕慧,最小化MV的動(dòng)作(即最小控制器動(dòng)作)服球。
該模式與REPOSITION模式類似,不同之處在于其因變量限制保持不變颠焦。操作變量和因變量的復(fù)合狀態(tài)指示將被設(shè)成Lab以指示這種特殊模式的操作斩熊。
測(cè)試組可以通過使用STGREQ項(xiàng)手動(dòng)輸入Lab模式。
如果測(cè)試組處于Test或Test-NoPulse模式伐庭,那么其將暫停測(cè)試粉渠,同時(shí)請(qǐng)求保持在Lab。
如果測(cè)試組狀態(tài)STGSTS是Reposition(復(fù)位)似忧、Suspend(掛起)或Control(控制)渣叛,那么它會(huì)立即切換到Lab-Manual(實(shí)驗(yàn)手動(dòng))模式。
如果當(dāng)Lab模式需要手動(dòng)盯捌,而測(cè)試組狀態(tài)是Lab-Auto(實(shí)驗(yàn)自動(dòng))時(shí)淳衙,那么在完成有效實(shí)驗(yàn)樣本前,測(cè)試儀將等待,然后切換到Lab-Manual(實(shí)驗(yàn)手動(dòng))模式箫攀。
Lab-Auto模式允許測(cè)試組經(jīng)過基于用戶指定計(jì)劃的實(shí)驗(yàn)樣本時(shí)間自動(dòng)切換到Lab模式肠牲。
指定實(shí)驗(yàn)采樣時(shí)間表
實(shí)驗(yàn)采樣時(shí)間表可以由下述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注釋
默認(rèn)XML文件名是tester-name_lab.xml.
注意:CONFIG部分中的STLABXML條目可用于指定不同lab的XML文件。
當(dāng)STLABLOAD條目被設(shè)成1(Load)靴跛,測(cè)試應(yīng)用從在線應(yīng)用目錄中加載實(shí)驗(yàn)XML文件:
ONLINEAPPS\app\tester-name
<labsamples>節(jié)點(diǎn)
實(shí)驗(yàn)室XML文件的頂層節(jié)點(diǎn)是<labsamples>缀雳,并且其具有下列屬性:
?該節(jié)點(diǎn)的intimefmt屬性指定出現(xiàn)在XML文件中采樣時(shí)間的格式。
?該節(jié)點(diǎn)的outtimefmt屬性用于在Aspen Production Control Web Server提供的實(shí)驗(yàn)詳細(xì)視圖頁面中顯示時(shí)間戳值梢睛。
在<labsamples>節(jié)點(diǎn)下可能會(huì)出現(xiàn)任何數(shù)量的<sample>節(jié)點(diǎn)肥印。每個(gè)<sample>節(jié)點(diǎn)描述了計(jì)劃實(shí)驗(yàn)樣本信息。
每個(gè)<sample>節(jié)點(diǎn)具有以下屬性:
?name
計(jì)劃實(shí)驗(yàn)樣本的名稱绝葡。最長(zhǎng)為12個(gè)字符串深碱。
?desc
計(jì)劃實(shí)驗(yàn)樣本的描述。最長(zhǎng)為80個(gè)字符串藏畅。
?samp_time
實(shí)驗(yàn)樣本預(yù)計(jì)采出的時(shí)間敷硅。采樣時(shí)間的格式必須與<labsamples>節(jié)點(diǎn)的intimefmt屬性相匹配。
?ss_mins
系統(tǒng)至穩(wěn)態(tài)所需要的時(shí)間(min)愉阎。實(shí)驗(yàn)樣本的開始時(shí)間由采樣時(shí)間之前的ss_mins所計(jì)算绞蹦。此時(shí),實(shí)驗(yàn)樣本中指定的目標(biāo)將得到執(zhí)行榜旦,測(cè)試組被切換到Lab-Auto模式幽七。
?exp_mins
自采樣時(shí)間后樣本過期的時(shí)間(min)。如果在這一時(shí)刻樣本是活躍的溅呢,則其被標(biāo)記為完成锉走。最初的因變量測(cè)試限得到恢復(fù),測(cè)試組切換出Lab-Auto模式藕届。在先前的時(shí)間里挪蹭,操作員亦可通過設(shè)定STLABCNCL值為1來標(biāo)記一個(gè)活躍的實(shí)驗(yàn)樣本為完成狀態(tài)。
?rpt_hrs
該屬性可用于在完成重復(fù)指定數(shù)目小時(shí)后自動(dòng)重置一實(shí)驗(yàn)樣本休偶。
一個(gè)<sample>節(jié)點(diǎn)可以有若干個(gè)<target>子節(jié)點(diǎn)梁厉。每個(gè)<target>節(jié)點(diǎn)描述了一個(gè)因變量的上下(and/or)測(cè)試限。當(dāng)所有的測(cè)試組都切換到Lab-Auto模式后踏兜,這些限制在實(shí)驗(yàn)樣本開始時(shí)(即samp_time前ss_mins時(shí))得到執(zhí)行词顾。
<target>節(jié)點(diǎn)具有以下屬性:
?type
此屬性支持唯一值dep,表示因變量碱妆。
?name
因變量名稱肉盹。
?llimit
可選的因變量低限。在實(shí)驗(yàn)樣本開始時(shí)該值將被寫入STCVMIN條目疹尾。如果其在工程限外或超過上限上忍,下限值將被拒絕骤肛。
? ulimit
可選的因變量高限。在實(shí)驗(yàn)樣本開始時(shí)該值將被寫入STCVMAX條目窍蓝。如果其在工程限外或低于下限腋颠,上限值將被拒絕。
?restore
可選屬性吓笙,值可以是yes或no淑玫。此屬性的默認(rèn)值是yes。此屬性控制在實(shí)驗(yàn)樣本完成時(shí)是否恢復(fù)原先的STCVMIN (and/or) STCVMAX限面睛。
計(jì)劃注意事項(xiàng)
加載實(shí)驗(yàn)XML文件時(shí)之前的所有實(shí)驗(yàn)日程信息將被清除絮蒿。可以通過將STLABLOAD項(xiàng)設(shè)置為2(清除)來強(qiáng)制清理實(shí)驗(yàn)日程信息叁鉴。當(dāng)測(cè)試應(yīng)用被重新啟動(dòng)或重新加載時(shí)歌径,實(shí)驗(yàn)日程信息也將被清除。
STLABCOUNT項(xiàng)表示排定實(shí)驗(yàn)樣本數(shù)亲茅。在前述例子的實(shí)驗(yàn)XML文件中,XML文件加載到測(cè)試后STLABCOUNT值將為“3”狗准。
STLABREQ項(xiàng)可用于啟用或禁用計(jì)劃實(shí)驗(yàn)樣本處理克锣。如果STLABREQ項(xiàng)設(shè)置為0(禁止),則實(shí)驗(yàn)樣本將不被激活腔长。這防止了因變量限或測(cè)試組模式的任何更改袭祟。
Aspen Production Control Web Server 中查看實(shí)驗(yàn)詳細(xì)信息頁面
實(shí)驗(yàn)詳細(xì)信息頁面提供了有關(guān)計(jì)劃實(shí)驗(yàn)樣本的全面信息。
當(dāng)STLABCNT大于0時(shí)捞附,此頁面的鏈接顯示在主頁巾乳、操作視圖、工程視圖和Aspen Production Control Web Server概述界面中鸟召。
為了標(biāo)記實(shí)驗(yàn)樣本完成和終止測(cè)試組Lab-Auto**模式胆绊,STLABCNCL標(biāo)簽可使用實(shí)驗(yàn)詳細(xì)界面鏈接旁邊的按鈕來設(shè)置。
附原文:
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