TMR.QUALITY (STRUCT; Prefix q)

( CAA_Timer.libray)

tickMax

CAA.TICK

Maximum counted measurand of timer

udiResolution

UDINT

Resolution of timer (in ns)

tickMax: The maximum counted measurand of the selected timer is specified by tickMax.

udiResolution: The resolution of the timer clock is specified by udiResolution.

The resolution and the maximum counted measurand define the period of the timer, for example tickMax = 65535 and udiResolution = 500 (50µs) result in a timer period of 3.276750 s.

The functions TMR.CreateH and TMR.CreateP will automatically set the resolution and maximum counted measurand ideal for the interval specified. Dependent platform resp. hardware hard- and software time may be used for the implementation. The selection is done by the entry xHardware of the functions TMR.CreateH and TMR.CreateP.