Hello Guest it is March 28, 2024, 04:53:00 PM

Author Topic: Modbus Basic Step By Step Manual with Examples  (Read 655 times)

0 Members and 1 Guest are viewing this topic.

Modbus Basic Step By Step Manual with Examples
« on: March 10, 2021, 05:21:00 PM »
Here's a document with examples of how to use basic read/write registers and coils via Modbus in Mach4 using very cheap and simple hardware. I made this for a class I am teaching and thought it might be helpful to others.

It includes the following examples:
1. Activate Output Example (Write Coil)
2. Monitor Inputs Example (Read Coils)
3. Read Register Example (Read Holding Registers 16bit)
4. Write Single Register Example (Write Single Register 16bit)
5. Write a Decimal Value using Two Registers (Write Multiple Registers 16bit)
6. LUA Mach4 Read/Write Access of Modbus Holding Registers

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Modbus Basic Step By Step Manual with Examples
« Reply #1 on: March 10, 2021, 09:50:16 PM »
Wow...  Nice job!  You have the heart of a teacher, so it seem appropriate that you are teaching a class.  :)

Steve