User`s guide

156 DC 900-1317J
ADCCP NRM Programmer’s Guide
D.23 receive-unform-data-packet
Packet Description
This packet is valid only if option 5 (station-config-packet) is enabled for the specified
station and the station is in initialization state. The client has total responsibility for
handling all initialization protocol requirements.
Packet Header
Freeway (DLI api only):
usFWPacketType = FW_DATA
usFWCommand = FW_ICP_READ
usFWStatus = 0
ICP:
usICPClientID = 0
usICPServerID = 0
[usLength = length of data + 16 (used for non DLI api only)]
usICPCommand = DLI_ICP_CMD_READ
iICPStatus = - 0 or DLI return status
usICPParams[0] = 0
usICPParams[1] = 0
usICPParams[2] = 0
Protocol:
usProtCommand = DLI_PROT_RECV_UNFORMATTED_DATA
iProtModifier = 0 - no error detected with data
= 128 - error detected in data
usProtLinkID = port number
usProtCircuitID = 0
usProtSessionID = returned with Protocol status
usProtSequence = 0
usProtXparms[0] = station id
usProtXparms[1] = size of data received (in bytes)
Note
The Freeway header is used only with DLI (it is not applicable for
DLITE), and the
usLength field of the ICP header is used only with-
out DLI.
Data
Data received from remote application