讓我們思考用戶如何正確使用變換工具。在本例中思考下圖所示。這個例子顯示藍點經過分段線性逼近后形成的藍線綠點單調增加(函數)測量值。紅色矩形內的表是用于生成近似的變換表。此時如果測量值是X =4.5(工程單位),此表將把測量值大致變換為Y =2.8(變換單位)。后者的值將傳遞給控制計算。
編譯模型
在適用于控制器設計(控制器模型)和/或仿真目標(控制器和/或仿真模型)之前,工作區間內的任何模型都必須被編譯。編譯操作有兩個目的:第一,它驗證了所設計的模型;第二,它對圖形模型(GMB)進行后處理。
要啟動編譯過程,單擊Model Builder(模型構建器)樹部分的Compile(編譯)。
編譯模型窗口字段和按鈕
Model(模型) 模型名稱。
Action(操作量) 操作變量的數量。
Measured(可測量量) 可測量干擾變量的數量。
Unmeasured(不可測量量) 不可測干擾的數量。
Outputs(輸出) 模型輸出的數量。
Transfer(變換) 模型中傳遞函數的數量。
Generate new Unmeasured Disturbance Model(生成新的不可測干擾模型) 選中此單選按鈕使得SMOCPro在編譯過程中生成新的不可測量干擾。
Update existing Unmeasured Disturbance Model(更新現有的不可測干擾模型) 選中此單選按鈕使得SMOCPro在編譯過程中更新丟失的不可測量干擾。
Model Control Period(模型控制周期) 控制器中使用的模型的控制周期。
Compile Button(編譯按鈕) 單擊完成模型編譯。
有兩個注意事項值得關注:
注:通過選擇“Generate new Unmeasured Disturbance Model(生成新的不可測量干擾模型)”,SMOCPro將移除現有的不可測干擾。當你想保持自己的不可測干擾模型不被修改,需避免使用此選項。
注:任何模型錯誤都會停止編譯過程。如果遇到一個錯誤信息,要注意建議并解決問題。
模型繪圖
模型編譯完成后,單擊樹中的Plot節點以顯示模型的階躍或脈沖響應圖。
繪圖窗口取決于三個輸入類型選項間的分配:動作響應(MV),可測量干擾響應(DV)和不可測干擾響應(UNM)。調整行和列之間的分界線可改變繪圖窗口的大小。在繪圖窗口中對每個輸入-輸出模型都可通過雙擊感興趣的窗口彈出放大窗口。單擊繪圖以關閉彈出窗口。
原文:
Let us consider the user proper use of the transform tool. For this example, consider the following figure. The example shows the monotonically increasing (function) measurements in green with the blue line being the resulting piecewise linear approximation. The table in the red rectangle is the Transform table used to generate the approximation. Here, if a measurement comes in at X=4.5 (Engineering Units), this table will transform that measurement into roughly Y=2.8 (Transformed Units). This latter value is the one passed to the control calculation.
Compiling the Model
Any (and all) model must be compiled in the workspace before being suitable for controller design (controller model) and/or for simulation purposes (controller and/or simulation models). The compile operation serves two purposes: first, it validates the designed model and second, it post-processes the graphical model (GMB).
To start the compilation process, click Compile on the Model Builder section of the tree.
Compile Model Window Fields and Button
Model The name of the model.
Action The number of manipulated variables.
Measured The number of measured disturbances.
Unmeasured The number of unmeasured disturbances.
Outputs The number of model outputs.
**Transfer **The number of transfer functions in the model.
Generate new Unmeasured Disturbance Model Select this radio button to have SMOCPro generate new unmeasured disturbances during the compilation process.
Update existing Unmeasured Disturbance Model Select this radio button to have SMOCPro append all missing unmeasured disturbances during the compilation process.
Model Control Period The execution period of the model used in the controller.
Compile Button Click to perform the compilation of the model.
There are two notes worth highlighting:
NOTE: By selecting “Generate new Unmeasured Disturbance Model”, SMOCPro REMOVES the existing Unmeasured Disturbances. Avoid this option when you want to keep your own modifications of the Unmeasured Disturbance Model.
NOTE: Any and all model errors stop the compile process. If you encounter an error message, pay attention to the recommendations and address the issue.
Model Plot
After model compilation has been performed, click on the Plot node in the tree to display the plots of the model responses to either steps or impulses.
The plot window is split between three tabs depending on the type of inputs: Action Responses (MV), Measured Disturbance Responses (DV) and Unmeasured Disturbance Responses (UNM). Adjusting the dividers between the rows and columns changes the size of the plot windows. A pop-up zoomed in plot window for each input-output model can be opened by double-clicking on the cell of interest. Single clicking on the plot closes the pop-up window.
2016.9.9