Command set, Ommand – Quantum Composers AF910 User Manual
Page 26

Page 26
AF910 Manual Version 1.4
Command Set
Device Command Format
All commands use ASCII characters and are composed of the following fields:
Field
Description
Prefix
Single semicolon character ";", must precede all commands. All devices
will reset their command input buffer when the prefix is received.
Address
2 ASCII characters. Each device has a unique address which is
programmed into its firmware. See the table below for a list of addresses.
Delimiter
Single colon character “:”, must follow device address.
Command
String
Commands are specific to each device -- see the following sections for
the commands that each device supports.
Parameters
(optional field) Some commands may have parameters which
immediately follow the command string. Multiple parameters are
separated by commas.
Terminator
ASCII carriage return character (decimal value 13). The receiving device
does not process any commands until the terminator is received.
Device Address
Address
Device
AF
Auto Focus Controller
Command Types
There are two types of commands -- those that set a value or initiate an actions (control
commands), and those that request information (query commands). Each device must
respond in the proper manner to each type of command.
Control Commands
A device must always parse a control command and return a response immediately.
If the command is a recognized command and the parameter is valid, then the device
returns an "OK
If the command is not recognized by the device, then it responds with "?1
If the command is recognized, but the parameter value is missing or invalid, then the
device responds with a "?2
If the command is recognized, but the parameter is out of range, then the device
responds with a “?3