Hexidecimal MODBUS Register Data
-
Hi,
Is there a simple means of extracting either raw hexidecimal values or Stringified Hex from MODBUS holding registers using modbus4j?
My customer is placing Hex encoded ASCII into Holding Registers. I need to upload the hex to a server and decode.
Example:
Hello World = "48 65 6C 6C 6F 20 57 6F 72 6C 64"
H = 48, e = 65, l = 6C
etc..
Mark -
There is a way, but it isn't very simple. You'd create a bunch of 8-byte unsigned points to gather the hex data, and then use a meta point to convert them to a string.
-
Just so I understand,
I would collect DataType.EIGHT_BYTE_INT_UNSIGNED and then use a Meta Point?
I'm afraid I don't know what a meta point is.-- and thank you for the rapid reply!
Mark
-
Do you have Mango installed? Maybe take a look around and familiarize yourself with it a bit. A meta point is a point within a meta data source.
-
I noted that the JAR files associated with Mango contain class files and not source code. Is the source code no longer available? Is this strictly a commercial product? If so, where and how much is licensing?
-
Look for "Mango M2M Source" here: http://mango.serotoninsoftware.com/download.jsp.