Syntax – Ocean Optics MPM-2000 User Manual
Page 28

A: RS232 ASCII Commands
20
000-10000-120-02-1209
Syntax
Every command sent via RS232 to the MPM-2000 consists of the following parts:
Command sequence, Parameter (if needed), Carriage Return [CR]
To set an absolute position you need to send:
LA1000[CR]
// Load absolute position 1000
M[CR]
// initiate motion
Command
Description
Example
M
Initiate Motion (Move)
M[CR]
LA
Load absolute target position
Allows programming of the desired target position relative to the
present zero or "home" position.
LA1000[CR]
M[CR]
POS
Get actual position
This command returns the actual position
POS[CR]
Get Status
This command returns motion controller status.
Bit Description
GST
0
1
2
3
4
5
6
1 Position mode
0 velocity mode
1 Speed command is analog input
0 Speed command comes via RS232
1 Speed command is PWM (SOR2)
0 Speed command is analog voltage (SOR1)
1 amplifier enabled
0 amplifier disabled
1 in position
0 not in position
1 rising edge on external switch is valid
0 falling edge on external switch is valid
1 external switch now high level
0 external switch now low level
GST[CR]