GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - dadahellohello/Modbus: An implementation of the Modbus protocol.

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

5 Commits
5 Commits

Folders and files

NameName
Last commit message
Last commit date
include
include
 
 
src
src
 
 
test
test
 
 
test_mb_ip_auth
test_mb_ip_auth
 
 
test_mb_pdu
test_mb_pdu
 
 
test_mb_rtu_adu
test_mb_rtu_adu
 
 
test_mb_rtu_master
test_mb_rtu_master
 
 
test_mb_rtu_slave
test_mb_rtu_slave
 
 
test_mb_tcp_adu
test_mb_tcp_adu
 
 
test_mb_tcp_client
test_mb_tcp_client
 
 
test_mb_tcp_server
test_mb_tcp_server
 
 
README.md
README.md
 
 

Repository files navigation

Modbus Protocol

Copyright (c) 2016 - 2017 Keith Cullen

Test Applications

To test the PDU library

$ cd test_mb_pdu

$ make

$ ./test_mb_pdu

To test the RTU ADU library

$ cd test_mb_rtu_adu

$ make

$ ./test_mb_rtu_adu

To test the TCP ADU library

$ cd test_mb_tcp_adu

$ make

$ ./test_mb_tcp_adu

To test the IP authentication library

$ cd test_mb_ip_auth

$ make

$ ./test_mb_ip_auth

To test the RTU master/slave

$ socat -d -d pty,raw,echo=0 pty,raw,echo=0

(In a different terminal)

$ cd test_mb_rtu_slave

$ make

$ ./test_mb_rtu_slave /dev/pts/2

(In a different terminal)

$ cd test_mb_rtu_master

$ make

$ ./test_mb_rtu_master /dev/pts/3

To test the TCP client/server

$ cd test_mb_tcp_server

$ make

$ ./test_mb_tcp_server

(In a different terminal)

$ cd test_mb_tcp_client

$ make

$ ./test_mb_tcp_client

Supported Protocol Versions

Protocol Version Supported
Modbus TCP yes
Modbus RTU yes
Modbus ASCII no

Supported Function Codes

Function Code Supported
(0x01) Read Coils yes
(0x02) Read Discrete Inputs yes
(0x03) Read Holding Registers yes
(0x04) Read Input Registers yes
(0x05) Write Single Coil yes
(0x06) Write Single Register yes
(0x07) Read Exception Status (Serial Line Only) yes
(0x08) Diagnostics (Serial Line Only) yes
(0x0b) Get Comm Event Counter (Serial Line Only) yes
(0x0c) Get Comm Event Log (Serial Line Only) yes
(0x0f) Write Multiple Coils yes
(0x10) Write Multiple Registers yes
(0x11) Report Server ID (Serial Line Only) yes
(0x14) Read File Record yes
(0x15) Write File Record yes
(0x16) Mask Write Register yes
(0x17) Read/Write Multiple Registers yes
(0x18) Read FIFO Queue yes
(0x2b) Encapsulated Interface Transport yes

Validation History

v0.1

BeagleBone Black

Debian 9.1

Linux beaglebone 4.4.88-ti-r125 #1 SMP Thu Sep 21 19:23:24 UTC 2017 armv7l GNU/Linux

HP Pavilion

Ubuntu 16.04

Linux HighCreekLinux 4.13.0-38-generic #43~16.04.1-Ubuntu SMP Wed Mar 14 17:48:43 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

About

An implementation of the Modbus protocol.

Resources

Readme
Activity

Stars

0 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.