Aknitech

Modbus Communication in S7-200 Smart PLC – Complete Beginner Guide

Industrial automation rarely uses devices from a single brand. A plant may have a Siemens PLC, Delta VFD, Schneider energy meter, and an HMI from another company. The big question is: how do these machines talk to each other?This is where Modbus communication becomes extremely important. In this guide, you’ll learn Modbus in simple, practical […]
by
Modbus Communication in S7-200 Smart PLC

Industrial automation rarely uses devices from a single brand. A plant may have a Siemens PLC, Delta VFD, Schneider energy meter, and an HMI from another company. The big question is: how do these machines talk to each other?
This is where Modbus communication becomes extremely important. In this guide, you’ll learn Modbus in simple, practical terms – exactly how it works and how to configure it in an S7-200 Smart PLC.

What is Modbus Communication?

Modbus is a universal industrial communication protocol used to exchange data between automation devices like PLCs, drives, meters, and SCADA systems.

In simple words:
Modbus is the common language of machines.

It works on a request-response system:

  • One device asks for data
  • The other device replies with data

Because of its simplicity and reliability, Modbus is one of the most widely used industrial communication protocols in PLC automation.

Master-Slave Principle (Core Concept)

Modbus communication always follows discipline. Only one device controls the conversation.

DeviceRole
PLCMaster (initiates request)
VFD / Energy Meter / SensorSlave (responds to request)

The slave device never sends data on its own.
It only replies when the PLC asks.

Communication Flow

  1. PLC sends request
  2. Slave processes request
  3. Slave returns response

The slave device never sends data by itself – it only responds when the PLC asks. That’s why in most automation systems, PLC acts as Modbus Master.

Types of Modbus (RTU vs TCP)

Modbus works in two main formats. Understanding this is critical in industrial automation projects.

Modbus RTU

  • Works on RS-485 serial cable
  • Low cost
  • Best for local field devices
  • Used with VFDs, temperature controllers, energy meters

Modbus TCP/IP

  • Works on Ethernet network
  • Faster communication
  • Used in SCADA & plant-wide monitoring
  • Suitable for large automation systems

Modbus RTU vs Modbus TCP

FeatureModbus RTUModbus TCP
SpeedMediumFast
CableRS485Ethernet
DistanceLong (industrial field)Network based
CostLowHigher
Use CaseField devicesSCADA & monitoring

Wiring Method (Very Important)

RTU Wiring (RS-485)

You only need 2 wires:

  • A+
  • B-

Important rules:

  • Use shielded cable (prevents industrial noise)
  • Add 120-ohm termination resistor at last device
  • Maintain polarity (A to A, B to B)

TCP Wiring

Very simple:

  • Standard Ethernet cable
  • Connect through network switch

Understanding Modbus Registers

To read or write data, you must understand Modbus memory areas.

Register TypePurposeExample
CoilsDigital OutputMotor ON/OFF
Discrete InputsDigital InputLimit switch status
Input RegistersAnalog ReadTemperature value
Holding RegistersRead & WriteSpeed setpoint

In real projects, holding registers are used most.

Configuring Modbus in S7-200 Smart PLC (Step-by-Step)

Now comes the practical part – programming.

Step 1: Enable Modbus Port

In CPU settings:

  • Select communication port
  • Enable Modbus mode
  • Set baud rate & parity

Parity:

  • 0 = None
  • 1 = Even
  • 2 = Odd

Step 2: Add Modbus Control Block

Inside main program:

  • Use Always ON bit
  • Enable Modbus library control block
  • Set timeout (example: 100 ms)

This converts the port into Modbus protocol mode.

Step 3: Create Modbus Message

Define parameters:

ParameterMeaning
Slave IDDevice number (example: energy meter = 1)
FunctionRead = 0, Write = 1
Register AddressDevice register location
CountNumber of registers
PLC AddressWhere data will store

After execution:

  • Done bit → success
  • Error bit → communication fault

Reading Multiple Devices

You can read many devices on same network.

Example:

  • Slave 1 → Energy meter
  • Slave 2 → VFD

Just create multiple Modbus message blocks and assign different slave IDs.

Automatic Trigger Logic (Real Industry Method)

In real factories, we don’t manually trigger communication.
We use timers.

Timer-Based Data Polling

Example logic:

  • 0–5 sec → Read Device 1
  • 5–10 sec → Read Device 2

This ensures stable communication and prevents network collision.

This method is widely used in:

Common Communication Errors

ProblemReason
No DataWrong slave ID
Communication ErrorBaud rate mismatch
Garbage ValuesParity mismatch
Intermittent FaultNo termination resistor
TimeoutWrong register address

Always keep parameters same in both master and slave devices.

Where Modbus is Used (Real Industrial Applications)

  • Energy meter monitoring
  • VFD speed control
  • Temperature monitoring system
  • Water treatment plant automation
  • SCADA data acquisition
  • Building management systems
  • PLC to SCADA integration

Final Thoughts

Modbus is not just another protocol – it is the backbone of industrial automation communication.
Once you understand:

  • Master-Slave concept
  • Register types
  • Proper wiring
  • Trigger logic

You can connect almost any industrial device to a PLC. By learning Modbus configuration in S7-200 Smart PLC, you can connect PLC with drives, meters, and SCADA systems easily – even across different brands.

For beginners in PLC programming, learning Modbus communication is a game-changer skill because real industrial projects always require machine-to-machine communication.

FAQ – Modbus Communication

What is Modbus in PLC?

It is a protocol that allows PLC to exchange data with other devices like VFD, meters, and sensors.

Difference between RTU and TCP?

RTU uses serial RS485 cable, TCP uses Ethernet network.

Why is RS485 used in industry?

Because it supports long distance communication and high noise immunity.

How does the PLC read energy meter data?

PLC sends a request to the meter register address and receives value in response.

You May Also Like

Aknitech Trading & Project

Plot No. 407/2,
Barkheda Pathani,
near by Awadhpuri Police Station,
Bhopal, MP, India-462022
Phone: +91-7389942094
Email: enquiry@aknitech.in

Designed & Managed by Aknitech