AeroScript Programming Language

AeroScript is an easy-to-use scripting language that runs in the real-time environment of the Automation1 controller. AeroScript supports many features of high-level programming languages such as C, Visual Basic, Python, and MATLAB. It is simple to use and easy to learn. The language also supports many G-code and M-code commands. You can run an AeroScript program on any of the user tasks that the controller supplies.

Some AeroScript capabilities include:

  • Several RS-274 compatible G-codes and M-codes
  • Variables and data types
  • Built-in data types (integer, real, axis, handle, string (UTF-8))
  • User-defined data types (structures, enumerations)
  • Arrays and Programming constructs
  • Conditionals: if/elseif/else, switch/case
  • Looping: while, repeat, for, foreach
  • User-defined functions and scoped variables
  • User-defined properties
  • User-defined libraries
  • Built-in Automation1 API
    • Math
    • Motion
    • Analog and Digital I/O
    • Files
    • Strings
    • Transformations
    • Custom Callbacks

Source files for AeroScript programs and libraries must use the UTF-8 encoding.

Use the lists of Properties, Enums, and Functions to write your own AeroScript program. When you start to type in the Programming module, the autocomplete feature will help you find what you need to use.

For more details, see AeroScript Programming Language Reference. Also see these AeroScript programming concepts:

Or, you can start with one of the supplied AeroScript Example Programs.