Download 620 WinLoader, Version 5.4, User Manual

Transcript
3.6
Data Manipulation Instructions, Continued
Floating point data
manipulation
instructions,
continued
Figure 3-14
• Figure 3-14 illustrates the structure of the 32-bit floating point value
which is used by the 620 LC.
32-Bit Floating Point Structure
• floating point operands used by 620 LC are 32 bits in length and
require two contiguous Data Table Registers for storage; when
executed, Floating Point Data Manipulation instructions operate on two
contiguous registers (see Figure 3-15).
Figure 3-15 32-Bit Floating Point Operand
Specify the most significant register address (N), and
system automatically allocates next lower register address (N-1); bit 15
in register N provides sign, bits 14 through 7 provide exponent, and bits
6 through 0 provide upper seven bits of 23-bit floating point value;
register N-1 provides lower 16 bits of 23-bit floating point value.
• advantages of floating point notation include:
– eliminates rounding errors inherent to integer math;
– reduces amount of ladder logic needed to structure math operations;
– increases range of data values available to ±1.175494 x 10-38 to
±3.40282 x 1038.
– increases precision in chains of math calculations.
• typical applications include manipulation of process data, such as
performing PID algorithms and other math-intensive process industry
applications.
4/05
620 WinLoader Programming Reference
89