
9. Commands
9.1. Interface
The MEX can be controlled using either
USB 2.0
or
RS-232
interface. The device will switch to the required
interface upon connection of the appropriate cable.
When using the RS-232 interface, MEX communicates on
the
configured Baud rate (by default 57600)
(see
Command descriptions), using
8 data bits, no parity and
1 stop bit
.
When the device is connected to the PC through the USB
interface, it will appear as a
Virtual Serial COM port
, so
all PC side communications are interchangeable between
the two interfaces.
All communications with MEX are conducted by sending
literal ASCII string commands terminated with the
newline character \n
. For example, the beam expansion
coefficient can be set to 2.5 by issuing a “
MEX>MAG!
_2.5\n
” command to which the device will respond with
“
MEX>MAG_2.5\n
”.
9.2. Description
Command
Response
Comments
Example usage
User command
Device response
Motion
|
Magnification - MAG, Magnification o
ff
set - MOF,
Divergence o
ff
set - DOF
MEX>MAG?
MEX>MAG_X.XXX
Command used to get the current
magnification value from the device.
MEX>MAG?
MEX>MAG_1.250
MEX>MAG!_X.XXX
MEX>MAG_X.XXX
Command used to set a new magnification
values.
MEX>MAG!_2
MEX>MAG_2.000
MEX>MAG!_2.5
MEX>MAG_2.500
MEX>MAG!_2.547
MEX>MAG_2.547
MEX>MOF?
MEX>MOF_X.XXX
Command used to get current magnification
adjustment coefficient (0 - means the lenses
in the device is in their theoretical positions)
MEX>MOF?
MEX>MOF_0.3
MEX>MOF!_X.XXX
MEX>MOF_X.XXX
Command used to adjust magnification
values:
+ to increase magnification
- to decrease magnification
(For. Ex. 1X magnification value (MAG_1) is
chosen, but according to your laser beam
parameters 1.09X actual magnification value
is reached, so to calibrate magnification to
required value MEX>MOF_-0.7 command
must be sent)
MEX>MOF!_-0.7
MEX>MOF_-0.7
MEX>DOF?
MEX>DOF_X.XXX
Command used to get current divergence
adjustment coefficient (0 - means the lenses
in the device is in their theoretical positions)
MEX>DOF?
MEX>DOF_1.6
15
Содержание MEX13-HP
Страница 1: ...MANUAL v8 HIGH POWER MOTORISED BEAM EXPANDERS 1x 3x 1x 5x MEX13 HP MEX15 HP KEY for DISCOVERIES ...
Страница 18: ...9 3 Serial communication example in Python 18 ...
Страница 21: ...OPTOGAMA UAB Mokslininku str 2A LT 08412 Vilnius Lithuania 37052194884 sales optogama com www optogama com ...