SPLat Logo

STScale ss [D>=16]

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

STScale ss [D>=16]

This instruction is intended to assist debugging using the SuperTimer mechanism plus the global 100mS and 10mS ticks. ss is a speed-up factor between 1 and 255. 1 gives no speedup. 255 gives a 255x speedup. This instruction is not confined to use in a MultiTrack task.

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. This is a different mechanism to STScale. With STScale the ticks still happen every 10mS, but more than 10mS is added to the system clock. That means that with STScale the system clock stil only changes every 10mS. STScale is simulated in SPLat/PC, whereas the CPU device setting is not. STScale is intended only for speedup during debugging.

Note that a zero argument will stop the supertimers and anything derived from them (viz Pause and WaitOnT timing in a MultiTrack task). Be careful.

SuperTimers are discussed in the MultiTrack tutorial

Dialect exclusions: Not available in dialects before 16.

Will not be supported in 32-bit boards. Instead the CPU command SPxCmd1 1,!CPU lets you change timing of individual MultiTrack tasks.

See also STStart, STTest, Pause, WaitOnT, WaitOnKT