Train Control Language

TCL (or Train Control Language) is used to tell Tcc what to do. It is a scripting language rather different to 'normal' programming languages and is very suited to the sort of control that is required for a model railway. If you have experience with other languages then this may appear rather different. If you have no programming experience you are probably at an advantage!

Intro to TCL

An overview of the scripting system Tcc uses.

TCC_tutorial

A tutorial illustrating the use of hardware modules and tcl script. Written by Howard Watkins.

TCL Actions

A list of the action elements you can put in TCL scripts. This is a good reference for much of whats in the TCL language.

Objects in TCL

High level intelligent objects can make script writing easier.

Database functions

You can store data (such as rolling stock parameters) in an SQL database and access it from TCL.

TCL Language definition

A formal definition of TCL. Not an easy read but useful for reference.

Reserved words

Words predefined and so unavailable for use as variable names.


Last updated 23 March 2011

© Howard Amos 2008-2011