2 structure of the command interface, Structure of the command interface – EUCHNER AS-i 3.0 Command Interface User Manual
Page 7

AS-i 3.0 Command Interface
Structure of the Command Interface
Subject to reasonable modifications due to technical advances
Id.-No.: 102875 Issue date - 3.12.2007
EUCHNER GmbH + Co. KG
Kohlhammerstraße 16, D-70771 Leinfelden-Echterdingen
Tel. +49/711/7597-0, Fax +49/711/753316
7
2
Structure of the Command Interface
The command interface has the following structure shown in table 1 and table 2.
Table 1
Bit T in the command interface is the toggle bit. The toggle bit is only necessary
in the case of interfaces which transfer the data cyclically.
The execution of a command of the command interface is declined, if the number
of the transferred parameters is too small, this could happen when the command
interface is too small or the tegram is too short.
Circuit selects the AS-i circuit. Circuit = 0 selects the first circuit.
Bit LO is the list order bit. The commands for reading and writinig slave lists sup-
port two different sorting schemas.
LO = 0 selects the Euchner schema.
LO = 1 selects the Siemens schema (the sequence of the bits in the slave lists
bytes is inverse).
Parameter byte n is the n
th
parameter of the command. The number of parame-
ters is different for different commands. It is not necessary to set the additional pa-
rameter bytes to 0 in the command interface, if a command does not use the
maximum number of parameter bytes (36)
Table 2
There is the reflected command byte and the toggle bit of the request in the re-
sponse. The execution of the command returns its result in the seven least signif-
icant bits of byte 2 of the response. 0 signals execution of the command without
an error. The table result codes shows all possible result codes.
command request
byte
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
command
2
T
O
circuit
3
request parameter byte 1
…
…
36
request parameter byte 34
command response
byte
2
7
2
6
2
5
2
4
2
3
2
2
2
1
2
0
1
command (mirrored)
2
T
result
3
response byte 1
…
…
36
response byte 34