| BOOL |
Unsigned char |
- |
| BYTE |
Unsigned char |
- |
| WORD |
Unsigned short |
- |
| DWORD |
Unsigned long |
- |
| SINT |
Signed char |
- |
| USINT |
Unsigned char |
- |
| INT |
Short |
- |
| UINT |
Unsigned short |
- |
| DINT |
Long |
- |
| UDINT |
Unsigned long |
- |
| REAL |
Float |
- |
| LREAL |
Double |
- |
| STRING(size) |
Char[size+1] |
Size specifier is optional. Default size is 80 characters (IEC). Size in C code is +1 due to null termination. |
| TIME |
Unsigned long |
Milliseconds starting from 00:00:00 |
| TIME_OF_DAY (TOD) |
Unsigned long |
Milliseconds starting from 00:00:00 |
| DATE |
Unsigned long |
Seconds starting from 1.1.1970 at 00:00:00 |
| DATE_AND_TIME (DT) |
Unsigned long |
Seconds starting from 1.1.1970 at 00:00:00 |
| LWORD |
Unsigned long long |
- |
| LINT |
Long long |
- |
| ULINT |
Unsigned long long |
- |