
Communication Protocol and Commands Explanations
8
Zolix Instruments Co., Ltd.
http://www.zolix.com.cn E-mail:[email protected]
5. Communication Protocol and Commands Explanations
(
1
)
RS232 data transmission format:
Baudrate: 19200
Data format: no parity bit, 8 data bits, 1 stop bit (N
,
8
,
1)
(
2
)
Command format
1st Byte 2nd Byte
3rd Byte
4th Byte
Nth Byte
(N+1)th
Byte
Mth Byte
Command Separator
Parameter1
Separator
Parameter2
Ending
character
Command is made up of two characters.
Separator is “,”
Parameter
Ending character: return character ‘
↓
’ . It ‘s ASCII =0x0d (Hex) or 13 (Dec)
(
3
)
Inquiring parameters
Command from PC to SC300 : VE
↓
//
version
Command from SC300 to PC: SC300_V1.0
↓
Command from PC to SC300 : TY
↓
//
model
of
controller
Command from SC300 to PC: SC300
↓
Command from PC to SC300 : ID
↓
// the ID number of controller
Command from SC300 to PC: ID0000
↓
(
4
)
Setting the speed of the axis
Command from PC to SC300 : VX,top_speed
↓
// X axis
Command from PC to SC300 : VY,top_speed
↓
//
Y
axis
Command from PC to SC300 : VZ,top_speed
↓
// Z axis
Command from SC300 to PC: OK
↓
E0
↓
//Error 0
E1
↓
//Error 1
The “top_speed” is the speed of the stage moving.