B4J Code Snippet Modbus TCP server - slave - restricted functionality

Discussion in 'B4J Code Snippets' started by Coldrestart, Aug 26, 2019.

  1. Coldrestart

    Coldrestart New Member Licensed User

    Hello everyone,

    Here a small quick and dirty implementation of the modbus TCP protocol in B4J as a server / slave.
    Please note that this is not a complete library!
    The following limitations are:
    -Only READING (not writing) of holding registers possible by modbus master(function code 03) from 0-200
    -Example in NON gui application
    -No error code implementation (send to master), only some error info in the logs locally

    I made it just to get some data out of a raspberry pi.
     

    Attached Files:

    DonManfred, Erel and inakigarm like this.
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice