SPI Programming Manual (H06.24+, J06.13+)

SPI Concepts and Protocol
SPI Programming Manual427506-007
2-39
Segmented Responses
Figure 2-12. Segmented Responses
H
Legend
An SPI message
Tn A token with ID number n
Tnx A token that refers to object x
H The SPI message header
R ZSPI-TKN-RETCODE
Rx 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 } ]