Apogee Instruments SP-522 Instrukcja obsługi - Strona 13
Przeglądaj online lub pobierz pdf Instrukcja obsługi dla Akcesoria Apogee Instruments SP-522. Apogee Instruments SP-522 19 stron. Pyranometer
Packet Framing:
Apogee sensors use Modbus RTU packets and tend to adhere to the following pattern:
Slave Address (1 byte), Function Code (1 byte), Starting Address (2 bytes), Number of Registers (2 bytes), Data
Length (1 byte, optional) Data (n bytes, optional)
Modbus RTU packets use the zero-based address when addressing registers.
For information on Modbus RTU framing, see the official documentation at
http://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf
Example Packets:
An example of a data packet sent from the controller to the sensor using function code 0x3 reading register
address 0. Each pair of square brackets indicates one byte.
[Slave Address][Function][Starting Address High Byte][Starting Address Low Byte][No of Registers High Byte][No of
Registers Low Byte][CRC High Byte][CRC Low Byte]
0x01 0x03 0x00 0x00 0x00 0x02 0xC4 0x0B
An example of a data packet sent from the controller to the sensor using function code 0x10 writing a 1 to register
26. Each pair of square brackets indicates one byte.
[Slave Address][Function][Starting Address High Byte][Starting Address Low Byte][No of Registers High Byte][No of
Registers Low Byte][Byte Count][Data High Byte][Data Low Byte][Data High Byte][Data Low Byte][CRC High
Byte][CRC Low Byte]
0x01 0x10 0x00 0x1A 0x00 0x02 0x04 0x3f 0x80 0x00 0x00 0x7f 0x20.