Previous Topic

Next Topic

Book Contents

Book Index

Programming reference

If you are just starting out programming SPLat for the first time, this is not the place to start unless your are a seasoned programmer. SPLat has a rich repertoire comprising over 400 instructions, and trying to tackle them head-on all at once would be quite overwhelming. The best place to start instead is with FastTrack, which allows you to perform simple sequencing and timing tasks using just 14 instructions. FastTrack will have you producing results in a couple of hours. Within and beyond FastTrack there are a number of tutorials and guides to assist you along the way. Just remember, as you advance your skills and confidence SPLat has all the power you may need for really sophisticated control tasks.

This programming reference provides definitions of all SPLat instructions, directives, precodes, communications control block items and result codes. Most of the sections contain instructions listed against various criteria: Alphabetically, I/O, counting etc. Most instructions will appear in several categories. They have been placed in categories with the intention of helping you find something to fit a particular situation. For example, under Numerical comparison instructions you will find instructions for floating point comparisons as well as for testing a number and doing a conditional GoTo based on the result.

Instructions that can be used in indexed mode have, in the headings, an asterisk after the instruction argument that gets the index register added to it, for example ShadowRead mm*,cc

Instructions that get jndexed in a MultiTrack task and/or are affected by the IasJ: precode, have a plus sign after the address operand that gets affected.

Instructions that use automatic indexing have a hash sign after the argument that gets the index register added to it.

For the more recently introduced instructions the applicable language dialect is noted in bracket, e.g. [D>=16].

Please note that not all instructions are available in all SPLat boards, even if the dialect matches. There can be hardware differences between boards (such as having LCD support or RTC) in addition to dialect differences. The availability is noted in each instruction description. See also reFlashing regarding possibly upgrading a board to a more recent dialect.

This reference does not replace the tutorial style presentation in the Classic help file that is part of the SPLat/PC programming software.

Previous Topic

Next Topic

In This Chapter

Instructions arranged by function

Instructions arranged alphabetically

Active Templates - library modules on steroids

Directives

Precodes

Result codes

Communication Control Block elements

ModBus Master control script commands