Designer or ViSi: Modbus RTU How to Read Output Coils
Introduction
This codebase example demonstrates how a DIABLO-16 display module can be used as a Modbus RTU client or master device. The display module communicates with a Modbus RTU server or slave simulator software application running on the PC. The DIABLO-16 display module used in this codebase example is the uLCD-35DT. The Modbus RTU server/slave simulator software used is the pyModSlave.
Prerequisites
This codebase example assumes the reader can program the 4D Systems display module using Workshop4 IDE designer environment. Beginners are advised to read the following aplication notes.
- Designer: Getting Started - First Project
- Designer or ViSi: How to Draw Pixels and Lines
- Designer or ViSi: How to Draw Circles and Rectangles
- Designer or ViSi: How to Draw Triangles and Polygons
It is also assumed that the reader has a working knowledge of the Modbus RTU protocol.
Instructions
Follow the procedure below to run this example. The reader is also advised to watch the accompanying video.
- Extract the content/s of the Workshop4 Project zip file to a folder.
- Open the project in Workshop.
- Compile the project source code and download or upload the program to the target display module (a uLCD-35DT in this codebase example).
- Download the Modbus RTU server/slave software application from here.
- Open and configure the Modbus RTU server/slave software application. See the video for details.
- Touch the display module to start the demo.