ifm
Device manual AS-i M4 Gateway Profibus DPV1 (AC1375, AC1376)
2012-02-23
DP module 7 – command channel
Commands in DP module 7
185
Example:
Read LAS (list of active slaves) of slave group 1 on master 1
Request from fieldbus master to device
Byte no.
Value [hex]
Meaning
1
08
08 = command number 8
2 42
(slave no.
2
)
group 1
+ (master no.
1 * 64
)
+ (32, if B slave)
= 66
dec
= 42
hex
3 xx
not
used
4 xx
not
used
Response from device to fieldbus master
Byte no.
Value [hex]
Meaning
1
08
command processed, no error occurred
reflected command number
2
42
copy of the request
3 03
hex
=
00000011
bin
table Slave group in module 7 (
→
page
), group 1:
slave 8(A) is active
slave 9(A) is active
4 FE
hex
=
11111110
bin
table Slave group in module 7 (
→
page
), group 1:
slaves 1(A) to 7(A) are active
Slave group in module 7
5635
The 2 feedback bytes can only give information about max. 16 slaves. Therefore the slaves are
divided in 4 groups (
following table).
When querying the slave lists any slave number from the requested slave group is to be indicated.
Byte 3
Byte 4
Bit / AS-i slave address
Slave group
7
6
5
4
3
2
1
0
7
6
5
4
3
2
1
0
1
15(A) 14(A) 13(A) 12(A) 11(A) 10(A) 9(A) 8(A) 7(A) 6(A) 5(A) 4(A) 3(A) 2(A) 1(A) 0
*)
2
31(A) 30(A) 29(A) 28(A) 27(A) 26(A) 25(A) 24(A) 23(A) 22(A) 21(A) 20(A) 19(A) 18(A) 17(A) 16(A)
3
15B 14B 13B 12B 11B 10B 9B 8B 7B 6B 5B 4B 3B 2B 1B res.
4
31B 30B 29B 28B 27B 26B 25B 24B 23B 22B 21B 20B 19B 18B 17B 16B
*) LAS and LPS have no slave 0, therefore this bit is set to 0!