Keyword |
Data type |
Range |
Reserved memory |
Initial value |
---|---|---|---|---|
Boolean |
0 (FALSE) 1 (TRUE) |
1 bit |
0 |
|
Bit string of length 16 |
0–65535 |
16 bits |
0 |
|
Bit string of length 32 |
0–4294967295 |
32 bits |
0 |
|
Integer |
-32768–32767 |
16 bits |
0 |
|
Double integer |
-2147483648–2147483647 |
32 bits |
0 |
|
Unsigned integer |
0–65535 |
16 bits |
0 |
|
Unsigned double integer |
0–4294967295 |
32 bits |
0 |
|
Real number |
-3.402823466*E38 to -1.175494351*E-38 0.0 +1.175494351*E-38 to +3.402823466*E38 |
32 bits |
0.0 |
|
LREAL2) |
Long real number |
-1.7976931348623158e+308 to -2.2250738585072014e-308 0.0 +2.2250738585072014e-308 to +1.7976931348623158e+308 |
64 bits |
0.0 |
Duration |
T#0s–T#327.67s |
16 bits1) |
T#0s |
|
T#0s–T#21474836.47s |
32 bits1) |
|||
Date and time |
DT#2001-01-01-00:00:00– DT#2099-12-31-23:59:59 |
32 bits |
||
Date |
D#2001-01-01– D#2099-12-31 |
32 bits |
D#2001-01-01 |
|
Time of day |
TOD#00:00:00– TOD#23:59:59 |
32 bits |
TOD#00:00:00 |
|
Variable-length character string |
1–32767 bytes (ASCII) depending on PLC memory size |
2 words for the head + (n+1)/2 words for the characters |
'' |
1)Depending on PLC type
2)LREAL is supported for 32-bit PLCs, e.g. FP7 only.