TIME Constants

TIME constants can be declared. These are generally used to operate the timer in the standard library. A TIME constant is always made up of an initial “t” or “T” (or “time” or “TIME” spelled out) and a number sign “#”.

This is followed by the actual time declaration which can include days (identified by “d”), hours (identified by “h”), minutes (identified by “m”), seconds (identified by “s”) and milliseconds (identified by “ms”).

Please note that the time entries must be given in this order according to length (d before h before m before s before m before ms) but you are not required to include all time increments.

Examples of correct TIME constants in a ST assignment:\ \

TIME1 := T#14ms;

TIME1 := T#100S12ms; (*The highest component may be allowed to exceed its limit*)

TIME1 := t#12h34m15s;

The following would be incorrect:

TIME1 := t#5m68s; (*limit exceeded in a lower component*)

TIME1 := 15ms; (*T# is missing*)

TIME1 := t#4ms13d; (*Incorrect order of entries*)