Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched. Close

Raspberry Pi multiple modbus ports

pera
2020-04-01
2020-04-08
  • pera

    pera - 2020-04-01

    Hello,
    I have raspberry Pi (model 3B+ with Codesys 3.5.15.30) with one modbus master RTU (COM port 1) and with UBS to RS485 converter connected to one of raspberries USB port, so I can communicate with slaves on that bus.
    My question is can I add one more modbus master to new COM port (and add one more USB to RS485 converter) to communicate with other group of modbus RTU slave devices?

    Thank you in advance!

     
  • eschwellinger

    eschwellinger - 2020-04-02

    Hi,
    you need this to setup that way:

    Example: ( Adapt your settings to your devices)

    /etc/CODESYSControl_Users.cfg

    [SysCom]
    Linux.Devicefile.1=/dev/ttyS1
    Linux.Devicefile.2=/dev/ttyUSB0

    to have Com1 und Com2 for CODESYS available.

    BR
    Edwin

     
  • pera

    pera - 2020-04-08

    Thank you very much for the information

     

Log in to post a comment.