Inst ToolsInst ToolsInst Tools
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Search
  • Books
  • Software
  • Projects
  • Process
  • Tools
  • Basics
  • Formula
  • Power Plant
  • Root Cause Analysis
  • Electrical Basics
  • Animation
  • Standards
  • 4-20 mA Course
  • Siemens PLC Course
Reading: How is Data Stored in Standard Modbus Protocol?
Share
Notification Show More
Font ResizerAa
Inst ToolsInst Tools
Font ResizerAa
  • Courses
  • Design
  • PLC
  • Interview
  • Control System
Search
  • Courses
  • Automation
    • PLC
    • Control System
    • Safety System
    • Communication
    • Fire & Gas System
  • Instrumentation
    • Design
    • Pressure
    • Temperature
    • Flow
    • Level
    • Vibration
    • Analyzer
    • Control Valve
    • Switch
    • Calibration
    • Erection & Commissioning
  • Interview
    • Instrumentation
    • Electrical
    • Electronics
    • Practical
  • Q&A
    • Instrumentation
    • Control System
    • Electrical
    • Electronics
    • Analog Electronics
    • Digital Electronics
    • Power Electronics
    • Microprocessor
  • Request
Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Inst Tools > Blog > Control Systems > How is Data Stored in Standard Modbus Protocol?

How is Data Stored in Standard Modbus Protocol?

Learn the Standard Modbus Protocol that stores process data using holding registers, input registers, and coil states in PLC communication.

Last updated: May 7, 2025 2:02 pm
Viral Nagda
Control Systems PLC Tutorials
No Comments
Share
8 Min Read
SHARE

Modbus is one of the most widely used communication protocols in industrial automation. Be it RTU or TCP IP, Modbus is widely implemented in many devices due to its simplicity, low cost, and reliability it offers. When working with Modbus, one must always be familiar with the way of data storage concept. Be it any protocol, it should be known how data is handled in them. Also, as Modbus has a good variety of data registers, engineers should know exactly how they function. In this post, we will see how data is stored in the standard Modbus protocol.

Contents
What is Modbus?Standard Modbus ProtocolData Storage in ModbusCoil (00000 – 09999)Discrete Input (10000 – 19999)Input Register (30000 – 39999)Holding Register (40000 – 49999)Modbus Important Notes

What is Modbus?

First of all, let us understand what Modbus is. Modbus is an industrial communication protocol developed by Modicon ( now Schneider Electric).

Modbus is based on the master-slave model, where the master sends requests for data, and the slave responds by giving data in return. It is a very simple concept of working. The number of slaves for a particular network is limited to 247. The hardware used for Modbus is RTU or TCP IP.

Standard Modbus Protocol

Refer to the image below for more understanding. As you can see, there are three variable frequency drives working as slaves, one PLC which acts as both master and slave, and the HMI which acts as a master. The slaves are connected in a bus topology (in RS485 hardware), all looped together and connected to a single PLC port, which will act as the master. The other port of the PLC is configured as a slave to send data to the HMI, which acts as a master, through RS-485 hardware.

How is Data Stored in Standard Modbus Protocol?

When a master communicates with multiple slaves, it requests data from each slave one by one, and not simultaneously; otherwise, the network will not communicate. In response, when a particular slave is asked, it will send data to the master. If data is to be written in a slave device, then too the master will do this one by one, and not simultaneously. The RS-485 network will require bus topology, whereas TCP IP will work in star, tree, or ring topologies (as it is Ethernet).

Data Storage in Modbus

 Let us first revisit our basics. One byte is 8 bits, and two such bytes make an integer or word. The word is unsigned (without any negative result), whereas an integer can be signed (with a negative result too) or unsigned. Two such integers make a floating point or double word (meaning a 32-bit data consisting of 4 bytes). Now, in Modbus, data is stored in a separate register. This register consists of four main types:

Coil (00000 – 09999)

Each coil stands for a single bit register. This means it can store either 0 or 1. Starting with 0, 0 is the logical address here for coil status. So, for example, the value of 00003 can be 0 or the value of 00042 can be 1. The coils status is read or write, meaning either you can read the bit value or write a bit value. 

Discrete Input (10000 – 19999)

Each discrete input stands for a single bit register. This means it can store either 0 or 1. Starting with 1, 1 is the logical address here for the discrete input status. So, for example, the value of 10003 can be 0, or the value of 10042 can be 1. The coil’s status is read only, meaning you can only read the bit value and not write anything here.

Input Register (30000 – 39999)

Each input register stands for a single 16-bit register. This means it can store values from -32767 to 32767 if signed, or 0 to 65535 if unsigned. Starting with 3, 3 is the logical address here for the input register status. So, for example, the value of 30003 can be -45, or the value of 30042 can be 126. The input register is read-only, meaning you can only read the integer value and not write anything here.

Holding Register (40000 – 49999)

Each holding register stands for a single 16-bit register. This means it can store values from -32767 to 32767 if signed, or 0 to 65535 if unsigned. Starting with 4, 4 is the logical address here for holding register status. So, for example, the value of 40003 can be 324, or the value of 40042 can be 6791. The holding register is both read and write, meaning you can either read the integer value or write the integer value here.

Modbus Important Notes

Some important notes to consider in the data storage concept here are:

  1. When accessing Modbus registers, offsets are generally considered. The offset is usually 0, 1, or -1. For example, if you want to access 40065, depending on the PLC make, the register address in the PLC will come as 64, 65, or 66.
  2. Data can be floating too, so you can combine two registers to make a 32-bit data type for long integers or floating point data. In them, you have two parts to access – MSB (most significant bit) and LSB (least significant bit).
  3. For example, if you use two registers of 41056 and 41057 for reading 32-bit data, the MSB or the higher part will be 41056, and the LSB or the lower part will be 41057. Now, the main part comes here in the form of two ways of sending data – little Endian or big Endian. Modbus devices can send data as little Endian (value of LSB first and value of MSB then) or big Endian (value of MSB first and value of LSB then). So, for example, if slave is little Endian and master too is little Endian, then data will be read and written as it is. But if the master is a big Endian, then data swapping logic will be required in the master, where MSB first and LSB later will be interchanged with LSB first and MSB later. So, whenever you access Modbus values, always take care of the way the slave communicates data.

In this way, we saw how data is stored in the standard Modbus protocol.

Read Next:

  • Introduction to Modbus Reading and Writing
  • How Modbus Communication Works
  • Why is Baud Rate Important in Modbus Network?
  • Modbus Communication Interview Questions
  • ModScan Software for Modbus Communication

Don't Miss Our Updates
Be the first to get exclusive content straight to your email.
We promise not to spam you. You can unsubscribe at any time.
Invalid email address
You've successfully subscribed !

Continue Reading

How to use FIFO Block in TIA Portal? – Siemens PLC Programming
Parking Lights PLC Program Explained with Video
Compressor Emergency Shutdown Root Cause Analysis
Proportional-only Offset
PLC Selective Execution of the Application – Example Program
Top 100+ SCADA Questions
Share This Article
Facebook Whatsapp Whatsapp LinkedIn Copy Link
Share
Leave a Comment

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Stay Connected

128.3kFollowersLike
69.1kFollowersFollow
210kSubscribersSubscribe
38kFollowersFollow

Categories

Explore More

DeltaV System Configuration Changes and Download
Contacts and Coils in PLC Ladder Logic
LS Electric PLC Program Example: Clothes Washing System
Move, Move Bit, Move Digit – Examples of Omron PLC Programs
Automatic Highway Lights Program using RTC in Omron PLC
Wiring Diagrams of PLC and DCS Systems – DI, DO, AI, AO
Industrial Oven Control Application with PLC Controller
Motor Control using Modbus Communication and Hardwired Signals

Keep Learning

Limit, Selector, and Override controls

Limit, Selector, and Override controls

Marking Machine

PLC SCL Program for Marking Machine

Relay Wiring

Animation of Electromagnetic Relay

PLC Lamp Control using Logic Condition

Lamp Control using PLC Logic Condition

PLC Stop - Start Circuit

Introduction to PLC Ladder Diagrams

Types of Scan Time in a PLC

#16 PLC Best Practices – Create Trend for Cycle Time on HMI

How to Download Rslogix Free

Download Allen Bradley RSLogix PLC Software

User Defined Function Blocks in PLC

What are User Defined Function Blocks in PLC?

Learn More

PLC SCADA Water Pump

PLC Program for Controlling a Water Pump with 3 Power Sources

Power Systems Questions & Answers

Power Systems MCQ Series 1

Tanks Draining Control in PLC using Functional Block Diagram

Tanks Draining Control in PLC using Functional Block Diagram

Piping and Instrumentation Diagram

What is Piping and Instrumentation Diagram (P&ID) ?

Oxygen Measurement using Tunable Diode Laser System

Tunable Diode Laser Analyzer Working Principle

RTD Connection Diagram

Difference Between 2 wire RTD, 3 wire RTD, and 4 wire RTD’s

Differential Pressure Sensor with pair of Strain Gauges

Differential Pressure Sensor with Pair of Strain Gauges

Four Wire RTD Circuit

What is a Four-wire RTD ?

Menu

  • About
  • Privacy Policy
  • Copyright

Quick Links

  • Learn PLC
  • Helping Hand
  • Part Time Job

YouTube Subscribe

Follow US
All rights reserved. Reproduction in whole or in part without written permission is prohibited.
Welcome Back!

Sign in to your account

Username or Email Address
Password

Lost your password?