Ad Widget

Collapse

Modbus comunication failure with some devices

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sytec
    Junior Member
    • Feb 2026
    • 1

    #1

    Modbus comunication failure with some devices

    Hello,
    I have a trouble reading modbus values from a solar plant inverter.
    I configured the zabbix agent, but when I try to read the values I receive the timeout error.
    I have other devices configured and working on same agent. Agent is running on Ubuntu 24.04.

    zabbix_agent2.conf
    Plugins.Modbus.Sessions.MB1.Endpoint=tcp://10.1.66.35:502
    Plugins.Modbus.Sessions.MB1.SlaveID=1
    Plugins.Modbus.Sessions.MB1.Timeout=5

    Plugins.Modbus.Sessions.MB2.Endpoint=rtu://ttyr00:19200:8e1
    Plugins.Modbus.Sessions.MB2.SlaveID=1
    Plugins.Modbus.Sessions.MB2.Timeout=10


    Plugins.Modbus.Sessions.MB13.Endpoint=tcp://10.1.66.10:502
    Plugins.Modbus.Sessions.MB13.SlaveID=16
    Plugins.Modbus.Sessions.MB13.Timeout=10



    This is the error received from Zabbix Agent
    zabbix_agent2 -t modbus.get[MB13,,3,32089,1,uint16]
    modbus.get[MB13,,3,32089,1,uint16] [m|ZBX_NOTSUPPORTED] [Unable to read: read tcp 10.1.66.5:41936->10.1.66.10:502: i/o timeout]
    ​zabbix_agent2 -t modbus.get[MB13,,3,32090,1,uint16]
    modbus.get[MB13,,3,32090,1,uint16] [m|ZBX_NOTSUPPORTED] [Unable to read: read tcp 10.1.66.5:53044->10.1.66.10:502: i/o timeout]

    zabbix_agent2 -t modbus.get[MB13,,4,32089,1,uint16]
    modbus.get[MB13,,4,32089,1,uint16] [m|ZBX_NOTSUPPORTED] [Unable to read: read tcp 10.1.66.5:49132->10.1.66.10:502: i/o timeout]



    With mbpoll the comunication works
    mbpoll -a 16 -t 4 -r 32089 -o 2 10.1.66.10
    mbpoll 1.0-0 - FieldTalk(tm) Modbus(R) Master Simulator
    Copyright © 2015-2019 Pascal JEAN, https://github.com/epsilonrt/mbpoll
    This program comes with ABSOLUTELY NO WARRANTY.
    This is free software, and you are welcome to redistribute it
    under certain conditions; type 'mbpoll -w' for details.

    Protocol configuration: Modbus TCP
    Slave configuration...: address = [16]
    start reference = 32089, count = 1
    Communication.........: 10.1.66.10, port 502, t/o 2.00 s, poll rate 1000 ms
    Data type.............: 16-bit register, output (holding) register table

    -- Polling slave 16... Ctrl-C to stop)
    Read output (holding) register failed: Connection timed out
    -- Polling slave 16... Ctrl-C to stop)
    [32089]: 1510




    ​Thank you
    Regards
Working...