Download Print this page

Omron NS Reference Manual page 13

Hide thumbs Also See for NS:

Advertisement

Section 1 Outline of Macro Function
NS series Macro Reference
Conditional Expressions
Use the following conditional expressions for specifying conditions in the IF sentences. It works
for all types of data (word, long access of word, bit, and numeral access of bit).
Item
A == B
A > B
A >= B
A < B
A <= B
A <> B
A ! = B
A && B
A AND B
A || B
A OR B
Reference
The result (A&&B, A>B) can be substituted for the variable.
E.g.$B100=$W0>100;
If the value of $W is "100" or less, "0" will be substituted for $B100. If the value of
$W is more than "100", "1" will be substituted for $B100.
If A is equal to B, TRUE.
If A is greater than B, TRUE.
If A is greater than or equal to B, TRUE.
If A is less than B, TRUE.
If A is less than or equal to B, TRUE.
If A is not equal to B, TRUE.
If both A and B are true, TRUE. (AND)
If either of A or B is true, TRUE. (OR)
1-11
Explanation

Advertisement

loading

This manual is also suitable for:

Ns-series