Page 22
Appendix | ASCII Communication with Sensor
IF2008 ETH
A 2.6 Measurement Data Transmission to a Measurement Value Server,
Measurement Value Block
Each data packet includes a header (28 bytes) and the following data.
Preamble (32 bits)
Article number (32 bits)
Serial number (32 bits)
Flags 1 (32 bits)
Flags 2 (32 bits)
Number of tuples (16 bits)
Bytes per tuple (16 bits)
Counter (32 bits)
Fig. 12 Measurement value block header
Header registration
Description
Preamble (32 bit)
MEAS
Article number (32 bit)
2213030
Serial number (32 bit)
32 bits
Flags 1 (32 bit)
Bit 0 ... 15: Respectively two bits describe a data
channel.
00 = off,
01 = Encoder,
10 = Sensor,
11 = Reserved (CHANNELMODEn),
Bit 16: Indicates if digital values are active.
(EXTINLATCHSRC)
Bit 17 ... 30: reserved, always 0
Bit 31: Indicates whether an overflow has occurred in
the FIFO of the IF2008/ETH (data loss)
Flags 2 (32 bit)
Reserved, permanent 0
Number of tuples (16 Bit)
Number of tuples in packet
Bytes per tuple (16 Bit)
2 (each tuple consists of 2 bytes)
Counter (32 Bit)
Global, continuous tuple counter for all packets. The
first packet has the value 0, so it will only be increment-
ed after output.
Fig. 13 Inputs in the measurement value block header
Data:
Each sensor byte is equipped with another address byte and stored as tuple (first ad-
dress and then data byte).
Address byte ( 8 bits): Bits
0 ... 2:
Byte counter (0 - 7), starts from 0 after every break
and stops at 7 with longer data frames from a sen-
sor.
Bits
3 ... 5:
Sensor/encoder channel (0 - 7) corresponds to the
channel 1 to 8
Bits
6 ... 7:
Data source: 00 = sensor, 01 = encoder,
10 = DigitalIn, 11 = reserved
Data byte ( 8 bits):
As received by the sensor
Encoder transmission is always with 32 bits, i.e. four successive tuples.
DigitalIn is transmitted with 4 bits (upper four bits are 0), i.e. one tuple.
Содержание IF2008 ETH
Страница 23: ......