Massa M3 Instrukcja Użytkownika Strona 10

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 29
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 9
MASSA PRODUCTS CORPORATION June 11, 2013
Product Manual 9 M3 Wireless Ultrasonic Level Sensor
8.2.4.3 Data format of the Ultrasonic Waveform
The Ultrasonic Waveform data sent by the sensor includes all configuration registers, firmware version and waveform data. The
format of the data is shown below. See section 9 for information on the Configuration Registers. The ultrasonic data can then be
retrieved by a host application which can draw the waveform for analysis or be retained as a record. The Ultrasonic Waveform
data are peak detect a/d values with a resolution of 24.236uS starting after the ultrasonic transmit pulse.
Configuration Registers - reserved - Model Code - Main FW Version - Ultrasonic FW Version - UltrasonicWaveform
Bytes 0 to 118 119 – 122 123 124 – 125 126 – 127 128 - 1791
Note: Model Code at byte 123: M3/150 = 50, M3/95 = 51, M3/150is = 52, M3/95is = 53, M3/50 = 54
8.2.5.1 Host Command to M3: Write to Configuration Registers, Command #25
This command is used to write to the Configuration Registers. Up to 64 registers can be written in one RF message. The quantity
of bytes in “RegQty” (see message format below) are written sequentially to the Configuration Registers starting with the address
indicated in the RF message. If any value is outside the acceptable limits, then that value is replaced with the factory default and
will indicate by both the reply message (see reply message) and in the Error Indicator byte 65 bit 0 (see section 9). The message
format is shown here and is sent to the gateway by the host. A value that uses more than one register should be written with a
single RF message.
<Destination ID><Sender ID><Message Length><Command><AddrLSB><AddrMSB><RegQty><Data>···<DataN><Checksum>
Sensor ID Host ID x 25 Starting Config Reg.addr. total write data · · · data checksum
default=1 default=251 LSB MSB bytes
8.2.5.2 Response to “Write to Configuration Registers” Command #25
The response to Command #25 is an acknowledge Command #200 as shown below. This reply message includes a ‘ValueError’
byte which will be zero if all the register values have been accepted. If this byte is a 1, then at least one value was invalid and was
replaced with a factory default value. The ‘ValueError’ byte is derived from the Error Indicator byte 65, bit 0 EE replacement
Error bit (see section 9.2.7). The user must clear this bit once this error has been indicated.
<Destination ID> <Sender ID> <Message Length> <Command> <AcknowledgeToCommand> <ValueError> <Checksum>
Host ID Sensor ID 7 200 25 0 = no error checksum
default=251 default=1 Acknowledge 1 = error
8.2.6.1 Host Command to M3: Read from Configuration Registers, Command #35
Up to 64 Configuration Registers can be read and placed in one RF message. The starting address along with the quantity of data
to be read is required. The message format is shown here and is sent to the gateway by the host.
<Destination ID> <Sender ID> <Message Length> <Command> <AddrLSB> <AddrMSB> <RegQty> <Checksum>
Sensor ID Host ID 8 35 Conf. Reg Conf. Reg total registers checksum
default=1 default=251 low addr . hi addr to read
8.2.6.2 Response to “Read from Configuration Registers” Command #35
The sensor responds to command #35 with a block of data read from the sensor’s configuration registers. The starting address is
returned along with the quantity of data then the data. Here is the format of the message.
<Destination ID> <Sender ID> <Message Length> <Command> <AddrLSB> <AddrMSB> <RegQty> <Data> · · · <DataN> <Checksum>
Host ID Sensor ID x 35 Starting Conf. Reg addr. total registers data · · · data checksum
default=251 default=1 LSB MSB to read LSB MSB
8.2.7.1 Host Command to M3: Misc Sensor Information, Command #100
To obtain the Sensor Model Code, Firmware Version (Main), Firmware Version (Ultrasonic), and Sensor’s serial number, the
message format is shown here which is sent to the gateway by the host.
<Destination ID> <Sender ID> <Message Length> <Command> <Checksum>
Sensor ID Host ID 5 100 checksum
default=1 default=251
Przeglądanie stron 9
1 2 ... 5 6 7 8 9 10 11 12 13 14 15 ... 28 29

Komentarze do niniejszej Instrukcji

Brak uwag