ifm
Supplementary device manual Interface CANopen in the AS-i controllerE
Function
The fieldbus modules
77
Command 21, 16#15
– read ID string of an AS-i slave with profile S-7.4
Request from the host >> controllerE:
Word no.
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
R = 0 R = 0
M
user ID
command number = 21 (16#15)
2
R
R
R
AS-i slave address
R
R
length to be sent (here = 0)
3…18
not used
not used
Example:
1st word: 16#0215
command number 16#15,
user ID changes to 2
2nd word: 16#0300
slave address 3
Response controllerE >> host:
Word no.
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
E = 0 B = 0
M
user ID
reflected command number = 16#15
2
TG
R
AS-i slave address
F
R
R
number of bytes to be received
3
I/O
2D
DT start
DT count
Mux field
E type
4
number of parameters to be read
EDT Read
reserved
Diag
reserved
5
EDT Write
reserved
number of parameters to be written
6
device-specific information
manufacturer identification
7…16
device-specific information
device-specific information
17
reserved
number of bytes received
18
reserved
reserved
Example:
1st word: 16#0215
reflected command number 16#15,
user ID changes to 2
2nd word: 16#0604
slave address shifted 1 bit to the left = 6
4 bytes of ID data
or:
2nd word: 16#8604
the most significant bit changes after every execution
3rd word: 16#2D01
1st word of the ID string of slave 3
4th word: 16#0203
2nd word of the ID string of slave 3
...
17th word: 16#0008
here: device transmits an ID string of 8 bytes length
S = sequence bit
Length: 1 bit
Permitted values: 0./1
Meaning:
1 = data transmission not yet completed, at least one more packet follows.
0 = data transmission completed.
TG = toggle bit
Length: 1 bit
Permitted values: 0/1
Meaning: value changes for each command execution
F = error bit
Length: 1 bit
Permitted values: 0/1
Meaning: =
0 = no error occurred
1 = an error occurred during execution, e.g. slave does not have the profile S-7.4