MangoAutomation / modbus4j

A high-performance and ease-of-use implementation of the Modbus protocol written in Java. Supports ASCII, RTU, TCP, and UDP transports as slave or master, automatic request partitioning and response data type parsing.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to read write Strings on Modbus TCP

jederfreitas opened this issue · comments

Could you give me an example showing implementation of read and write Modbus Registers on TCP?

E.G.: register 10, value: "test"

Thank you

modbus don't support string at protocol level,you can translate it use ASCII code at applicaiton level, for example "test" can translate to 74 65 73 74.