Skip to content

Commit 859da69

Browse files
committed
Initial commit - Learn article update adding Opta compatibility w/ CS-11M format code section
1 parent 56da524 commit 859da69

File tree

1 file changed

+11
-4
lines changed
  • content/learn/05.communication/07.modbus

1 file changed

+11
-4
lines changed

content/learn/05.communication/07.modbus/modbus.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: "Arduino & Modbus Protocol"
2+
title: "Arduino® & Modbus Protocol"
33
description: "Modbus is an open serial communication protocol used for transmitting information over serial lines between electronic devices."
44
author: "Hannes Siebeneicher"
55
---
@@ -9,10 +9,11 @@ author: "Hannes Siebeneicher"
99
This article contains information about the Modbus serial communication protocol and how it can be used together with Arduino hardware. The different elements are highlighted and compatible libraries and boards are shown together with code examples. The following section gives an overview of Modbus compatible Arduino boards and the libraries that you can use to enable Modbus protocol capability. Depending on the hardware you are using, the libraries might vary, therefore it is important to always check your device specifications.
1010

1111
### Modbus compatible hardware
12-
- all boards compatible with the [MKR 485 Shield](https://docs.arduino.cc/hardware/mkr-485-shield) and the [MKR ETH Shield](https://docs.arduino.cc/hardware/mkr-eth-shield)
13-
- all boards compatible with the [Ethernet Shield Rev2](https://docs.arduino.cc/hardware/ethernet-shield-rev2)
12+
- All boards compatible with the [MKR 485 Shield](https://docs.arduino.cc/hardware/mkr-485-shield) and the [MKR ETH Shield](https://docs.arduino.cc/hardware/mkr-eth-shield)
13+
- All boards compatible with the [Ethernet Shield Rev2](https://docs.arduino.cc/hardware/ethernet-shield-rev2)
14+
- [Arduino Opta®](https://store.arduino.cc/pages/opta)
1415
- [Portenta Machine Control](https://docs.arduino.cc/hardware/portenta-machine-control)
15-
- [Max Carrier](https://docs.arduino.cc/hardware/portenta-max-carrier)
16+
- [Portenta Max Carrier](https://docs.arduino.cc/hardware/portenta-max-carrier)
1617

1718
### Libraries
1819
- [ArduinoRS485](https://www.arduino.cc/reference/en/libraries/arduinors485/)
@@ -99,6 +100,12 @@ Using the `readVoltage()` function, defined within the parameters we discussed,
99100
Inside you can see how the `requestFrom()` is being called with *Device Address*, *Function Code*, *Starting Register* and *Register Count* as parameters.
100101

101102
```
103+
/**
104+
Dedicated to read voltage information from a Modbus-compatible Finder 7M.24 energy meter.
105+
106+
@param none
107+
@return Returns obtained voltage information.
108+
*/
102109
float readVoltage() {
103110
float volt = 0.;
104111
// Send reading request over RS485

0 commit comments

Comments
 (0)