User`s guide
154 DC 900-1317J
ADCCP NRM Programmer’s Guide
D.22 write-unform-data-packet (or write-unform-data-eom-packet)
Packet Description
This packet is valid only if option 5 (station-config-packet) is enabled on the specified
station and the station is in the initialization state. Used to send unformatted data to a
remote application.
Packet Header
Freeway (DLI api only):
usFWPacketType = FW_DATA
usFWCommand = FW_ICP_WRITE
usFWStatus = 0
ICP:
usICPClientID = 0
usICPServerID = 0
[usLength = length of data + 16 (used for non DLI api only)]
usICPCommand = DLI_ICP_CMD_WRITE
iICPStatus = 0 - for Big Endian Clients or
= 0x4000 - for Little Endian Clients
usICPParams[0] = 0
usICPParams[1] = 0
usICPParams[2] = 0
Protocol:
usProtCommand = DLI_PROT_SEND_UNFORMATTED_DATA
(or DLI_PROT_SEND_UNFORMATTED_DATA_EOM)
iProtModifier = 0
usProtLinkID = port number
usProtCircuitID = 0
usProtSessionID = protocol session number from "attach-packet"
usProtSequence = userMarker (user-chosen marker)
usProtXparms[0] = station id
usProtXparms[1] = size of data + FCS (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 to be sent to remote application followed by a trailing frame check sequence
(FCS). The client has total responsibility to handle all initialization protocol require-
ments.