Attention

IronPLC can only run very simple programs. The steps described are accurate but many language features are not yet supported.

Data Types

IEC 61131-3 defines a set of elementary data types and mechanisms for creating derived types.

Elementary Types

Type

Size

Description

Status

BOOL

1 bit

Boolean

Supported

SINT

8 bits

Signed short integer

Supported

INT

16 bits

Signed integer

Supported

DINT

32 bits

Signed double integer

Supported

LINT

64 bits

Signed long integer

Supported

USINT

8 bits

Unsigned short integer

Supported

UINT

16 bits

Unsigned integer

Supported

UDINT

32 bits

Unsigned double integer

Supported

ULINT

64 bits

Unsigned long integer

Supported

REAL

32 bits

Single-precision floating point

Supported

LREAL

64 bits

Double-precision floating point

Supported

BYTE

8 bits

Bit string of 8 bits

Supported

WORD

16 bits

Bit string of 16 bits

Supported

DWORD

32 bits

Bit string of 32 bits

Supported

LWORD

64 bits

Bit string of 64 bits

Supported

STRING

Variable

Single-byte character string

Not yet supported

WSTRING

Variable

Double-byte character string

Not yet supported

TIME

64 bits

Duration

Not yet supported

DATE

Calendar date

Not yet supported

TIME_OF_DAY

Time of day

Not yet supported

DATE_AND_TIME

Date and time of day

Not yet supported

Derived Types

Type

Description

Status

Enumerated types

Named set of values

Partial

Subrange types

Integer type restricted to a range

Partial

Array types

Fixed-size indexed collection

Not yet supported

Structure types

Record with named fields

Partial