Introductory Tutorial - General Controller and PGMs
IMPORTANT: The videos here supplement the SysCAD Introductory Tutorial located in the install directory at SysCADxxx\Tutorial\SysCADIntroductoryTutorial.pdf (or SysCADBasicTutorial.pdf in earlier versions). Refer to this document for detailed instructions. |
Navigation: User Guide ➔ Tutorial ➔ Tutorial Videos ➔ General Controller and PGMs
Latest SysCAD Version: 25 October 2024 - SysCAD 9.3 Build 139.36522
Related Links: General Controller, PGM Programming and Conventions, Declaring Variables, PGMs: Tag Functions
Section 8 Overview
Please use these videos together with Section 8 of the SysCAD Introductory 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 VS Code or Notepad++ for editing pgm files, as it has a number of advantages over Notepad and Textpad.
The examples provided here are demonstrated using Notepad++. Please see Using Notepad++ for more information on installing this software, which is distributed with SysCAD.
NOTE:
- In the following sections, the section number displayed alongside the videos have been updated to align with the latest tutorial documentation. These may not correspond with the original document used to create the videos.
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
|