Appendix B Calculation using C# Calculation File
The variable available in History and Vtrin can be used to monitor values as shown
in
Figure
Figure 84. Calculation variables created for CalculationExample1
Generating Base Class
To create calculations, base class must be generated. The generated base class is
then extended in actual calculation code. The base class makes it easy to refer the
currently existing variables and process history data. This results in easy calculation
program to develop and maintain.
The base class is generated by using RTDB_CalcGenerator. To generate the base
class run the following .bat file in the command line.
RTDB_CalcGenerator -b "%APP_DATAPATH%" -cb
"%APP_ROOT%\bin\RTDB_CalcBase.dll" -bs
"%APP_ROOT%\src\Calculations\RTDB_CalcBase.cs
The last parameter -bs (-baseclasssource) is optional and can be used to dump the
base class sources.
2PAA107563-600 B
84.
Generating Base Class
139