You are on page 1of 4

CTI Programming Language, Version 6.0.

9
14MAR11

Commands Command Blocks WHEN <these conditions exist> DO <actions> WHILE <these conditions exist> DO <actions> ALWAYS DO <actions>

Notes

Page

edge-triggered level-sensitive

20 82 83

Branching Commands UNTIL <conditions> LOOP <actions> ENDLOOP WAIT UNTIL <conditions> THEN <actions> SUB <name(parameters by value)> <actions> RETURN <actions> END SUB RETURN <to next action statement> IF <conditions> THEN <actions> ENDIF IF <conditions> THEN <actions> ELSIF <conditions> THEN <actions> ELSEIF <conditions> THEN <actions> ELSE <actions> ENDIF WAIT <seconds> PULSE <seconds> ON OFF TRUE FALSE Arrays Indirect Variable Addressing: (+,-,*,/,#) (&, |, ^, ~) Comments $Reset $Emergency $Random Time/Date Commands $Time $Session $StopWatch $Day $Date $Month $Year Input Commands $Command $Query $QueryBusy $QueryResponse 0.01 seconds min. 0.01 seconds min.

106 106 113 115 105 105 21 27 19

19 107 112 80 81 22 152 0 65535 (use # to size) 135

&var to set, *var to use Add, Subtract, Multiply, Divide, Modulo AND, OR, XOR, NOT {},

1=Sun - 7=Sat 1 - 31 1 12

125 125 127 128 128 128 128 152 21 109 109 109 110

$<Type 1,2,3><prompt><button field> TRUE,FALSE TRUE,FALSE

$QueryBit[ ]
Output Commands $Status $Log $Read $Write $Append $FileData $ReadBufLen $WriteBufLen

var%

152 153 117 117 117 119 117 117

CTI Programming Language, Version 6.0.9 Commands Sound Commands $Sound $CDTrack <CD track number> $Sound1 $Sound2 $Repeat $Sound1Busy $Sound2Busy CTC Layout Commands $RightMouse $LeftMouse $Switch (x,y,z) = <switch state> $Signal (x,y,z) = <addressable signal state> $Signal (x,y,z) = <fixed signal state> Notes Page

*.WAV,OFF, CDOFF, WAVOFF, $Repeat

136 136 137 137 137 138 138

(x, y, z) (x, y, z)

88 88

89 R, G, Y, W, *, -, x 93 /, -, *, RED, GREEN, YELLOW 92 RED_BLINK, GREEN_BLINK, YELLOW_BLINK 100 95 96 99 103 103 103 101 101 102 101 100 101 103 100 103 103 101

$Color Sprite (x,y,z) = <color value> $Color Track (x,y,z) = <color value> $Color Block (x,y,z) = <color value>

BLACK, WHITE, GRAY, RED, GREEN BLUE, YELLOW, BROWN, and PURPLE

$Draw Sprite (x,y,z) = <sprite name> IN <color value> $Draw Picture(x,y,z)=<image filename> *.bmp, *.gif, *.jpg $Draw And_Picture(x,y,z)=<image filename> $Draw Or_Picture(x,y,z)=<image filename> $Draw Message (x,y,z) = <message text> $Draw Message (x,y,z) = <message text> IN <color> USING <font controls> <Font Controls> Type$Size$BOLD$ITALIC$Placement <Font Controls(Placement)> UL,UC,UR,CL,CC,CR,LL,LC,LR $Move Sprite (x1, y1, z1) -> (x2, y2, z2) $Move Message (x,y,z) = <message text> $Move Picture(x,y,z) = <image filename> $Erase Sprite (x,y,z) $Erase Picture(x,y,z) $Erase SmallPicture $Erase Message (x,y,z) = <message text> $Pan(X,y,z) Section Names QKeys: Controls: Signals: Sensors: Constants: Variables: Actions: SmartCabs: Speed Direction Brake Momentum

<single grid square>

LEFT, CENTER, RIGHT

*, # @.=real number, &=indirect,%=string

30 73 56 123 108 102 19

0 - 100 FORWARD, REVERSE ON, OFF 0-7

CTI Programming Language, Version 6.0.9 Commands SmartCabs: (cont.) DCC-Equipped Engines: Speed Direction Brake Momentum FL F1, F2, F28 Beacons Notes Page

0 - 127, or 0 - 28, or 0 - 14 FORWARD, REVERSE ON, OFF 0 - 127 ON, OFF, PULSE n ON, OFF, PULSE n

140 143

148

You might also like