question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Using environment variables for connection parameter in modbus client configuration

See original GitHub issue

I’m submitting a … (check one with “x”)

Feature

  • (x) feature request

What is the motivation / use case for changing the behavior?

I created a subflow that represents a single modbus device. In my main flow, I want to use multiple instances of this modbus device, each of the device having another IP address. Currently, I cannot use a subflow for this because the IP address is fixed inside the subflow itself and cannot be configured, e.g. using an environment variable.

Current behavior

The IP address of the the modbus client inside a subflow is fixed and cannot be edited (e.g. using an environment variable).

Expected behavior

The connection parameter (IP address, port) of the the modbus client inside a subflow should be editable, e.g. using environment variables.

Minimal reproduction of the problem with instructions

  1. Create a subflow including a Modbus Flex Getter
  2. Configure the modbus client for the Modbus Flex Getter
  3. The IP address and port cannot be configured using environment variables

Your Environment

Please tell us about your environment:

  • (x) I am using just the Node-RED package and got modbus-serial package installed with it
  • ( ) I have installed modbus-serial package global from source (using git clone)
  • ( ) I have installed modbus-serial as a global package (using npm i -g)

Yes, modbus-serial is the name but it does all, TCP and Serial. The node-modbus package is just for the Modbus Server node.

  • Device :

    • ( ) macOS: v
    • ( ) Linux: v
    • ( ) Windows: v
    • (x) Raspbian: Buster
    • ( ) Other:
      • Name:
      • Version:
  • Description of the connecting Modbus system:

    • Name :
    • Version:
    • Vendor :
    • Link : https://
  • node-red-contrib-modbus version: v5.13.3

  • Node: (min. 10.x) node --version = v14

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:22 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
biancodecommented, Feb 12, 2022

Thanks to all for the great discussion! Maybe that issue could be closed now?

1reaction
bernhardkurzcommented, Dec 28, 2021

definitely many thanks to @biancode as also to the community

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuring Modbus TCP Communications in Siemens TIA ...
In this tutorial we'll cover how to configure a Siemens S71500 PLC as both a Modbus Client and Modbus server, we will learn...
Read more >
How to Use Node-Red with Modbus
A quick overview of modbus nodes and how to use node-red to read data from a modbus device. We look at 16 bit,...
Read more >
Modbus TCP Setup
Welcome. This video will demonstrate setup and basic procedures for communicating with your FUSION Controller using the Modbus TCP Fieldbus over an Ethernet ......
Read more >
MODBUS TCP/IP Communication Between Client and ...
Configure Client Model and Calibrate Parameters · Enter the unique IP address of the server device in the Slave address parameter. · Select...
Read more >
How to Configure MODBUS TCP/IP in Proficy HMI/SCADA
To configure the MODBUS TCP/IP protocol to communicate with other MODBUS TCP/IP compliant devices not in this list additional configuration is required.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found