6 editing logic statements – INFICON Cygnus Editor Software Manual User Manual

Page 52

Advertising
background image

3 - 14

IP

N 07

4-

39

4-

P1

A

Cygnus Editor Operating Manual

3.6 Editing Logic Statements

Figure 3-17

shows the Logic Statements page of the Cygnus Editor. Logic

Statements allow for a combination of up to five Events, which when found to be
"true", produces a set of up to five Actions. Events can be combined with the AND
or OR operators to form the Event portion of the statement. Actions can only be
combined using the AND operator.

For example, if an Event is written:

If TIMER SECS 1 20.0

then that TIMER value is checked and is "false" until the value equals 20 seconds.

If more than one Event is combined with an AND operator, for example:

If TIMER SECS 1 20.0 AND COUNTER LIMIT 1 10

then in order for the statement to be "true", both the TIMER value must equal 20
and the COUNTER value must equal 10. No action would be taken on this
statement for any other values.

If these two Events are combined with the OR operator, for example:

If TIMER SECS 1 20.0 OR COUNTER LIMIT 1 10

then when either the TIMER value equals 20 or the COUNTER value equals 10 an
Action will be taken.

Two other operators are available for use with Events - the NOT operator and
parentheses. The NOT operator is used when an Action is to take place but not if
a given Event is active. For example:

If NOT TIMER SECS 1 20.0

would result in an Action taking place for any TIMER value other than 20 (i.e. the
Event is "true" when the TIMER is not equal to 20). The NOT operator essentially
is used to trigger an Action when something is not running, not at a maximum, or
not at a minimum, for example.

The parentheses are used to combine two or more Events and separate their
cumulative "true" from other Events. Parentheses are most often used when more
than one type of operator is used in the statement. For example, this statement:

If TIMER SECS 1 20.0 OR (COUNTER LIMIT 1 10 AND READY 1)

is "true" if the TIMER value equals 20 or if both values within the parentheses are
reached at the same time.

Advertising