User`s guide
162 DC 900-1317J
ADCCP NRM Programmer’s Guide
D.27 receive-data-packet
Packet Description
This packet is valid for primary stations if option 8 (station-config-packet) is disabled
for the specified primary station. It is valid for secondary stations if option 9 (station-
config-packet) is disabled. This packet receives data from a remote application.
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_DATA
iProtModifier = 0 normal addressing
2 selective broadcast addressing
3 general broadcast addressing
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