Attention
IronPLC supports IEC 61131-3 Structured Text excluding I/O mapping.
Data Types¶
IEC 61131-3 defines a set of elementary data types and mechanisms for creating derived types.
Tip
Examples on supported data type pages are interactive — edit the code and see results in your browser. Powered by the IronPLC Playground.
Elementary Types¶
Type |
Size |
Description |
|---|---|---|
1 bit |
Boolean |
|
8 bits |
Signed short integer |
|
16 bits |
Signed integer |
|
32 bits |
Signed double integer |
|
64 bits |
Signed long integer |
|
8 bits |
Unsigned short integer |
|
16 bits |
Unsigned integer |
|
32 bits |
Unsigned double integer |
|
64 bits |
Unsigned long integer |
|
32 bits |
Single-precision floating point |
|
64 bits |
Double-precision floating point |
|
8 bits |
Bit string of 8 bits |
|
16 bits |
Bit string of 16 bits |
|
32 bits |
Bit string of 32 bits |
|
64 bits |
Bit string of 64 bits |
|
Variable |
Single-byte character string |
|
Variable |
Double-byte character string |
|
32 bits |
Duration |
|
64 bits |
Duration (Edition 3) |
|
32 bits |
Calendar date |
|
64 bits |
Calendar date (Edition 3) |
|
32 bits |
Time of day |
|
64 bits |
Time of day (Edition 3) |
|
64 bits |
Date and time of day |
|
64 bits |
Date and time of day (Edition 3) |
Derived Types¶
Type |
Description |
|---|---|
Named set of values |
|
Integer type restricted to a range |
|
Fixed-size indexed collection |
|
Record with named fields |
|
Pointer to a variable (Edition 3) |