05.05.2014 Views

csmstr - Omega Engineering

csmstr - Omega Engineering

csmstr - Omega Engineering

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

RUNNING PROGRAMS<br />

CRIMSON USER MANUAL - MODULAR CONTROLLER<br />

such that an example such as Data.1:=(Level>10) can be used to set or clear a bit<br />

depending on whether or not a tank level exceeds a preset value.<br />

RUNNING PROGRAMS<br />

Programs may be invoked within actions by following the program name with a pair of<br />

parentheses. For example, Program1() will invoke the associated program. The program will<br />

execute in the foreground or background as defined by the program’s properties.<br />

USING FUNCTIONS<br />

Crimson provides a number of predefined functions that can be used to perform various<br />

operations. These functions are defined in detail in the Function Reference. They are invoked<br />

using a syntax similar to that for programs, with any arguments to the function being enclosed<br />

within the parentheses. For example, SetLanguage(1) will set the Master language to 1.<br />

OPERATOR PRIORITY<br />

All assignment operators fall into Group 14. In other words, they will be evaluated after all<br />

other operators in an action. They are also unique in that they group right-to-left. This means<br />

that code such as Tag1:=Tag2:=Tag3:=0 can be used to clear all three tags at once.<br />

NOTES FOR EDICT USERS<br />

Users of Red Lion’s Edict-97 software should note…<br />

• The = operator can now be used instead of the := operator.<br />

PAGE 270<br />

http://www.redlion.net/controller

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

Saved successfully!

Ooh no, something went wrong!