Specifications
Section 9. CR1000 Programming
9-26
TABLE 9.13-1. Binary Conditions of TRUE and FALSE
Condition
CRBASIC
Instruction(s) Used
Memory Location of
Binary Result
Time TimeIntoInterval() Variable, System
IfTime() Variable, System
Control Port Trigger WaitDigTrig() System
Communications VoiceBeg() System
ComPortIsActive() Variable
PPPClose() Variable
Measurement Event DataEvent() System
Using TRUE or FALSE conditions with logic operators such as AND and OR,
logical expressions can be encoded into a CR1000 to perform three general
logic functions, facilitating conditional processing and control applications.
1. Evaluate an expression, take one path or action if the expression is true
(= -1), and / or another path or action if the expression is false (= 0).
2. Evaluate multiple expressions linked with AND or OR.
3. Evaluate multiple and / or links.
The following commands and logical operators are used to construct logical
expressions. EXAMPLE 9.13-5 a - f demonstrate some logical expressions.
IF
AN
D
OR
XOR
IMP
IIF