RESI®
Title:
RESI-KNX-xxx manual
Date
Page
of
12.12.2018
36
60
.
P
ro
p
ri
e
ta
ry
d
a
ta
,
co
m
p
a
n
y
co
n
fid
e
n
tia
l.
A
ll
r
ig
h
ts
re
se
rv
e
d
.
C
o
n
fié
à
tit
re
d
e
se
c
re
t
d
'e
n
tr
e
p
ri
s
e
.
T
o
u
s
d
ro
its
r
é
se
rv
é
s
.
C
o
m
u
n
ic
a
d
o
c
o
m
o
se
g
re
d
o
e
m
p
re
sa
ri
a
l.
R
e
se
rv
a
d
o
s
to
d
o
s
o
s
d
ir
e
ito
s.
C
o
n
fid
a
d
o
co
m
o
s
e
cr
e
to
i
nd
u
st
ri
a
l.
N
o
s
re
se
rv
a
m
o
s
t
o
d
o
s
l
o
s
d
e
re
c
ho
s.
.
.
W
e
it
e
rg
a
b
e
s
o
w
ie
V
e
r
v
ie
lf
ä
lt
ig
u
n
g
d
ie
s
e
r
U
n
te
rl
a
g
e
,
V
e
r-
w
e
rt
u
n
g
u
n
d
M
it
te
ilu
n
g
ih
re
s
In
h
a
lt
s
n
ic
h
t
g
e
s
ta
tt
e
t,
s
o
w
e
it
n
ic
h
t
a
u
s
d
r
ü
c
k
lic
h
z
u
g
e
s
ta
n
d
e
n
.
Z
u
w
id
e
rh
a
n
d
lu
n
g
e
n
v
e
r-
p
fl
ic
h
te
n
z
u
S
c
h
a
d
e
n
e
rs
a
tz
.
A
ll
e
R
e
c
h
te
v
o
rb
e
h
a
lt
e
n
,
in
s
b
e
-
s
o
n
d
e
re
fü
r
d
e
n
F
a
ll
d
e
r
P
a
te
n
te
rt
e
il
u
n
g
o
d
e
r
G
M
-E
in
tr
a
g
u
n
g
.
.
10 Functional Description
The RESI-KNX-MODBUS and RESI-KNX-ASCII gateways communicate with a host system with the
MODBUS/RTU slave protocol. The RESI-KNX-ASCII version of the module offer an additional protocol: An
ASCII slave protocol with simple text string. The communication runs over a RS485 interface (half duplex) or
over a RS232 interface (full duplex).
For the communication with ASCII texts, the host sends ASCII messages with a special start character #
(0x23, 35dec) and a special end character (0x0d,13dec or CARRIAGE RETURN) to the module. The module
uses also this special start and end characters to answer to the host request. Consult the below noted detailed
command descriptions. In the ASCII protocol mode, the host can send messages with or without a bus
number.
For communication with the MODBUS/RTU slave, the module offers the following MODBUS functions:
READ HOLDING REGISTER (function code: 3)
PRESET SINGLE REGISTER (function code: 6)
PRESET MULTIPLE REGISTERS (function code: 16)
HINT:
The functions READ HOLDING REGISTER and PRESET MULTIPLE REGISTERS are restricted to max. 125
register per request!
10.1 ASCII protocol description
10.1.1 Overview
The IO module communicates with simple ASCII commands. The following special characters are used in this
documentation:
#
stand for the
Hashtag
ASCII character 35dec or 0x23
:
stand for the
colon
ASCII character 58dec or 0x3A
=
stand for the
equal sign
with the ASCII code 61ec or 0x3D
-
stand for the
minus sign
with the
ASCII code 45dec or 0x2D
,
stands for the
comma
with the ASCII code 44dec or 0x2C
<CR>
stand for
CARRIAGE RETURN
ASCII character 13dec or 0x0D. In the following text we use the
representation
CR
.
<SP>
stands for the
SPACE
. This is the space character with the ASCII code 32dec or 0x20. In the following text
we will use the representation
.
<ADR>
will be used as the current
bus address
of the module. The bus number can be transmitted decimal or
hexadecimal and is separated with a comma (ASCII code 44dec or 0x2C) from the rest of the command.
Hexadecimal numbers always start with 0x. Its only allowed to use the ASCII characters ‚0‘-‚9‘ 48dec to 57dec,
0x30-
0x39 and ‚A‘ to ‚F‘, 65dec to 70dec, 0x41-0x46. All modules react to the broadcast bus address 0 and to its
own bus number. With a DIP switch, the user can easily change between the internal stored bus number in the
FLASH and the fix bus number 255. Consult the DIP switch description for more details.