3 data formats, 1 description of base-10 floating point, 1 shreal format – GE Industrial Solutions 6KCV301DGF User Manual

Page 38

Advertising
background image

—————— Digital General Function Card ——————

38

GEI-100430

2.3 DATA FORMATS

The table shows the characteristics of each type of data used in the DGF.

TYPE

Name in

C

language

TYPE

ID

Length

in bytes

MIN(1)

MAX(1)

VOID

void

0

N/A

N/A

N/A

CHAR

char

1

1

0

255

Signed
character

UCHAR

unsigned

char

2

1

-128

127

Unsigned
character

INT

int

3

2

-32768

32767

Signed integer

UINT

unsigned

int

4

2

0

65535

Unsigned
integer

LINT

long int

5

4

-2147483648

2147483647

Signed integer

ULINT

unsigned

long int

6

4

0

4294967295

Unsigned
integer

FLOAT

float

7

4

-3.40E+38

3.40E+38

Floating
point(7 digits
BCD)

DOUBLE

double

8

8

-1.79E+308

+1.79E+308

LDOUBLE

N/A

9

10

-1.1E+4932

1.1E+4932

SHREAL

N/A

10

4

-1.677E+70

1.677E+70

(2)

SLREAL

N/A

11

4

-32768E+63

32768E+63

(3)

S3HREAL

N/A

12

3

-5.2E+12

5.2E+12

(2)

S3LREAL

N/A

13

3

-32768E+63

32768E+63

(3)

HUCHAR

N/A

21

1

0

255

HUINT

N/A

22

2

0

65535

HULINT

N/A

23

4

0

4294967295

d0220g

(2) Floating point, base 10 representation, high precision

(3) Floating point, base 10 representation, low precision

Integer 32 bit
in hexadecimal
format

Floating point
(not used)

N/A: not applicable

(1) for floating point, MIN and MAX values are approximate

2.3.1 Description of base-10 floating point

2.3.1.1 SHREAL format
Characteristics:

mantissa

= 24 bits + sign (25 bit as complement of 2)

Advertising