How to Program an Arduino as a Modbus TCP/IP Client & Server
Learn how to create your own Modbus TCP/IP Client and Server Device using the Arduino Uno Development System.
What You Will Learn in this Course
FREE PREVIEWCourse Execution Plan
FREE PREVIEWAccessing Attached Resources
Contacting Your Instructor
The Hardware List
FREE PREVIEWThe Arduino Uno
The Ethernet Shield for Arduino Uno
Network Connection Overview
Hardware Setup on my Workbench
The Arduino Programming Software
The Modbus Libraries
Modscan32 and Modsim32
A look at the Programming Software - Arduino IDE
Our First Program - Testing Serial Comms
FREE PREVIEWUsing Serial Comms to display the value of a Variable
Additional Code to support Modbus TCP Server Operation
Adding Code to Implement Modbus TCP Server Functionality
One Last Change Before Running the Arduino Sketch
Running our First Arduino Modbus Server TCP Application
Adding Code to Read a Holding Register
Adding Code to Read an Input Status
Adding Code to Read a Coil
Understanding the Modbus TCP Client Operation
Configuring the Modbus TCP Client Library in the Arduino IDE
Removing the Modbus TCP Server Code from the Existing Application
Writing Setup Code to Support the Modbus TCP Client Services
Writing the Code to Poll a Single Register in the Modbus TCP Server
Testing the Initial Modbus TCP Client Application
Writing the Code to Read the Other Modbus Register Types
One Last Change Before Running the Arduino Sketch
Testing the expanded Modbus TCP Client Application