Typical equation sizes and, Execution speeds, Typical equation sizes and execution speeds – Rockwell Automation T3833 ICS Regent Math Package for Winterpret User Manual
Page 23: Compiled function block size
Math Package for W
INTERPRET
(T3833)
P D - 6 0 4 3 M a r c h , 0 6
23
Typical Equation Sizes and
Execution Speeds
The following information may be used for estimating the size
and increasing the efficiency of floating point equations. This
is only a guideline. Execution speeds and memory size
requirements will vary for each equation according to the
general rules shown below.
Compiled Function Block Size
As with all types of function blocks, the size of the compiled
function block is reported in the Error Messages dialog after
compiling the function block (W
INTERPRET
version 3.2 or
later). The total size of the function block along with the data
size and code size are reported, where;
Total Size
=
Data Size + Code Size (bytes)
Data Size
=
2 bytes per line
(all lines, whether they are blank,
comments only or actual floating point
statements).
Code Size
=
52 + Code for Statements
The code required for actual floating point statements
depends on the types of operations used in the statements and
the types of variables used in the statements (see Table 10).
A general rule for size considerations when designing floating
point equations for the Regent is: using floating point
variables creates the least amount of code, followed by
constants, shared registers, analogs, and bit-type variables.
The size required for floating point math operations depends
upon the types of variables in the operation. Use the
multipliers below to approximate the size based on the
variable types used.