Controller Information Functions
Controller information functions return information about the configuration of the controller. They can be used to identify the controller and the version of the Automation1 software running on it.
Use the ControllerGetName()
function to get the name of the controller. If the name of the controller is more than 20,000 characters, this function sets a task error.
function ControllerGetName() as string
Returns the name of the controller.
Returns
The name of the controller.
IMPORTANT: There is not a related AeroScript function that you can use to set the name of the controller. To change the name of your controller, use Machine Setup.
Use the ControllerGetSerialNumber()
function to get the serial number of the controller. On a drive-based controller, this function returns the serial number of the controller set by Aerotech. On a PC-based controller, this functions returns the name of the PC.
function ControllerGetSerialNumber() as string
Returns the serial number of the controller.
Returns
The serial number of the controller.
Use the ControllerGetVersion()
function to get the software version of the controller. The version is returned in the format of X.Y.Z, where X is the major version number, Y is the minor version number, and Z is the patch number.
function ControllerGetVersion() as string
Returns the software version of the controller.
Returns
The software version of the controller.