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

SPI Concepts and Protocol
SPI Programming Manual427506-006
2-33
Multirecord Responses
Figure 2-10 shows how a requester returns response records when the MAXRESP
header token is set to 1. The server returns as many response records in each
response message as fit in the buffer. Each record is enclosed in a data list. If more
than one message is needed to return all the response records, the server follows the
standard protocol for command continuation until all records are returned.
Figure 2-10. ZSPI-TKN-MAXRESP = –1
VST014.vsd
The server returns as many response records in each response message as fit in the buffer. Each
response record is contained in a separate data list.
H [ Ra T1a T2a ]
Example: MAXRESP = -1 and one object qualifies for processing:
The server returns one message containing one response record in a datalist.
Example: MAXRESP = -1 and five objects (a through e) qualify for processing:
H [ Rd T1d T2d ] [ Re T1e T2e ]
The server returns three response records in the first response message (the fourth does
not fit) and two in the second.
Legend
R
x
ZSPI-TKN-RETCODE for object
x
H Message header
T
nx
Token
n
describing object
x
C ZSPI-TKN-CONTEXT
[ ZSPI-TKN-DATALIST
] ZSPI-TKN-ENDLIST
H [ Ra T1a T2a ] [ Rb T1b T2b ] [ Rc T1c T2c ] C