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 |
|---|---|---|---|
1 bit |
Boolean |
Supported |
|
8 bits |
Signed short integer |
Supported |
|
16 bits |
Signed integer |
Supported |
|
32 bits |
Signed double integer |
Supported |
|
64 bits |
Signed long integer |
Supported |
|
8 bits |
Unsigned short integer |
Supported |
|
16 bits |
Unsigned integer |
Supported |
|
32 bits |
Unsigned double integer |
Supported |
|
64 bits |
Unsigned long integer |
Supported |
|
32 bits |
Single-precision floating point |
Supported |
|
64 bits |
Double-precision floating point |
Supported |
|
8 bits |
Bit string of 8 bits |
Supported |
|
16 bits |
Bit string of 16 bits |
Supported |
|
32 bits |
Bit string of 32 bits |
Supported |
|
64 bits |
Bit string of 64 bits |
Supported |
|
Variable |
Single-byte character string |
Not yet supported |
|
Variable |
Double-byte character string |
Not yet supported |
|
64 bits |
Duration |
Not yet supported |
|
— |
Calendar date |
Not yet supported |
|
— |
Time of day |
Not yet supported |
|
— |
Date and time of day |
Not yet supported |
Derived Types¶
Type |
Description |
Status |
|---|---|---|
Named set of values |
Partial |
|
Integer type restricted to a range |
Partial |
|
Fixed-size indexed collection |
Not yet supported |
|
Record with named fields |
Partial |