Data type |
Range |
PLC types |
Resolution |
Initial value |
---|---|---|---|---|
TIME (16-bit) |
T#-327.68s–T#327.67s |
supported only by FPM, FP1, FP3, FP5, FP10/10S |
T#10ms |
T#0 |
TIME (32-bit) |
T#-21_474_836.48s –T#21_474_836.47s T#-248d13h13m56s480ms–T#248d13h13m56s470ms |
supported by all PLC types except FPM, FP1, FP3, FP5, FP10/10S |
All PLC types support TIME (32-bit) with the exception of FPM, FP1, FP3, FP5, FP10/10S which support TIME (16-bit).
Duration data must be delimited on the left by the prefix T# or TIME#.
The units of duration literals can be separated by the character _.
Time units, e.g. seconds, milliseconds etc., can be represented in upper- or lower-case letters.
"Overflow" of the most significant unit of a duration literal is permitted, e.g. the notation T#25h_15m.
The least significant time unit can be written in REAL notation without an exponent.
Description |
Duration literals without separated character: |
Duration literals with separated character _: |
Short prefix |
|
|
Long prefix |
|
|