Maiman Electronics
MBL1500B
17
Digital control description
16.
When the input voltage applied the driver is always in “analogue current set, external
enable and allowing interlock” state. Any other state should be set any time after
powering the driver if needed.
Default serial port settings:
Baud rate
Data bits
Stop bits
Parity
Flow control
115200
8
1
none
none
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.
Table 12. 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 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, 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.
Table 13. 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 parameter
Hex-number of the parameter. For example,
0100h
6
‘return carriage’ symbol <CR> (0Dh)
End of the command
Table 14. The format of the response
Number of
byte
Value
Comment
1
K (4Bh)
Response prefix
2-5
Number of 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.