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 “
MRO>PWR!_10\n
” command
to which the device will respond with “
MRO>PWR_10\n
”.
4.2. Description
Command
Response
Comments
Example usage
User command
Device response
Motion
|
Power - PWR, Angle - ANG, Target - TGT, Stop - STP
MRO>PWR?
MRO>PWR_X.XXX
When used in attenuator mode.
Command used to get the current
power value in percentages.
MRO>PWR?
MRO>PWR!_45.125
MRO>PWR!_X.XXX
MRO>PWR!_X.XXX
When used in attenuator mode.
Command used to set a new power
value in percentages.
MRO>PWR!_10
MRO>PWR_10.000
MRO>PWR!_45.1
MRO>PWR_45.100
MRO>PWR!_0.07
MRO>PWR_0.070
MRO>ANG?
MRO>ANG_X.XXX
Command used to get the current
angle value in degrees.
MRO>ANG?
MRO>ANG_22.143
MRO>ANG!_X.XXX
MRO>ANG_X.XXX
Command used to set the angle value
in degrees.
MRO>ANG!_22.5
MRO>ANG_22.500
MRO>TGT!_X.XXX
MRO>TGT_X.XXX
Command used to set the target in
micro-steps.
MRO>TGT!_44521
MRO>TGT_44521
MRO>TGT?
MRO>TGT_X.XXX
Command used to get the current
position in micro-steps.
MRO>TGT?
MRO>TGT_44521
MRO>STP!
MRO>STP
Command used to stop motor instantly.
Device could be used normally, homing
is not require.
MRO>STP!
MRO>STP
Homing, Calibration & Auto-go
|
Homing - HOME, Auto-homing - AHOME, Calibration - DEF, Auto-go - AUTOGO
MRO>HOME!
MRO>HOME
Command used to home the device
(motor goes to home position - TGT_0).
MRO>HOME!
MRO>HOME
MRO>AHOME!
MRO>AHOME_1
Command used to turn ON auto homing after power ON.
MRO>NOAHOME!
MRO>AHOME_0
Command used to turn OFF auto homing after power ON.
MRO>AHOME?
MRO>AHOME_0
Command used to get auto homing state. If 1 - Auto homing is enabled, 0 - disabled.
16
Содержание MRO
Страница 1: ...MANUAL v3 3 MRO MOTORISED ROTATOR KEY for DISCOVERIES ...
Страница 20: ...5 2 Serial communication example in Python 20 ...
Страница 21: ...6 Technical information 6 1 MRO drawings 21 ...
Страница 23: ...6 3 Power supply 23 ...
Страница 24: ...6 4 RS232 cables 24 ...
Страница 25: ...OPTOGAMA UAB Mokslininku str 2A LT 08412 Vilnius Lithuania 37052194884 sales optogama com www optogama com ...