05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CONFIGURING PROGRAMS<br />

USING THE PROGRAM LIST<br />

CONFIGURING PROGRAMS<br />

The previous sections of this manual describe how you can use actions to perform all manner<br />

of operations in response to key presses or changes in data tags. If you need to perform an<br />

action that is too complex to fit on a single line, or that demands more complex decisionmaking<br />

logic, you can use the Programming icon from the main screen to create and<br />

manipulate programs. You should note that many applications will not need programs. You<br />

may thus choose to skip this chapter if desired.<br />

USING THE PROGRAM LIST<br />

To create, rename or delete programs, click on the left-hand pane of the User Interface<br />

window. The various commands on the Program menu can then be used to make the desired<br />

changes. Alternatively, right-click on the required program, and select from the menu.<br />

To select a program, either click on the name in the list, or use the up and down arrows in the<br />

toolbar. Alternatively, you can use the Alt+Left and Alt+Right key combinations to move<br />

up and down the list as required. These keys will work no matter which pane is selected.<br />

EDITING PROGRAMS<br />

To edit a program, simply edit the program text using the large area in the right-hand pane of<br />

the Programming window. When you have finished, press the Ctrl+T key combination or<br />

select the Translate command from the Program menu. This will read the program and check<br />

it for errors. If an error is found, a dialog box will be displayed, and the cursor will be moved<br />

to the approximate position of the error. If no errors exist, a dialog box will be displayed to<br />

confirm this fact, and the program will be translated into Crimson’s internal format for<br />

subsequent execution by the Master.<br />

PROGRAM PROPERTIES<br />

The various fields at the bottom of the right-hand pane are used to edit program properties…<br />

• The Return Type property is used to indicate whether this program should simply<br />

perform a series of actions, or whether it will perform a calculation and return<br />

REVISION 6 PAGE 225

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!