You are on page 1of 5

SHENZHEN JPT OPTO-ELECTRONICS CO.,LTD.

JPT new laser usb port command structure


1、 Initialization:
Baud rate: 57600bits/s (Can be changed)
Parity bit/Flow control: None
Start/Stop bits:8 data bits, 1start bit and 1 Stop bit
2、 Command structure(ASCII codes)

$ Command code ; Parameters *(hex:2A)

3、 Laser reply structure(ASCII code)

$ Command code ; Parameters *(hex:2A)


4、 Command code is decimal ASCII code,See【Table.0】
5、 Command parameter is a text string. If the parameter is a numerical value, it should be
converted into a decimal ASCII String.
6、 The returned value is also a text string. If the requested value is numerical, the oppsite
conversion from text string to the numerical value is required.
7、 All commands should be terminated by “*” symbol, hex valve“2A”the RS-232C buffer
of the laser receives bytes until the * symbol occurs. All bytes before this symbol are
interpreted as a command. Bytes after * until next * will be interpreted as a text
command.
8、 For all strings send to the laser, which were not recognized as valid commands, the laser
sends “E” as parameter. EG:$1;*, Return E
9、 All commands are not allowed to send to the laser during emitting except laser off and
power setting commands. If sending commands to the laser during emitting, the laser
will return $_; E*.
10、 All the setting parameters should be filled with “0” if the bytes are not enough. EG.
Setting default pulse width to 20ns: $34;020*

1/5
SHENZHEN JPT OPTO-ELECTRONICS CO.,LTD.

【Table.0】
Command
Type Command Return value Description
code
Read serial numbers of the
read SN 10 (11 characters)
laser
read Software version 11 (33 characters) Read hardware version
Value=0-255, 8bits power
DB25_input power
read 12 (3 characters) setting receive from db25
monitor
interface
Laser output
read 13 (3 characters) Value=0-100, unit:%
power
read DB25_PA status 15 (1 characters) Value=1 or 0, 1: on, 0:off
read DB25_MO status 14 (5 characters) Value=1 or 0, 1: on, 0:off

read Pulse width 16 (3 characters) Value=1-350


read Frequency 17 (3 characters) Value=1-999, unit: kHz
Temperature
read 18 (5 characters) see【table.1】
monitor
read Alarm times 19 (12 characters) see【table.2】
read PUMP temp 20 (2 characters) Value=0-99, unit:℃
read Default SIMMER 21 (2 characters) Value=1-max simmer
read Max SIMMER 22 (2 characters) Value=1-50
read Default frequency 23 (3 characters) Value=1-999, unit: kHz
Default pulse
read 24 (3 characters) Value=1-350, unit: ns
width
Inner/ex frequency Value=1 or 0, 1: EX PRR,
read 25 (1 characters)
control state 0:Inner PRR
Control mode
read 26 (2 characters) Value=0-15, see【table.3】
selection
SET Power 27 (3 characters) Value=0-100, unit:%
SET Frequency 28 (3 characters) Value=1-999, unit: kHz
SET Pulse width 29 (3 characters) Value=1-350, unit: ns
SET PA 30 (1 characters) Value=1 or 0, 1: on, 0:off
Control mode
SET 31 (2 characters) Value=0-15
selection
Inner/ex frequency Value=1 or 0, 1: EX PRR,
SET 32 (1 characters)
control state 0:Inner PRR
SET Default frequency 33 (3 characters) Value=1-999, unit: kHz
Default pulse
SET 34 (3 characters) Value=1-350
width
SET Default simmer 35 (2 characters) Value=0-max simmer
read Board temp 37 (2 characters) Value=0-99,unit:℃

2/5
SHENZHEN JPT OPTO-ELECTRONICS CO.,LTD.

SET MO 38 (1 characters) Value=1 or 0, 1: on, 0: off


Power monitoring
SET 39 (3 characters) Value=0 or 255
slope
Power monitoring
SET 40 (3 characters) Value=0 or 2555
intercept
Power monitoring
read 41 (3 characters) Value=0 or 255
slope
Power monitoring
read 42 (3 characters) Value=0 or 255
intercept
SET Baud rate 43 (1 characters) Value=0-3, see【table.4】

【Table.0】State
GUI_MO ($38) and GUI laser on_ PA($30), Combination switch state
When only sending command of PA signal ($30;1*),laser will generate MO
signal after laser receives this command, and generating Pa signal again after 8ms, the
laser will be on.
When only sending command of MO signal ($38;1*),laser will generate MO
signal after it receives this command, and generating MO signal, then laser will be on
when it received PA signal($30;1*).
The relationship about power monitoring slope (k), power monitoring intercept
(b) and laser power$13 (y).
y=kx+b; among them x is the laser internal pump current sampling values.

【Table1】$18 retune alarm explain


Type of
Bytes State Description
message
Light path temperature
1
alarm
1 Alarm
Light path temperature no
0
alarm
1 Circuit temperature alarm
2 Alarm
0 Circuit temperature no alarm
1 Low level of current alarm
3 Alarm
0 Class I no current low alarm
1 Seed source TEC alarm
4 Alarm
0 Seed source no TEC alarm
1 Seed source pulse leak alarm
5 Seed source no pulse leak Alarm
0
alarm
1 24v power supply low alarm
6 24v no power supply low Alarm
0
alarm
EG.:send$18;*//read alarm
retune$18;100000*
3/5
SHENZHEN JPT OPTO-ELECTRONICS CO.,LTD.

Explanation:light path temperature alarm,others with no


alarm

【Table3】$26,$31 return value of setting command


Return value is decimal number. Need to transfer to binary
code.
Type of
bytes state description
command
1 GUI control power
1 Setting
0 DB25 control power
1 GUI control pulse width
2 Setting
0 DB25 control pulse width
1 GUI control frequency
3 Setting
0 DB25 control frequency
1 GUI control emitting
4 Setting
0 DB25 control emitting
EG:$26;*//Read control mode
Return:$26;4*
Explanation:Decimal number 4 turn to binary code=0100,So it
means,Only pulse width is controlled by RS232.The others are
controlled by DB25 interface.

4/5
SHENZHEN JPT OPTO-ELECTRONICS CO.,LTD.

【Table 2】$19 Explanation of command return


value of alarm times
Type of
Byte Value
Message
1 Light path temperature 【Table.4】$43 Baud Rate Table
Value
2 alarm times Return
3 Circuit temperature alarm Value Baud Rate
Value value
4 times 0 9600 9600
5 Class I current low alarm 1 19200 19200
Value
6 times 2 57600 57600
7 Seed source TEC alarm 3 115200 115200
Value
8 times Others Save before E
9 For example:Send $43;1*
Seed source pulse leak
Value Return $43;19200*
10 alarm times
Send $43;4*
11 24v power supply low Return $43;E*
Value
12 alarm times
For example:Send $19;*//Read alert times
Return $19;121314150000*
Explanation:light path temperature alarm 12
times
Circuit temperature alarm 13 times
Class I current low alarm 14 times
Seed source TEC alarm 15 times
Seed source pulse leak alarm 00 times
24v power supply low alarm 00 times

5/5

You might also like