User`s guide

160 DC 900-1317J
ADCCP NRM Programmer’s Guide
D.26 write-data-packet
Packet Description
This packet is valid only if the client has not enabled option 9 (station-config-packet)
for the specified primary station. For NRM stations bit 0 in the
iProtModifier field indi-
cates whether more data packets follow. If the data packet is sent as part of an NRM pri-
mary station broadcast the ICP switched to RNR polling and allows the client 1 or 2
seconds after broadcast completion to send more data before reverting to normal (RR)
polling automatically. If the data is sent via a NRM secondary station and the stations
transmit window is still open, the ICP transmits the data in a response I-frame with the
f-bit reset to zero. Bit 1 and bit 2 of the
iProtModifier field determine the frame address-
ing mode.
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_NORM_DATA
iProtModifier = 0 normal addressing/final frame
1 normal addressing/ more data to follow
2 selective broadcast/final frame
3 selective broadcast/ more data to follow
4 general broadcast/final frame
5 general broadcast/more data to follow
6 or 7 ERROR
usProtLinkID = port number
usProtCircuitID = 0
usProtSessionID = protocol session number from "attach-packet"
usProtSequence = 0
usProtXparms[0] = - 0 for broadcast addressing (gen. or sel.)
- nonzero station id for normal addressing
usProtXparms[1] = size of data (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.