4. Commands
4.1. Interface
The device 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, the controller
communicates on the
configured baud rate
(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 the device are conducted by
sending
literal ASCII string commands terminated with
the newline character \n
. For example, the power can
be set to 10% by issuing a “
LPA>PWR!_10\n
” command
to which the device will respond with “
LPA>PWR_10\n
”.
4.2. Description
Command
Response
Comments
Example usage
User command
Device response
Motion
|
Power - PWR, Angle - ANG, Stop - STP
LPA>PWR?
LPA>PWR_X.XXX
Command used to get the current power
value in percentages. (Read and
calculated from absolute encoder)
LPA>PWR?
LPA>PWR!_45.125
LPA>PWR!_X.XXX
LPA>PWR!_X.XXX
Command used to set a new power value
in percentages.
LPA>PWR!_10
LPA>PWR_10.000
LPA>PWR!_45.1
LPA>PWR_45.100
LPA>PWR!_0.07
LPA>PWR_0.070
LPA>ANG?
LPA>ANG_X.XXX
Command used to get the current angle
value in degrees. (Read from absolute
encoder, 0-360 deg)
LPA>ANG?
LPA>ANG_22.143
LPA>ANG!_X.XXX
LPA>ANG_X.XXX
Command used to set the angle value in
degrees (0-360)
LPA>ANG!_22.5
LPA>ANG_22.500
LPA>STP!
LPA>STP
Command used to stop motor instantly.
Device could be used normally, homing is
not require.
LPA>STP!
LPA>STP
Calibration
|
Calibration - DEF
LPA>DEF!
LPA>DEF_offset
Command used to define current
waveplate position as minimum power
position. Used for calibration.
LPA>DEF!
LPA>DEF_34.067
LPA>DEF?
LPA>DEF_offset
Command used to get an offset value
from zero to minimum power. Used for
calibration.
LPA>DEF?
LPA>DEF_34.067
Settings
|
Baud rate - BAUD, Buttons lock - KEYLOCK, Default settings - LDF
LPA>BAUD?
LPA>BAUD_baud rate
Command used to get baud rate.
LPA>BAUD?
LPA>BAUD_115200
LPA>BAUD!_baud rate
LPA>BAUD_baud rate
Command used to set baud rate.
115200
by default. Available speeds:
115200, 57600, 38400,
19200, 9600, 4800.
Other values are ignored.
LPA>BAUD!_57600
LPA>BAUD_57600
LPA>LDF!
LPA>LDF
Command used to load default settings. Device after this command
must be
recalibrated
.
13
Содержание LPA-A v2 Series
Страница 15: ...4 3 Serial communication example in Python 15 ...
Страница 16: ...5 Technical drawings 16 ...
Страница 17: ...17 ...
Страница 18: ...OPTOGAMA UAB Mokslininku str 2A LT 08412 Vilnius Lithuania 37052194884 sales optogama com www optogama com ...