Table of Contents

Advertisement

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
%
Address
(25H)
(Decimal)
(*): KT4H/B cannot read plural word data. Make sure that both top data items are the same.
Acknowledgement
1
2
%
Address
(25H)
(Decimal)
Negative acknowledgement
1
2
%
Address
(25H)
(Decimal)
(2) WD (Word data writing) command protocol configuration
1
2
%
Address
(25H)
(Decimal)
(*): KT4H/B cannot read plural word data. Make sure that both top data items are the same.
Acknowledgement
1
%
Address
(25H)
(Decimal)
Negative acknowledgement
1
2
%
Address
(25H)
(Decimal)
1
2
Command
#
code
(23H)
RD
1
2
Command
$
code
(24H)
RD
1
2
Error
!
code
(21H)
(Hexadecimal)
1
2
Command
#
code
(23H)
WD
2
1
2
Command
$
code
(24H)
WD
1
2
Error
!
code
(21H)
(Hexadecimal)
1
5
Data
Top
code
data item
D
(Decimal) (*)
4
2
Reading
top data
BCC
(Hexadecimal)
1
0
3
2
16
16
16
16
Low
High
2
1
C
R
BCC
(0DH)
1
5
Data
Top
code
data item
D
(Decimal) (*)
2
1
C
R
BCC
(0DH)
2
1
C
R
BCC
(0DH)
40
5
2
Top
data item
BCC
(Decimal) (*)
1
C
R
(0DH)
5
Top
data item
(Decimal) (*)
4
2
Writing
top data
BCC
(Hexadecimal)
1
0
3
2
16
16
16
16
Low
High
1
C
R
(0DH)
1
C
R
(0DH)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Kt4b

Table of Contents