BasicPrinciples BasicDataTypes - ThorstenBrach/SRCI GitHub Wiki

BasicDataTypes


Table 1. Basic data types supported by SRCI
Data type Name Group Length [Bits] Value range

BOOL

Boolean

Binary

1

True, False

BYTE

Byte

Binary

8

16#0 to 16#FF

WORD

Word

Binary

16

16#0 to 16#FFFF

DWORD

Double Word

Binary

32

16#0 to 16#FFFF_FFFF

SINT

Short INT

Integer

8

-128 to +127

INT

INT

Integer

16

-32768 to +32767

DINT

Double INT

Integer

32

-2147483648 to +2147483647

USINT

Unsigned Short INT

Integer

8

0 to 255

UINT

Unsigned INT

Integer

16

0 to 65,535

UDINT

Unsigned Double INT

Integer

32

0 to 4294967295

REAL

REAL

Floating point

32

-3.402823e+38 to +3.402823e+38

CHAR

Character

Character

8

ASCII (Unicode - U+0000 to U+009F)

STRING

String

String

Up to 2048

ASCII (Unicode - U+0000 to U+009F)

DATE

Date

Date and time

16

D#1990-01-01 to D#2169-06-06

TOD

Time of day

Date and time

32

TOD#00:00:00.000 to TOD#23:59:59.999

⚠️ **GitHub.com Fallback** ⚠️