Operating/interfacing with the optical multiplexer – Ocean Optics MPM-2000 User Manual
Page 29
![background image](/manuals/292608/29/background.png)
A: RS232 ASCII Commands
000-10000-120-1209
21
Command
Description
Example
Get Fault Status
This command returns the fault status
Bit Description
GFS
0
1
2
3
Over-temperature condition
Over-current condition
Under-voltage (<10VDC)
Over-voltage (>32VDC)
GFS[CR]
ANSW
Asynchronous answer ON / OFF
ANSW1 activated
ANSW0 deactivated
ANSW0[CR]
GPROGSEQ
This command returns the complete program sequence stored in
the EEPROM
GPROGSEQ[CR]
Operating/Interfacing with the Optical Multiplexer
The software needs to execute the following steps:
1. Read the complete program out of the EEPROM in the multiplexer
2. Extract the Serial number of the MPM-2000
3. Extract the position for each channel out of the file and save them for example in an array
4. Set the position for any of the channels
The program can be read with the GPROGSEQ command. It will look like the sample program. Only the
software version, the serial number and the positions will change with each device.
Check for an MPM-2000 by looking for the serial number as follows:
MPM-2000 1x16:
03918XXXX
MPM-2000 2x8:
05046XXXX
Where XXXX = a running serial number
The positions are stored in the file as follows:
CH01-500
Channel 1, absolute position –500
CH133000
Channel 13, absolute position 3000
Once the positions are extracted and stored you can set the position of the motor with the command
sequence:
LAPosition[CR]
M[CR]