SPI Programming Manual (G06.24+, H06.03+, J06.03+)

SPI Concepts and Protocol
SPI Programming Manual427506-006
2-39
Segmented Responses
Figure 2-12. Segmented Responses
H
Legend
An SPI message
T
n
A token with ID number
n
T
nx
A token that refers to object
x
H The SPI message header
R ZSPI-TKN-RETCODE
R
x
Return code for object
x
[ ZSPI-TKN-DATALIST
{ ZSPI-TKN-SEGLIST
] } ZSPI-TKN-ENDLIST
M ZSPI-TKN-MORE-DATA
C ZSPI-TKN-CONTEXT
VST016.vsd
Example: A segmented response for two objects
a
and
b
. The response record for
a
requires three
segments; the third segment is returned in the same message as the first segment of the
response record for object
b
:
Structure of a Simple Segmented Response:
Base Tokens
H [ R T1 T2 T3 { T4 T5 } { T4 T5 } { T4 T5 } M
Message 1 ] C
Repeating Tokens
First Response Record Segment
H [ R { T4 T5 } { T4 T5 } { T4 T5
Segment
List
Message 2 } ]
Second Segment
H [ Ra T1a { T2a T3a T4a } { T2a T3a T4a } { T2a T3a T4a } M ] C
H [ Ra { T2a T3a T4a } { T2a T3a T4a } { T2a T3a T4a } M ] C
H [ Ra { T2a T3a T4a } ] [ Rb T1b { T2b T3b T4b } M ] C
Example: An empty segmented response, which must contain an empty segment list:
[ R { } ]
H [ Rb { T2b T3b T4b } { T2b T3b T4b } { T2b T3b T4b } ]