AeroScript Reference
AeroScript is an easy-to-use programming language that works with your Automation1 controller. Some features of AeroScript include:
- Many RS-274 compatible G-codes, M-codes, and user-defined G-codes
- Variables and data types
- Built-in data types (integer, real, axis, handle, string (UTF-8))
- User-defined data types (structures, enumerations)
- Arrays
- Standard programming concepts
- Math
- Files and directories
- Strings
- Data type conversion
- 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
- Motion
- Analog and digital I/O
- Transformations
- Custom callbacks
Source files for AeroScript programs and libraries must use the UTF-8 encoding.
To learn about the basic components that you need to write your first AeroScript program, refer to Structure of a Program. Refer to the pages that follow to learn about the syntax and structure of AeroScript programs and libraries:
- Structure of a Program
- Comments and Whitespace
- Metadata Comments
- Preprocessor
- Data Types and Variables
- Expressions
- Statements
- Functions
- Libraries
- Reserved Keywords
- Axis Naming Conventions
- Valid Identifier Format
- Valid Variable Name Format
- G-Code Commands
You can learn how to convert AeroScript programs from the A3200, Ensemble, or Soloist products into AeroScript by using AeroScript Equivalents of AeroBasic Commands for the A3200 and AeroScript Equivalents of AeroBasic Commands for the Ensemble and Soloist.
Use the lists of AeroScript Functions, AeroScript Enums, AeroScript Properties, and G-Code Commands pages to help you write your own AeroScript program. When you start to type in the Programming module in Automation1, the autocomplete feature can help you with correct syntax, function names, global variables, and more.
Refer to Basic AeroScript Functions to learn more about completing basic programming tasks with AeroScript.



