Structure Of The Response Buffer - Pepperl+Fuchs AS-I 3.0 Manual

Command interface
Table of Contents

Advertisement

AS-i 3.0 Command Interface
Commands of the Command Interface
4.3.3.1

Structure of the response buffer

As the string to be transferred can be longer than the command interface, the
string is first saved in a buffer that can be read in sections using the buffer index
(i).
The first byte in the response buffer defines the current command. FF
transfer still active, FE
case, the command from WRITE_ACYC_TRANS is given here.
The first sub-section of the string is read using i ≡ 0, the second with i = m-2, etc.
The two following bytes (high, low) define the length of the response buffer.
It is recommended to start reading the data always using index i ≡ 0. This mes-
sage also contains the header. The user data length is therefore reduced by 3
bytes.
Information!
Data with length i ½ 0 can be read successfull only once. Each further read command
with length i ½ 0 ist quit with an error. Therefore further read process (sections) must
be carried out with i >0!
Byte
1
2
3
4
...
n+3
1.
FFh signifies transfer still active, FEh signified transfer interrupted with errors. In the correct case the com-
mand from WRITE_ACYC_TRANS is given here.
2.
Transmit buffer length n.
28
signifies transfer interrupted with errors. In the correct
16
7
6
5
2
2
2
Response buffer
4
3
2
2
1
command
2
length byt
e n (high)
length byte n (low)
data 0
...
data n-1
signifies
16
2
1
0
2
2
2
Tab. 4-38.

Advertisement

Table of Contents
loading

Table of Contents