• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
connecting Mitsubishi via RS485
Hello Armin,

because I cannot see how to set the Node-RED Modbus as slave, I have to set the PLC as slave, even I think this is the wrong way.
Under normal circumstances the PLC should work as server.

Well the Node-RED software we provide consists of a set of preinstalled nodes that others have written in the community.

Each node usually has a hosted web site that explains how to use it. The same applies for the Modbus nodes like this web page shows: https://flows.nodered.org/node/node-red-contrib-modbus. Here all the details are explained. 

Please read this thread https://forum.hilscher.com/Thread-NPIX-R...-available that tells you to activate the RS-485 driver to run in auto-direction control. There is a also a very simple Node-RED flow that you can copy and insert in your Node-RED.

Here a very simple code to use Modbus RTU as master/client to read out a Modbus register from a server (Mitsubishi) with Modbus address (Unit Id) of 1 at a baudrate of 9600,7,1N.


And yes I agree that usually the PLC should be configured to be of type "slave/server" but you need to verify it if this is true.
You never fail until you stop trying.“, Albert Einstein (1879 - 1955)


Possibly Related Threads…
Thread Author Replies Views Last Post
  NPIX-RS485 with auto direction control now available Armin@netPI 11 6,163 May-15th-2020, 10:46 PM
Last Post: EnergyKonnex
  Problems with the communication of the RS485 interface PeterL. 9 4,748 April-28th-2020, 02:53 PM
Last Post: Armin@netPI
  connec Mitsubishi using Modbus/TCP or SLMP COswald 1 2,046 January-8th-2020, 03:24 PM
Last Post: Armin@netPI
  Dual RS485 Ports primmer 2 2,246 September-25th-2019, 09:43 AM
Last Post: primmer
  Connecting two LAN network segments Lingyue 2 3,414 September-9th-2019, 07:45 AM
Last Post: Armin@netPI

Forum Jump:

Users browsing this thread: 1 Guest(s)