ifm
Basic Device Manual AS-i ControllerE M4 Target V15
2015-10-30
Function
Introduction AS-i data
36
5.2.3
Configuration data (CDI) of the slaves (slave profiles)
The configuration data CDI (=
C
onfiguration
D
ata
I
mage) for standard, A and B slaves is stored in a
data word. The structure is indicated as follows and the same for all slaves.
Structure of the slave profile: S-[IO-Code].[ID-Code].[ext.ID-Code2]
Bits 15...12
Bits 11...8
Bits 7...4
Bits 3...0
XID2
Extended ID code 2
3rd digit in the slave profile
(AS-i slave v2.0 = F
h
*)
XID1
Extended ID code 1
can be changed by the user;
no part of the slave profile
(AS-i slave v2.0 = F
h
*)
ID code
ID code
2nd digit in the slave profile
IO code
I/O configuration
1st digit in the slave profile
Example
:
AC2255
4 digital inputs, 2 digital outputs
AS-i profile = S-7.A.E
This results in the following configuration data of the slave:
1110
2
= E
h
(e.g.) 0111
2
= 7
h
1010
2
= A
h
0111
2
= 7
h
The corresponding CDI data word is: 1110011110100111
2
= E7A7
h
*) AS-i slaves according to the AS-i specification 2.0 and older do not support the extended ID codes 1
and 2. In the master "F
h
" is stored for this configuration data.
Current and projected configuration data are distinguished. The addresses for these data are listed
from page
Meaning of the IO code for digital slaves
Structure slave profile = S-[IO-Code].x.x
IO code
(hex)
IO code
(bits 3…0)
Function of the periphery bits
D3
D2
D1
D0
0
0000
input
input
input
input
1
0001
output
input
input
input
2
0010
input/output
input
input
input
3
0011
output
output
input
input
4
0100
input/output
input/output
input
input
5
0101
output
output
output
input
6
0110
input/output
input/output
input/output
input
7
0111
input/output
input/output
input/output
input/output
8
1000
output
output
output
output
9
1001
input
output
output
output
A
1010
input/output
output
output
output
B
1011
input
input
output
output
C
1100
input/output
input/output
output
output
D
1101
input
input
input
output
E
1110
input/output
input/output
input/output
output
F
1111
not allowed