B4J Code Snippet Modbus TCP server - slave - restricted functionality

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.
 

Attachments

  • ModbusTCPseverCLI2.zip
    32.5 KB · Views: 498
Top