- 108 -
fn = 12:
Function 12 Sending the Set Communication Conditions of Serial Interface
GS ( E pL pH fn a
[Code]
<
1D
>
H
<
28
>
H
<
45
>
H
<
pL
><
pH
><
fn
><
a
>
[Range]
(
pL
+
pH×256
)=
2
(
pL
=
2
、
pH
=
0
)
fn=
12
1
≦
a
≦
4 (Does not send in other than specified range)
[Outline]
Sends communication conditions of serial interface specified by “a”.
Hex.
No. of Data
Header 37H
1
ID 33H
1
Kind of communication
conditions (a)
31H
(
“1”
)~
34H
(
“4”
)
1
Separation number
1FH
1
Set value
30H
~
39H 1
~
6
NULL 00H
1
Set value
• a = 1: At specification of baud rate
Baud
Rate
d1 d2 d3 d4 d5 d6
2400 50(“2”) 52(“4”) 48(“0”) 48(“0”) ----
----
4800 52(“4”) 56(“8”) 48(“0”) 48(“0”) ----
----
9600 57(“9”) 54(“6”) 48(“0”) 48(“0”) ----
----
19200
(Default)
49(“1”) 57(“9”) 50(“2”) 48(“0”) 48(“0”) ----
38400 51(“3”) 56(“8”) 52(“4”) 48(“0”) 48(“0”) ----
57600* 53(“5”) 55(“7”) 54(“6”) 48(“0”) 48(“0”) ----
115200* 49(“1”) 49(“1”) 53(“5”) 50(“2”) 48(“0”) 48(“0”)
• a = 2: At specification of parity
d1 Parity
Setting
48 No
parity
49 Odd
parity
50 Even
parity
• a = 3: At specification of flow control
d1 Flow
Control
48
DTR
/
DSR
49
XON
/
XOFF
• a = 4: Setting to specified data length
d1
Setting Data Length
48 7-bit
length
49 8-bit
length