How Program Functions Handle Numerical Data; Data Types - GE PACSystems RX7i Cpu Programmer's Reference Manual

Hide thumbs Also See for PACSystems RX7i:
Table of Contents

Advertisement

3.9 How Program Functions Handle Numerical Data

Regardless of where data is stored in memory – in one of the bit memories or one of the word
memories – the application program can handle it as different data types.
3.9.1

Data Types

Type
Name
BOOL
Boolean
BYTE
Byte
WORD
Word
DWORD
Double Word Has the same characteristics as a single word data
UINT
Unsigned
Integer
INT
Signed
Integer
DINT
Double
Precision
Integer
REAL
Floating
Point
LREAL
Double
Precision
Floating
Point
BCD-4
Four-Digit
BCD
GFK-2950C
Description
The smallest unit of memory. It has two states: 1 or
0. A BOOL array may have length N.
Has an 8-bit value. Has 256 values (0–255). A BYTE
array may have length N.
Uses 16 consecutive bits of data memory. The valid
range of word values is 0000 hex to FFFF hex.
type, except that it uses 32 consecutive bits in data
memory instead of only 16 bits.
Uses 16-bit memory data locations. They have a valid
range of 0 to +65535 (FFFF hex).
Uses 16-bit memory data locations, and are
represented in 2's complement notation. The valid
range of an INT data type is –32768 to +32767.
Stored in 32-bit data memory locations (two
consecutive 16-bit memory locations). Always signed
values (bit 32 is the sign bit). The valid range of a
DINT data type is -2147483648 to +2147483647
Uses 32 consecutive bits (two consecutive 16-bit
memory locations).
The range of numbers that can be stored in this
format is from ±1.401298E-45 to ±3.402823E+38.
For the IEEE format, refer to Floating Point Numbers.
Uses 64 consecutive bits (four consecutive 16-bit
memory locations).
The range of numbers that can be stored in this
format is from ±2.2250738585072020E-308 to
±1.7976931348623157E+308.
For the IEEE format, refer to Floating Point Numbers.
Uses 16-bit data memory locations. Each binary
coded decimal (BCD) digit uses four bits and can
represent numbers between 0 and 9. This BCD
coding of the 16 bits has a legal value range of 0 to
9999.
February 2018
Chapter 3. Program Data
Data Format
Register
(16 bit states)
1
16
1
Register 2
Register 1
32
17
16
(32 bit states)
Register
(Binary value)
1
16
1
(Two's
Register 1
Complement
S
value)
16
1
s=sign bit
(0=positive, 1=negative)
Register 2
Register 1
s
32
17
16
1
(Binary value)
s=sign bit
(0=positive, 1=negative)
Register 2
Register 1
32
17
16
(IEEE format)
Register 2
Register 1
32
17
16
Register 4
Register 3
64
49
48
(IEEE format)
Register 1
(4 BCD digits)
4 3 2 1
13
9
5
1
1
1
1
33
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pacsystems rx3iPacsystems rsti-ep

Table of Contents