Page 37 of 79
Technical Documentation and
User Instructions
Laser Mirror Scanner LMS-Q280i
6.2 Data Format for Serial Interface
6.2.1 Data Format for Serial Interface in Programming Mode
The programming mode uses ASCII character strings to set parameters or ask
for current parameter settings. After starting programming mode with command
^P, the instrument replies with the message
*<Cr>[<Lf>]
where <Cr> means a Carriage return (0Dhex) and [<Lf>] means an optional
Line Feed (0Ahex) (<Cr> or <Cr><Lf> sequence can be selected by the user
via parameter CS) .
Basically the programming mode works with a
command / reply concept
: A
command is sent to the instrument, which answers with a reply message.
The first character(s) of the reply message always is(are)
*
- when the last command could be interpreted correctly.
- if a ^P has been sent. ^P starts or restarts the programming mode and
additionally clears the receive buffer (so when e.g. sending a ^P
after an incorrect command string part, the incorrect characters already
sent are cleared)
?
when the last command could not be interpreted because
•
the parameter value is out of range and/or
•
an array index specified is out of range
??
when the last command could not be interpreted because:
•
an unknown command was sent or
•
the parameter cannot be accessed in the current access level
=
when the value of a parameter was requested.
\
when the line is continued (the reply message consists of more than 1
lines)
Example:
Command
Reply
Meaning
T1<Cr>
*T1<Cr><Lf>
Measurement time T1
.T<Cr>
=T1<Cr><Lf>
Meas. time = T1
ABcd<Cr>
??ABCD<Cr><Lf> ABCD is not a valid command
This example assumes that the separator <Cr><Lf> is selected.
Lower case letters of a command are converted to upper case letters internally.
Line feeds <Lf>, following the <Cr> in the command string, are ignored. Spaces
are ignored and therefore may occur everywhere in the command string.