![Balluff BSI R11A0-XXR-CXP360-S75G Скачать руководство пользователя страница 10](http://html1.mh-extra.com/html/balluff/bsi-r11a0-xxr-cxp360-s75g/bsi-r11a0-xxr-cxp360-s75g_user-manual_4013316010.webp)
3
english
BSI R11A0-XXR-CXP360-S75G
Capacitive uniaxial inclination sensor with Modbus interface
The sensor has a RS485 interface and is addressed via the
Modbus RTU protocol.
In RTU mode, the beginning of transmission is marked by
a transmission pause at least three characters long. The
length of the transmission pause depends on the transfer
rate.
The
slave ID
consists of 8 bits that represent the
addresses of recipients.
The slave sends an address back with its answer so that
the master can allocate the response.
The
function field
consists of 8 bits. If the slave has
correctly received the query from the master, then it
responds with the same function code.
If an error occurred, it changes the function code by
setting the highest value bit in the function field to 1.
The
data field
(a quantity/value) contains notes
about which register the slave is to read out, at which
address this begins; it also contains the value that is to be
written into the register.
The slave uses the read out data (e.g. measuring values)
there to send them to the master.
In the case of an error, an error code is transferred there.
The field for the
checksum
determined by CRC is 16 bits.
The entire telegram has to be transferred in a continuous
data stream. If a transmission interruption occurs between
two characters and lasts more than 1.5 characters, the
telegram has to be evaluated as incomplete and should be
discarded by the recipient.
More information on the Modbus protocol can be found at
http://www.modbus.org/specs.php.
Startup
Structure of the query
The command set consists of a word 8 bytes in length.
Master
Slave ID Function
Code
Adress Quantity
/Value
Checksum
1 byte
1 byte
2 bytes
2 bytes
2 bytes
Structure of the response
The answer varies depending on number of queried
registers and is structured as follows:
Slave
Slave ID Function
Code
Byte
Count
Value
Checksum
1 byte
1 byte
1 byte
x bytes
2 bytes
Error indicator
Register
address
Value
Cause of error
0
55555
Invalid value in one of the
following registers:
132 = Update time
133 = Number of measurements
134 = Offset from 0° position
See register table