TIME

Top 

 

This data type is as big as a DINT (4 bytes). As TIME entered constants are converted in milli seconds by the compiler and saved as binary numbers. This data type is used for the IEC-times among other things. Do not try to start a S7-timer with a TIME constant, use S5TIME instead.

 

You can use the following letters for the specification of durations:

 

      D            day

      H            hour

      M            minute

      S            second

      MS           milli second

 

A typical TIME-constant looks like this:

 

      T#2D44MS     2 days and 44 milli seconds

      T#20MS       20 milli seconds

      T#1M5S       1 minute and 5 seconds

      T#1H242S5MS  1 hour and 242 seconds and 5 milli seconds

 

See also:

SFC64 System Time in ms

Data Types