In the example code, we use the following color coding to make the code easier to understand. 


' Comments

ASCII_Command, Expected_Reply


  • Unless otherwise noted all example code is written for the Commander series of controllers. 
    • Please see the command reference for differences in the ASCII commands for the Performax series of controllers. 
  • The formatting of the ASCII program is the same for all controller series. 
  • For more information on any ASCII commands shown in the examples, please see the command reference.


Example #1           Example to demonstrate Pass/Fail flags, as well as the difference between delay commands.



Example #2        Example to demonstrate a simple product tester. Sets up the device (the input/output polarity, general purpose I/O configuration, and values for I/O). Enables the motors, moves them then homes the motors. If the motors trigger home input at zero, then unit passes. 



Example #3        Example to demonstrate a simple product burn in tester. Sets up the device (the input/output polarity, general purpose I/O configuration, and values for I/O, as well as global motion control settings). This program then moves each of the three motors through their ranges of motion. The end point is the same as the start, allowing this script to be cycled indefinitely with an auto-control script.