Skip to content

alexander-nik1/emodbus

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project:
A library, that implements a modbus protocol.

Prerequisites:

1) At the moment, I want to summarize all the experience gained in the modbus.

2) I saw a variety of incomplete implementation of this functional, and each
implementations plainly can not be moved to different platforms.

3) I want to create a fully portable sources, that can be work anywhere.
On such platforms like AVR, MSP430, ARM, with OS and without it.

**************************************************************************
Goals:

1) Realisation of modbus 1.1 protocol.

2) A most compilers must be able to build it.

3) Dependency of external libraries should be minimised.

4) A structure should be soft and simple.

5) In project can be used C language only. (exclude wrappers)

6) Structure should be able to create a simple wrappers.

**************************************************************************
At the current time are ready:

The Modbus transport:

Modbus-RTU
Modbus-TCP

The server functions:

0x01 (Read Coils)
0x05 (Write Single Coil)
0x0F (Write Multiple Coils)

0x02 (Read Discrete Inputs)

0x03 (Read Holding Registers)
0x06 (Write Holding Register)
0x10 (Write Holding Registers)
0x16 (Mask Write Register)

0x04 (Read Input Registers)

0x14 (Read File Record)
0x15 (Write File Record)

0x17 (Read/Write Registers)

0x18 (Read FIFO)

The client functions:

0x01 (Read Coils)
0x05 (Write Single Coil)
0x0F (Write Multiple Coils)

0x02 (Read Discrete Inputs)

0x03 (Read Holding Registers)
0x06 (Write Holding Register)
0x10 (Write Holding Registers)
0x16 (Mask Write Register)

0x04 (Read Input Registers)

0x14 (Read File Record)
0x15 (Write File Record)

0x17 (Read/Write Registers)

0x18 (Read FIFO)

**************************************************************************
Alexander Kovylin, alex.northfield@gmail.com
05.2016.

Thank you.

About

A modbus library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published