Previous Topic

Next Topic

Book Contents

Book Index

LoopIfTiming tttttt,LLLL [D>=16]

Compares the current system time with the value captured by a previous MarkTime instruction in the same MultiTrack task. If the elapsed time is less than tttttt times 10mS, jumps to line LLLL, otherwise "falls through" to the next instruction. tttttt is a value between 0 and 16,777,215. A fatal error will occur if this instruction is executed outside of a task in the MultiTrack task queue.

From dialect 20 some controllers allow you to program the 10mS basic "tick" interval over the range 1mS to 255mS via a setting in the CPU device. See the CPU device documentation for your controller.

Caution: The MarkTime/LoopIfTiming mechanism uses the very same timer as Pause, WaitOnT etc. Do not use MarkTime/LoopIfTiming to bracket a section of code containing Pause, WaitOnT etc.

See MultiTrack tutorial

Dialect exclusions: Not available in dialects before 16.

Previous Topic

Next Topic