Basic Tutorial - General Controller and PGMs
|THE VIDEOS HERE SUPPLEMENT THE SysCADBasicTutorial.pdf, LOCATED IN THE SysCADxxx\Tutorial FOLDER. REFER TO SysCADBasicTutorial FOR DETAILED INSTRUCTIONS.|
- 1 Section 8 Overview
- 2 Step 1: Insert a General Controller and write a Simple pgm File
- 3 Step 2: Display Calculated Variables in the General Controller Access Window
- 4 Step 3: Allow Users to Enter Values in the General Controller Access Window
- 5 Step 4: Add a Range to an Input Variable
- 6 Step 5: Add Page and Text Labels on the General Controller Access Window
- 7 Optional - Finding and Fixing Common pgm Errors
Section 8 Overview
Please use these videos together with Section 8 of the Basic SysCAD Tutorial, which is distributed with the SysCAD full install.
We will continue to use the project that we have constructed and modified in the previous sections of the Tutorial.
In this section we will look at how to insert a General Controller into a SysCAD project and then write a simple pgm control file:
Cobalt reaction Extent = 90 + 0.012 * Autoclave Temperature where: Cobalt reaction Extent is the extent of the Cobalt reaction in the Autoclave (Reaction 2); and Autoclave Temperature is the final temperature of the Autoclave, measured in Kelvin.
- We will initially write the pgm file with the equation as shown above with 'hard-wired' values of 90 and 0.012;
- We will then add visibility to the pgm to allow the user to see the measured (Autoclave Temperature) and set (Cobalt Reaction Extent) values in the General Controller access window.
- Next we will the change the equation in the pgm file to:
- Cobalt reaction Extent = A + B * Autoclave Temperature
- and allow the user to enter the values for A and B from the Access Window of the General Controller.
- We will then add maximum and minimum values when declaring A and B so that the user cannot enter a value outside of a defined range.
- Lastly, we will move the variables onto a new Access Window of the General Controller and add some text to the Access Window.
Text Editor for Writing pgm Files
We strongly recommend that you use Notepad++ for editing pgm files, as it has a number of advantages over Notepad and Textpad.
Please see Using Notepad++ for more information on installing this software (distributed with SysCAD).
Step 1: Insert a General Controller and write a Simple pgm File
Step 2: Display Calculated Variables in the General Controller Access Window
Step 3: Allow Users to Enter Values in the General Controller Access Window
Step 4: Add a Range to an Input Variable
Step 5: Add Page and Text Labels on the General Controller Access Window
Optional - Finding and Fixing Common pgm Errors