Lambda beam user manual
4.2. SERIAL COMMUNICATION
4.2
Serial Communication
Overview
When the laser controller is connected to a PC and the device driver installed, it shows
up as a virtual
communication port/serial port (COM)
port and can be accessed from al-
most any programming language. A detailed description of the commands and queries
is given in the following section.
The command settings are not stored when the system is powered down.
Communication protocol
The commands and queries have the following syntax:
Commands:
command=<parameter value>
A command changes an actual setting. The syntax is the command, followed by an equal
sign and the parameter value. The parameter value is the value to be set. Commands
have no return value.
Queries:
query?
A query returns information about the device or the value of a setting. The syntax is the
query, followed by a question mark. Queries have no parameter value. A query delivers
a return value.
Return Code
A return code gives information about the processing of a command or query. There is
always a space character between the return code and the result. The return codes are
listet in
Table 4.1: Return Codes
Code
Name
Description
0
COMMAND_SUCCESS
Command successful
1
COMMAND_INVALID
Command invalid
2
PARAMETER_ERROR
Wrong numbers of parameters
3
VALUE_INVALID
Parameter value is out of range
4
CODE_INVALID
Unlocking code is wrong
5
DEVICE_LOCKED
Device is locked for this command
6
FUNCTION_NOT_SUPPORTED
This function is not supported
7
COM_TIME_OUT
Timeout while reading command (60 s)
8
VALUE_NOT_AVAILABLE
This value is currently not available
13