![MAIMAN ELECTRONICS SF6030 User Manual Download Page 14](http://html1.mh-extra.com/html/maiman-electronics/sf6030/sf6030_user-manual_3693923014.webp)
Maiman Electronics
SF6030
13
Data exchange between the driver and the PC is only initiated by the PC. All commands are
sent in plain text format. All commands are sent with prefix. Number of command follows the
prefix without any symbols. If there is the value after the command they separates with “space”
symbol. The command ends with “carriage return” symbol.
The format of the command to set the value (P-type);
Number of byte
Value
Comment
1
P (50h)
Set prefix
2-5
Number of the parameter
Hex-number of the parameter. For
example, 0100h
6
‘space’ symbol (20h)
7-10
New value of the parameter
Hex-value of the parameter. For example,
0000h
11
‘return carriage’ symbol<CR> (0Dh)
End of the command
The device does not respond to P-type commands by default. (see section “the protocol
extension”)
You can request the value of parameter by the J-type command. The device will return a
value of requested parameter.
The format of the command to get the value (J-type)
Number of byte
Value
Comment
1
J (4Ah)
Request prefix
2-5
Number of the parameter
Hex-number of the parameter. For
example, 0100h
6
‘return carriage’ symbol<CR> (0Dh)
End of the command
The format of the response
Number of byte
Value
Comment
1
K (4Bh)
Response prefix
2-5
Number of the parameter
Hex-number of the requested parameter
6
‘space’ symbol (20h)
7-10
Returned value of the parameter
Hex-value of the parameter
11
‘return carriage’ symbol<CR> (0Dh)
End of the command
If the device could not recognize a command, it returns an error message with error code.
The format and codes of errors
Error (returned
command)
Reasons (one or few)
E0000
1) Internal buffer of device is overflowed.
2) Cannot find <CR> (0x0D) or\and <LF> (0x0A).
3) Format of command is invalid.
E0001
1) Unknown command (it does not P- or J-type command).
2) The device failed to correctly interpret a command.
E0002
The CRC of received command (see section “the protocol extension”).
K0000 0000
Request or set the parameter that does not exist.