40
12.5 MEWTOCOL
12.5.1 Data format
Start bit : 1 bit
Data bit : 7 bits (8 bits)
Selectable
Parity
: Even (No parity, Odd)
Selectable
Stop bit : 1 bit (2 bits)
Selectable
12.5.2 Command configuration
MEWETOCOL of the KT4H/B uses RD and WD commands.
Writing and reading of plural word data cannot be carried out.
Be sure to read and write one word at a time because continuous reading/writing of plural data is
impossible.
All commands are composed of ASCII.
Numerals written on the command represent number of characters.
(1) RD (Word data reading) command protocol configuration
1
2
1
2
1
5
5
2
1
%
(25H)
Address
(Decimal)
#
(23H)
Command
code
RD
Data
code
D
Top
data item
(Decimal) (*)
Top
data item
(Decimal) (*)
BCC
C
R
(0DH)
(*): KT4H/B cannot read plural word data. Make sure that both top data items are the same.
Acknowledgement
1
2
1
2
4
2
1
%
(25H)
Address
(Decimal)
$
(24H)
Command
code
RD
Reading
top data
(Hexadecimal)
BCC
C
R
(0DH)
16
1
16
0
16
3
16
2
Low
High
Negative acknowledgement
1
2
1
2
2
1
%
(25H)
Address
(Decimal)
!
(21H)
Error
code
(Hexadecimal)
BCC
C
R
(0DH)
(2) WD (Word data writing) command protocol configuration
1
2
1
2
1
5
5
%
(25H)
Address
(Decimal)
#
(23H)
Command
code
WD
Data
code
D
Top
data item
(Decimal) (*)
Top
data item
(Decimal) (*)
4
2
1
Writing
top data
(Hexadecimal)
BCC
C
R
(0DH)
16
1
16
0
16
3
16
2
Low
High
(*): KT4H/B cannot read plural word data. Make sure that both top data items are the same.
Acknowledgement
1
2
1
2
2
1
%
(25H)
Address
(Decimal)
$
(24H)
Command
code
WD
BCC
C
R
(0DH)
Negative acknowledgement
1
2
1
2
2
1
%
(25H)
Address
(Decimal)
!
(21H)
Error
code
(Hexadecimal)
BCC
C
R
(0DH)