ifm
Device manual AS-i M4 Gateway Profibus DPV1 (AC1375, AC1376)
2012-02-23
DP module 12: extended command channel
Commands in the extended command channel
258
Response from device to fieldbus master
Bit
Offset
Word no.
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
1
E=0
S
M
reflected user ID
reflected command number
2
TG
res.
reflected slave address
F=0
res. = 0
reflected command data
3...18
not changed*)
not changed*)
Legend:
E
error bit
1 bit
0 = no error detected
1 = error when executing the command
S
sequence bit
1 bit
a large data packet is transmitted in several partial sequences:
0 = data transmission completed
1 = data transmission not yet completed, at least one more packet follows
M
master no.
1 bit
0 = master 1
1 = master 2
TG
toggle bit
1 bit
value changes for each execution of the command
F
error bit
1 bit
0 = no error detected
1 = error when executing the command
*)
IMPORTANT:
For the query read only the required bytes!
Unused bytes can contain information of previous queries.
Example:
write parameter string in AS-i slave 3(A) on AS-i master 1
Request from fieldbus master to device
Word no.
Value [hex.]
Meaning
1
0923
S=0: sequence here always 0
M=0: AS-i master 1
UID=09: user ID changes e.g. to 9
23 = command number 35
2 0304
03
hex
= 03
dec
= slave address 3(A)
04
transmit 4 parameter bytes
3
2DF4
F4 = parameter byte 0 for slave 3
2D = parameter byte 1 for slave 3
4
5BB8
B8 = parameter byte 2 for slave 3
5B = parameter byte 3 for slave 3
5...18 xxxx
not
used
Response from device to fieldbus master
Word no.
Value [hex.]
Meaning
1
0923
E=0: command processed, no error occurred
S=0: last sequence
09 = reflected command data
23 = reflected command number
2 0604
8604
0xxx/8xxx = the toggle bit TG changes after each execution
x6xx = slave address 3(A) shifted 1 bit to the left
copy of the request
3...18 xxxx
not
changed