DL8000 Preset Instruction Manual
D-64
Communications Protocols
Revised February-2016
Unsigned char cmdcode; // command code
Int trseq; // transaction sequence number
};
The command response frame differs from that of
the DanLoad 6000 protocol:
struct Tasr
{
Unsigned char dfl; // datafield length
Unsigned char cmdcode; // command code
Unsigned long noOfBatches; // num of batches
Unsigned long seqNumOfFirstBatch; // Seq. num
of 1st batch in transactionUnsigned char
configstatus[6]; // configuration bytes 1 to 6
Unsigned long data1[copies1]; // data of
configured param no 1
Unsigned long data2[copies2]; // data of
configured param no 2
:
:
:
Unsigned long dataN[copiesN]; // data of
configured param no N
};
The first two data points in the response frame are
those which are archived by default (namely, the
number of batches and the sequence number of
the first batch in the transaction).
The next 6 bytes (configstatus[6]) give the
transaction record format in bit format. The bits
starting from 0 to 7 through all the configstatus[]
bytes 1 to 6 give the configuration in following
order:
Byte 1 Bit 0 : Unit Address (archived by
default)[61,0,21]
Byte 1 Bit 1: Recipe Num [61,0,22]
Byte 1 Bit 2: Data Item 1 [61,0,23]
Byte 1 Bit 3: Data Item 2 [61,0,24]
Byte 1 Bit 4: Data Item 3 [61,0,25]
Byte 1 Bit 5: Data Item 4 [61,0,26]
Byte 1 Bit 6: Data Item 5 [61,0,27]
Byte 1 Bit 7: Start Date Time [61,0,28]
Byte 2 Bit 0: End Date Time 61,0,29]
Byte 2 Bit 1: Trans Gross Qty [61,0,30]
Byte 2 Bit 2: Trans Std Qty [61,0,31]
Byte 2 Bit 3: Trans Weight Qty [61,0,32]
Byte 2 Bit 4: Trans Start Gross [61,0,33]
Byte 2 Bit 5: Trans Start Std [61,0,34]
Byte 2 Bit 6: Trans Start Weight [61,0,35]
Byte 2 Bit 7: Trans End Gross [61,0,36]
Byte 3 Bit 0: Trans End Std [61,0,37]
Byte 3 Bit 1: Trans End Weight [61,0,38]
Byte 3 Bit 2: Trans Add Gross [61,0,39]
If the bit for archive configuration parameter is 1,
then the value of that parameter from the
transaction record is included in the response
frame. Each history data is returned as
consecutive 4-bytes data. All the parameters of
double data type in DL8000 will be returned as 4-
bytes unsigned long and all others will be returned
as 4-bytes float data.