Data Acquisition and Control guide series

06

Modbus registers map

In this lesson, I discuss the Modbus Map tool, a very useful resource on the LabJack website.

Hi, thanks for stopping by! Just letting you know that we are currently working on this page. You may notice incorrect links and lots of typos. We expect to buff and polish within a few days.

As I briefly mentioned earlier, the LabJack T4 and T7 devices run a Modbus server that allows communications based on the Modbus TCP protocol. 

Almost everything that you do on the LabJack has to go through that server, whether you are running a LabJack API/Python script on your computer or an on-board Lua script, or manipulating registers on Kipling's Register Matrix view. 

All this traffic goes through the Modbus server.

Modbus Map

Use this tool to search for LabJack Modbus registers, and extract details information.

One thing that I recommend that you do right away with your browser is to go to the Modbus Map on the LabJack website. Don't forget to bookmark that page.

This page contains a search tool to quickly find information about the various Modbus registers that are available on T-series LabJacks.

Let's look at a couple of examples.

Getting information about the FIO registers

Using Modbus to get information about the FIO4 register on a T4 device. This information is also available in Kipling's Register Matrix view.

Let's say that you're looking for information relating to the T4 device and let's say that you're wondering about something in relation to digital input/outputs.

In the Modbus Map page, you can use the search tool to find this information. You can type the complete or partial name of the register that you are looking for.

As an example, say you are interested in the FI0 registers, and you'd like to know the numerical register addresses so that you can use it in one of your programs (there is a unique address for each FIO register, i.e. FIO0, FIO1, FIO2, etc.).

Type "DIO" (FIO registers are also known as DIO) in the search box. In the list of results, click on the green "+" button to expand the row. Now, you can see the register's starting address (2000), the value type (UINT16), its access type (R/W), and its tags (DIO, CORE).

You can find the same information in Kipling, in the Register Matrix view. In Kipling, you want to search for "FIO". A list of FIO registers will appear. Open the FIO# row to expand it, and notice that the same information that you found in the Modbus Map is also available in the Register Matrix.

When to use the Modbus Map?

I find that the Modbus Map tool is particularly useful when I am working with the Lua Script debugger, so I don't have to switch back to the register matrix to extract this information.

I also find the Modbus Map useful when I write Python scripts. I keep the Modbus Map page open as a quick reference for my programing work.

"Data Acquisition and Control" series

Learn Data Acquisition and Control with LabJack

With this video course, you will learn how to use the LabJack device to perform data acquisition and control (DaQ) operations.

LabJack was designed to be robust and reliable, to work autonomously in harsh environments for a long period of time, and to have a lot of input/output ports able to connect to a huge range of sensors and actuators.

We publish fresh content each week. Read how-to's on Arduino, ESP32, KiCad, Node-RED, drones and more. Listen to interviews. Learn about new tech with our comprehensive reviews. Get discount offers for our courses and books. Interact with our community. One email per week, no spam; unsubscribe at any time

Image
{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}