Rockwell Automation T6200 Compressor Anti-Surge and Capacity Controller User Manual
Page 188
Data Structures and Expressions
A-10
Modulo (%)
Both operands must be scalar. (If either is fuzzy or Boolean an error is reported.) The operands
are converted to integer. The result is integer.
AND(&), OR(|), Exclusive OR(^)
Both operands are converted to the same data type, in reference to the table below;
• if either operand is fuzzy, the operation is fuzzy
• real with real is fuzzy, otherwise Boolean
• integer with Boolean is Boolean
• integer with integer is the bit-wise operation on both integers
Operand 1
Operand
2
R F I
B
R = Real
R
F
I
B
F F B B
F F F F
B
F I B
B
F B B
F = Fuzzy
I = Integer
B = Boolean
AND, OR, and XOR Operation and Result Data Types
The result is the type of the converted operands.
Assignment (=)
The right operand is converted and stored into the type of the left operand. The value of the
expression is the right operand.
Sequence (,)
Used to separate multiple expressions the value of the left operand is discarded. The value of the
expression is the right operand.
Only if (?)
The right operand is evaluated and converted to Boolean. If the right operand is logically true, the
left operand is evaluated and its resulting value is discarded. The value of the expression is the
right operand.