On this page you will find the template for every command that the MECControl software understands, plus the shorthand versions of each command which will save you tedious typing once you are familiar with them.
Commands are not case-sensitive, and most can be abbreviated to three letters or fewer.
In the following reference, grouped parts of a command are shown enclosed in parentheses (), optional parts of a command are shown enclosed in square brackets [ ], repeatable parts of a command are followed by plus +, and possible options are shown separated by a bar symbol |.
Template:
Accelerate <Device> [To <Speed>|<Variable> Percent] [Clockwise|Counterclockwise|Anticlockwise|<Action>] [Over <Time>|<Variable> Second(s)]
Shorthand:
Acc <Device> [<Speed>|<Variable>] [CW|CCW|ACW|<Action>] [<Time>|<Variable>]
Template:
Activate <Device>
Shorthand:
Act <Device>
Template:
Board Arduino/Genuino Mega|Uno
Shorthand:
Boa Meg|Uno
Template:
Clear (Display [To Black|Red|Green|Blue|Magenta|Yellow|Cyan|Violet|PaleGreen|PaleBlue|Orange|Pink|White| Maroon|Olive|DarkGreen|Teal|DarkBlue|Purple|Gray|Grey|#<Hex>])|(Circle|Line|Rectangle|Writing At <X>|<Variable>, <Y>|<Variable>)
Shorthand:
Cle (Dis [K|R|G|B|M|Y|C|V|PG|PB|O|I|W|MA|OL|DG|TE|DB|PU|GY|#<Hex>])|(Cir|Lin|Rec|Wri <X>|<Variable> <Y>|<Variable>)
Template and shorthand:
-- <Comment>
Template:
Connect <Name> <Device> To <Pin(s)>[.<ChainPosition>] [As Current Sink|Source] [With Action(s) <Action> [<Action>] [<Action>]]
Shorthand:
Con <Name> <Device> <Pin(s)>[.<ChainPosition>] [Sin|Sou] [<Action>] [<Action>] [<Action>]
The Device may be any of the following:
Template:
Deactivate <Device>
Shorthand:
Dea <Device>
Template:
Decelerate <Device> [To <Speed>|<Variable> Percent] [Clockwise|Counterclockwise|Anticlockwise|<Action>] [Over <Time>|<Variable> Second(s)]
Shorthand:
Dec <Device> [<Speed>|<Variable>] [CW|CCW|ACW|<Action>] [<Time>|<Variable>]
Template:
Disable <Device>
Shorthand:
Dis <Device>
Template:
Draw (Line From <X>|<Variable>, <Y>|<Variable> To <X>|<Variable>, <Y>|<Variable>)|((Circle With <Radius>|<Variable> Pixel(s) Radius)|(Rectangle <Width>|<Variable> Pixel(s) Wide And <Height>|<Variable> Pixel(s) High) [Centred] At <X>|<Variable>, <Y>|<Variable>)
Shorthand:
Dra (Lin <X>|<Variable> <Y>|<Variable> <X>|<Variable> <Y>|<Variable>)|((Cir <Radius>|<Variable>)|(Rec <Width>|<Variable> <Height>|<Variable>) [Cen] <X>|<Variable> <Y>|<Variable>)
Template:
Fade <Device> [To <Brightness>|<Variable> Percent] [Black|Red|Green|Blue|Magenta|Yellow|Cyan|Violet|PaleGreen|PaleBlue|Orange|Pink|White|<Action>] [Over <Time>|<Variable> Second(s)]
Shorthand:
Fad <Device> [<Brightness>|<Variable>] [K|R|G|B|M|Y|C|V|PG|PB|O|P|W|<Action>] [<Time>|<Variable>]
Template:
Jump To <Label> [If|Until (<Device> Position <|<=|=|>=|>|<> <Number>|<Variable> Degree(s)|Percent)|(<Device> On|Off|High|Low|Pressed|Released|<Action>)|(<Variable> <|<=|=|>=|>|<> <Number>|<Variable>)|(<Key>|Any|No Key Pressed)]
Shorthand:
Jum <Label> [If|Unt (<Device> Pos <|<=|=|>=|>|<> <Number>|<Variable>)|(<Device> On|Off|H|L|P|R|<Action>)|(<Variable> <|<=|=|>=|>|<> <Number>|<Variable>)|(<Key>|Any|No Key)]
The Key may be any of the following:
Template:
Label <Name>
Shorthand:
Lab <Name>
Template:
Let <Variable> = ((<DeviceA> Position)|<NumberA>|<VariableA> [+|-|*|/ (<DeviceB> Position)|<NumberB>|<VariableB>])|(Absolute|Arccosine|Arcsine|Arctangent|Ceiling|Cosine|Floor|Round|Sine|Square Root|Tangent (<Device> Position)|<Number>|<Variable>)
Shorthand:
Let <Variable> = ((<DeviceA> Pos)|<NumberA>|<VariableA> [+|-|*|/ (<DeviceB> Pos)|<NumberB>|<VariableB>])|(Abs|Arccos|Arcsin|Arctan|Cei|Cos|Flo|Rou|Sin|Squ|Tan (<Device> Pos)|<Number>|<Variable>)
Template:
Light <Device> [<Brightness>|<Variable> Percent] [Black|Red|Green|Blue|Magenta|Yellow|Cyan|Violet|PaleGreen|PaleBlue|Orange|Pink|White|<Action>]
Shorthand:
Lig <Device> [<Brightness>|<Variable>] [K|R|G|B|M|Y|C|V|PG|PB|O|P|W|<Action>]
Template:
Move <Device> (Clockwise|Counterclockwise|Anticlockwise|<Action> By|To <Number>|<Variable> Degree(s)|Step(s))|(To Centre) [(At <Speed>|<Variable> Steps Per Second)|(Over <Time>|<Variable> Second(s))]
Shorthand:
Mov <Device> (CW|CCW|ACW|<Action> By|To <Number>|<Variable>)|Cen [(At <Speed>|<Variable>)|(Over <Time>|<Variable>)]
Template:
Return From Subroutine
Shorthand:
Ret
Template:
Run <Device> [At <Speed>|<Variable> Percent] [Clockwise|Counterclockwise|Anticlockwise|<Action>]
Shorthand:
Run <Device> [<Speed>|<Variable>] [CW|CCW|ACW|<Action>]
Template:
Subroutine <Name>
Shorthand:
Sub <Name>
Template:
Stop [And Reset]|[<Device> [Over <Time>|<Variable> Second(s)]]
Shorthand:
Sto [Res]|[<Device> [<Time>|<Variable>]]
Template:
Use (([Black|Red|Green|Blue|Magenta|Yellow|Cyan|Violet|PaleGreen|PaleBlue|Orange|Pink|White| Maroon|Olive|DarkGreen|Teal|DarkBlue|Purple|Gray|Grey|#<Hex>] [<Thickness>|<Variable> Pixels Thick])|No Stroke)|(Black|Red|Green|Blue|Magenta|Yellow|Cyan|Violet|PaleGreen|PaleBlue|Orange|Pink|White| Maroon|Olive|DarkGreen|Teal|DarkBlue|Purple|Gray|Grey|#<Hex>|No Fill)|([Black|Red|Green|Blue|Magenta|Yellow|Cyan|Violet|PaleGreen|PaleBlue|Orange|Pink|White| Maroon|Olive|DarkGreen|Teal|DarkBlue|Purple|Gray|Grey|#<Hex>] [<Size> Points <Font>] Font)
Shorthand:
Use (([K|R|G|B|M|Y|C|V|PG|PB|O|I|W|MA|OL|DG|TE|DB|PU|GY|#<Hex>] [<Thickness>|<Variable>])|No Str)|(K|R|G|B|M|Y|C|V|PG|PB|O|I|W|MA|OL|DG|TE|DB|PU|GY|#<Hex>|No Fil)|([K|R|G|B|M|Y|C|V|PG|PB|O|I|W|MA|OL|DG|TE|DB|PU|GY|#<Hex>] [<Size> <Font>] Fon)
Template:
Wait ((For <Device> Position <|<=|=|>=|>|<> <Number>|<Variable> Degree(s)|Percent)|(For <Device> On|Off|High|Low|Pressed|Released|<Action>)|(For Keypress) [For <Time>|<Variable> Second(s)])|(For <Time>|<Variable> Second(s))
Shorthand:
Wai ((<Device> Pos <|<=|=|>=|>|<> <Number>|<Variable>)|(<Device> On|Off|H|L|P|R|<Action>)|Key [<Time>|<Variable>])|(<Time>|<Variable>)
Template:
Write ("<Text>"|<Variable>)+ [Centred] At <X>|<Variable>, <Y>|<Variable>]
Shorthand:
Wri ("<Text>"|<Variable>)+ [Cen] <X>|<Variable> <Y>|<Variable>]