Rockwell Automation T3833 ICS Regent Math Package for Winterpret User Manual

Page 9

Advertising
background image

Math Package for W

INTERPRET

(T3833)


P D - 6 0 4 3 M a r c h , 0 6

9

application program in the Regent. This will prevent the
program from being loaded into the Regent.

For more information about Regent variable types, see
Regent Variable Types and Memory, in Section 4, Working
with Projects, in the Regent User’s Guide.

Floating point math function blocks recognize the following
variable types:

Logical Variables

Logical variables are used for digital output, shared control
relays, and local control relays. Logical values are always 1
(on) or 0 (off).

Analog Variables

Analog variables are used for analog inputs and outputs.
Analog variables must be within the range 0 to 4095.
Thermocouple and RTD inputs are within the range of -16384
and 16383.

Integer Variables

Integer variables are used for shared registers and local
registers. Integer values must be within the range -32768
and 32767.

Floating Point Variables

Floating point variables are used for floating point shared
registers and floating point local registers. Floating point
values must be within the range -1.175494E-38 and
3.402823E38.

Coercion (Type Conversion)

Regardless of the variable type, all calculations performed in
floating point math are done using floating point numbers.
When logical, analog, or integer type variables are used, code
is created in the function block to convert the variable value
to a floating point number for calculation in the Regent.

When storing the result of a calculation, the value is
converted to the type of the destination variable.

When performing variable conversions, the rules in Table 5
apply:

Advertising