Modbus Examples
Modbus Examples
register_address=page_number*256+register_offset. ( +1 )
To read the Engine Speed from the above register, the MODBUS master device needs to read the
data in two registers and then combine the data from the Most Significant Bit and the Least
Significant Bit.
MSB address in Decimal = (166 * 256) + 2 = 42498
LSB address in Decimal = (166 * 256) + 3 = 42499)
Now this value will represent one of these modes in below table.
Ex: if you find in register offset 4 a value 2 .. this means it is in the manual mode and so on.
engine operation
The same is for engine operation state:
Page 4 example: Basic Instrumentation
you have to just read the register offset direct follow the above equation as example bellow ( I
am using Modscan software )
high fuel level low fuel level high battery low battery
voltage voltage
Now you have to read the values in the register and look to the below table
Make sure your laptop is communicating with the module via communication cable.
Open the modscan software and communicate with the module.
To do remote control (SYSTEM CONTROL) you need to send both System Control Keys to
the module, and sending the bitwise opposite (or one’s compliment)
(System Control Keys+ compliment)
To do this using modscan please follow these steps:
Open modscan
From TAP menu select SETUP
From SETUP menu select EXTENDED
From EXTENDED menu select PRESET REGs
As below :
You will open the below window (number of points should be 2)