SPLat Logo

fSTTimeSince aa+ [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

fSTTimeSince aa+ [D>=16]

Calculates the difference between the current System Time and the value stored in 3 bytes of RAM at address aa. The result is the elapsed time since the System Time was captured to aa, and is returned as a floating point number in W. This will be an integer value in the range 0 to 16,777,215 times 10mS. This instruction is not confined to use in a MultiTrack task. It is based on the assumption that there was a prior STStart instruction.

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.

The address argument aa will be jndexed when executed inside a MultiTrack task and will be indexed if the instruction is preceded by the IasJ: precode.

See MultiTrack tutorial

Dialect exclusions: Not available in dialects before 16.