TMR
Converts an integer or real variable to a time one.

Arguments | ||
---|---|---|
IN | DINT - REAL | A non-TIME value IN (or integer part of IN if it is real) is the number of milliseconds |
Q | TIME | Time value represented by IN |
Example
(* FBD example with "Convert to Timer" Operators *)

(* ST Equivalence: *)
ares := TMR (1256); (* ares := t#1s256ms *)
rres := TMR (1256.3); (*rres := t#1s256ms *)
Provide Feedback