2.7.1 Program Development
Commander core utilizes A-Script, a BASIC-like language that helps the programmer quickly write programs for motion control projects, including conditional statements (IF, ELSE, ELSEIF, ENDIF, WHILE, ENDWHILE), subroutines, and mathematical and logical expressions (=, !=, <, >, <=, >=, +, -, *, /). Single-line comments are available and start with ; and continue until the end of the line. The programming syntax uses a series of standalone commands, listed in section 5.2 Standalone Command Set, that allows the programmer to build single and multi-thread programs that can be compiled and run in the controller. By writing lines of code using the set of commands that make up the A-Script language, set-up, control of motion, management of inputs and outputs, and error handling can all be addressed. A basic program consists of a start line (PRGxx) and an end line (END). All code is written between the PRG and END lines. Use the Utility software to write, compile, download, upload, and execute programs.
< Topic Home | Home | Next Section >