Modbus Protocol Overview With Examples2
Modbus Protocol Overview With Examples2
Introduction
Data in Modbus PLC Devices is stored different four different data tables depending on the intended use of the data.
The four
data tables are:
Output Coils
Discrete Inputs
Holding Registers
Input Registers
The Modbus PLC Data Address Format is a string that defines the location of data in a Modbus PLC.
The address format
follows the Modicon PLC convention of a data table number, followed by a 1-based number.
The 1-based number defines
the coil or register number:
The Modbus Protocol supports a number of commands to read and write data.
These commands use a 16-bit 0-based
number to define the location in the data table.
The 16-bit number gives an address range of 0-65535.
The Modicon numbering convention uses 1 to indicate the first coil or register, 2 to indicate the second, and so on.
The traditional Modicon 5 digit addressing restricts the protocol to the first 9999 coils or registers.
To access the full range of data allowed by the Modbus protocol, 6-digit addressing is sometimes used:
https://www.fernhillsoftware.com/help/drivers/modbus/data-address-format.html 1/2
12/8/21, 11:27 AM Modbus Data Address Format and Specification
Fernhill SCADA supports variable length Modbus addressing.
For example the first discrete input can represented by
100001, 10001, 1001, 101, or 11.
Where Used
The Modbus PLC Data Address Format is used in these contexts:
In the IOItemName field of an I/O Analog Data Point Tag when the tag is associated with a Modbus PLC.
In the IOItemName field of a I/O Digital Data Point Tag when the tag is associated with a Modbus PLC.
In the IOItemName field of a I/O Word Data Point Tag when the tag is associated with a Modbus PLC.
In the IOItemName field of a I/O Double Word Data Point Tag when the tag is associated with a Modbus PLC.
In the IOItemName field of a I/O Long Word Data Point Tag when the tag is associated with a Modbus PLC.
In the Register field of a Modbus Register Block.
In the DataAddress parameter of the DirectWriteBit Tag Command when used with a Modbus PLC.
In the DataAddress parameter of the DirectWriteWord Tag Command when used with a Modbus PLC.
The Data Address Editor provides a convenient tool to build Modbus Data Address strings.
Further Information
Modbus Register Block Tag
Modbus Driver
Glossary
Fernhill SCADA Version 3.78 (20211130.3). Copyright © 2012-2021 Fernhill Software Ltd: All rights reserved.
https://www.fernhillsoftware.com/help/drivers/modbus/data-address-format.html 2/2