Page 16
4) Control command format.
If user want to write his own control software, below are data format and baud rate setting.
Com port setting:
Baud Rate:
9600 bps
Data bits:
8 bits
Parity: None
Stop bits:
1 bit
Flow control:
None
The command format as follow:
Cir + ‘_’ +
code
+ ‘ ’
↙
“Cir” is the key word, ‘_’ is Space, “Code” is the Control code, and ‘
↙
’ is carriage return. For
example:
“Cir 39
↙
” (hex: 63 69 72 20 33 39 0D 0A), when the MX0808 received this command, it will
change the Outport4 status to the next input port. (“c”-0x63,”I”-0x69,”r”-0x72,”
“-0x20,”3”-0x33,”9”-0x39, ‘
↙
’-0x0d0a)
5) Control code (MX0808-31F)
Outport1
<“
08
” >“
09
”
1“
00
” 2“
01
” 3“
02
” 4“
03
”
5“
04
” 6“
05
”
7“
06
”
8“
07
”
Outport2
<
“
18
” >
“
19
”
1 “
10
” 2
“
11
” 3
“
12
” 4
“
13
”
5“
14
” 6“
15
”
7“
16
”
8“
17
”
Outport3
<
“
28
” >
“
29
”
1 “
20
” 2
“
21
” 3
“
22
” 4
“
23
”
5“
24
” 6“
25
”
7“
26
”
8“
27
”
Outport4
<
“
38
” >
“
39
”
1 “
30
” 2
“
31
” 3
“
32
” 4
“
33
”
5“
34
” 6“
35
”
7“
36
”
8“
37
”
Outport5
<“
48
” >“
49
”
1“
40
” 2“
41
” 3“
42
” 4“
43
”
5“
44
” 6“
45
”
7“
46
”
8“
47
”