ModbusMaster v1.0.0 released

Overview

ModbusMaster is an Arduino library for communicating with Modbus slaves over RS232/485 (via RTU protocol). Version 1.0.0 was released on 11 Sep 2016 and includes a number of changes.

Features

The following Modbus functions are available:

Discrete Coils/Flags

  • 0x01 - Read Coils
  • 0x02 - Read Discrete Inputs
  • 0x05 - Write Single Coil
  • 0x0F - Write Multiple Coils

Registers

  • 0x03 - Read Holding Registers
  • 0x04 - Read Input Registers
  • 0x06 - Write Single Register
  • 0x10 - Write Multiple Registers
  • 0x16 - Mask Write Register
  • 0x17 - Read Write Multiple Registers

Both full-duplex and half-duplex RS232/485 transceivers are supported. Callback functions are provided to toggle Data Enable (DE) and Receiver Enable (/RE) pins.

Change log

Full Changelog

Implemented enhancements:

  • Add continuous integration testing with travis #55
  • Add Code of Conduct #54
  • Create PULL_REQUEST_TEMPLATE #49
  • Create ISSUE_TEMPLATE #48
  • Change license to Apache 2.0 #45
  • Set __MODBUSMASTER_DEBUG__ to 0 by default #35
  • Pass Stream object instead of integer reference #17
  • Add LICENSE, convert project to Apache 2.0 #67 (4-20ma)
  • Add example sketch for half-duplex RS485 #66 (kintel)
  • Add continuous integration testing with Travis CI #63 (4-20ma)
  • Add initial .travis.yml configuration #62 (4-20ma)
  • Add CODE_OF_CONDUCT #56 (4-20ma)
  • Add initial PULL_REQUEST_TEMPLATE #53 (4-20ma)
  • Add initial ISSUE_TEMPLATE #50 (4-20ma)
  • Add preTransmission(), postTransmission() for half-duplex #44 (kintel)
  • Disable __MODBUSMASTER_DEBUG__ mode by default #43 (kintel)
  • Add STYLE coding style guide #29 (4-20ma)

Closed issues:

  • Fix documentation references in ModbusMaster.h, .cpp #69
  • Clean up template wording #64
  • Add Label section to CONTRIBUTING #60
  • Update README contact information #58

Merged pull requests:

  • Clean up ISSUE/PULL_REQUEST templates #65 (4-20ma)
  • Add label guidance to CONTRIBUTING #61 (4-20ma)
  • Update README contact information #59 (4-20ma)
  • Add email address to CODE_OF_CONDUCT #57 (4-20ma)
  • Clarify instructions in ISSUE_TEMPLATE #52 (4-20ma)
  • Add ISSUE_TEMPLATE title reqs, separator lines #51 (4-20ma)

License

1
2
3
4
5
6
7
8
9
10
11
12
13
Copyright:: 2009-2016 Doc Walker
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Resources

4-20ma / ModbusMaster
Source Code Documentation
Modicon Modbus Protocol Reference Guide PI-MBUS-300