TMR

Converts an integer or real variable to a time one.
lrso_tm1
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 *)
lrso_tm2
(* ST Equivalence: *)
ares := TMR (1256); (* ares := t#1s256ms *)
rres := TMR (1256.3); (*rres := t#1s256ms *)
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal