Reading The Position Values Of A 2-Axis Inclination Sensor - Pepperl+Fuchs INX DH-F199-B30 Series Manual

With modbus rtu interface
Table of Contents

Advertisement

INX***DH-F199-B30-***,INY***DH-F199-B30-***
MODBUS Communication Examples
5.2

Reading the Position Values of a 2-Axis Inclination Sensor

Note!
The following description explains how to read the positon values of a 2-axis sensor. If you use
a 1-axis sensor, you only have to read the x-axis registers.
Device Registers Containing Position Values
For device-specific registers See chapter 4.3. The position value registers have the offsets 0...
3. Thus, 4 registers have to be read in total.
Register Name
Current Position Value
Higher Register (x-Axis)
Current Position Value Lower
Register (x-Axis)
Current Position Value
Higher Register (y-Axis)
Current Position Value Lower
Register (y-Axis)
Table 5.1
Input Parameters for Reading the Position Values
The following input parameters have to be entered into the Test Center to read the 4 position
registers:
Slave ID: 7Fh (address 127d of the inclination sensor)
Function Code: 03h (reading holding registers, 4 x register)
Address: 0 (beginning with register offset 0)
Number: 4 (number of registers to be read)
Entering the Input Parameters
1. Enter the previous input parameters in hexadecimal form as a byte sequence in the com-
mand-line window. Ensure that the "Add Check" and "CRC" options are activated so that the
checksum CRC will be added automatically.
Figure 5.5
Register
Function
Offset
Access
Code
0000h
RO
03h
0001h
RO
03h
0002h
RO
03h
0003h
RO
03h
Data
Type
Description and Values
16 bits
You read this value as
signed
current position value
16 bits
You read this value as
signed
current position value
16 bits
You read this value as
signed
current position value
16 bits
You read this value as
signed
current position value
Default
21

Advertisement

Table of Contents
loading

This manual is also suitable for:

Iny dh-f199-b30 seriesInx360dh-f199-b30-2v15Inx360dh-f199-b30-v15

Table of Contents