Labels, Data types, Logical operations – Rockwell Automation T6200 Compressor Anti-Surge and Capacity Controller User Manual
Page 185: Arithmetic operations
![background image](/manuals/581416/185/background.png)
Data Structures and Expressions
A-7
Labels
Labels are user defined symbols or code names. Labels are assigned to configuration
steps and are used as step (address) references for GOTO function or steps that are to be
accessed from other functions. Labels must be unique within one loop but a label can be
used in more than one loop within the Controller or system.
Labels should have from 1 to 16 alphanumeric, and/or underscore(_) characters. Labels cannot
contain spaces (blanks) or other symbols. The first character of a label cannot be a dash or
number. Both upper and lower case letters are accepted but A/S VIEW will convert lower case
letters to upper case for processing.
Data Types
There are four data types used by the T6200 Controller:
REAL
Real numbers are the most common and that have a fractional component. They can assume any
32 bit IEEE floating point value.
Examples: 12.45, 345.592, 0.021
INTEGER
Integers are numbers that do not have a fractional component. Their value can range from
2,147,483,648 to +2,147,483,647.
Examples: 5, 38, 1053
BOOLEAN
Boolean variables are two state logic variables that has either a value of one or zero.
Examples: Discrete Input, Discrete Output, Internal Switch
FUZZY
Fuzzy numbers are real numbers between zero and one and they are used with logic operands
AND, OR, and XOR.
Examples: 0, 1, 0.2, 0.99
Logical Operations
Operator
Description
Example
&
|
^
-
?
AND
OR
Exclusive OR
NOT
Only if
A&B
A|B
A^B
-A
A?B
Arithmetic Operations
Operator
Description
Example