device manual AS-i DP - Gateway
Note
: Two bits of the Command response byte indicate the state of the command channel:
D7 = 1 -> Error during command processing
D7 = 0 -> No error
D6 = 1 -> Command being processed,channel busy.
D6 = 0 -> Command processed,response buffer valid.
The commands are normally executed only if the command byte (first byte) is changed! For
continuous execution of the same command please switch into 'Continuous command mode' first! This
can be done with command No. 62.
Examples (Values given in hexadecimal form)
Example command 1, read master flags:
DP Master Request:
1. Byte: 16#01 (command number)
2. Byte: 16#40 (AS-i Master 1)
3. Byte: 16#00 (not used)
4. Byte: 16#00 (not used)
DP- Gateway Response:
1. Byte: 16#01 (copy of request)
2. Byte: 16#40 (copy of request)
3.-4. Byte: Data ; see table below
Master-Flags:
Byte
Bit
Meaning of Bit = TRUE
3
0
the periphery of connected AS-i slaves is OK ( no Peripheral Fault)
3
1
the automatic addressing is enabled
3
2
the data transfer to at least 1 slave is active
3 3..7 reserved
4
0
the AS-i configuration is OK
4
1
one Slave 0 detected
4
2
the automatic addressing is enabled
4
3
the automatic addressing is active
4
4
the config mode is active
4
5
the normal operation is active
4
6
an AS-i voltage error has occured
4
7
the offline phase is active
Example Command 2, change operation mode
DP Master Request:
1. Byte: 16#02 (command number)
2. Byte: 16#40 (AS-i Master 1)
3. Byte: 16#01 (config mode)
4. Byte: 16#00 (not used)
DP-Gateway Response:
1. Byte: 16#02 (copy of request)
2. Byte: 16#40 (copy of request)
3. Byte: 16#01 (config mode now active)
4. Byte: 16#00 (not used)
5-21