Setting Data Points in Modbus IP using HEX Addresses
-
Hello Again!
I am trying to set my data point finding a hex address of 1 word=2 byte (type 0x3502 for example). I set it as input register of 2 byte integer and as every other try that i made, i didn't take response, just null (0) value.
My source device configured as modbus/ip with its local ip address.Any idea?
Thank you.
-
Hi Nikospps,
I'm not really sure what you mean, can you post some screenshots?
It sounds like you are trying to set a value to an input register, but these registers are not writable.
Maybe you're just reading data. Addresses in Mango are in decimal, so you'll have to convert that address into decimal, 13570. That looks like it would be in the input status range?
-
For example i am trying to set this address. It's not the first time that i try this. The problem is that using input register with 2 byte signed/unsigned and swapped integer (yes i used every possibility) it gives me null value.
Using another freeware to check the values (modscan) gave me right the value (not null of course), but i use hex addresses in my display configuration.
-
Is it possible the address bytes in that doc are flipped? 0x3000 --> 00 30 --> 48? Weird that the chart goes 0x3000, 0x3100
Also bear in mind Mango's first modbus index is 0, while sometimes documents can start their indexing at 1. Therefore, you may need to subtract 1 from the offset.
-
Flipped addresses? You may be right.
Another one example, of this manual:
-
Hmm, probably not flipped address bytes. Have you tried reading the other register ranges, or just used the bulk tool to read large blocks of data? Can you post a screenshot?
-
When you said "bulk tool", you mean in Mango? Or an external tool?
-
Yeah, in Mango, on the modbus data source edit page,
-
I used both Modbbus read data and locator test, and the values that i received where null.
In locator test i gave as offset the value (0x3702-->3702, input register and 2 byte signed/unsigned integer and swapped integer) and i also took null values.
I tried everything before the post. -
You seem to not post screenshots of this 'null'. Are you getting an error? Have you checked your ma.log file while you are doing this?
-
[SOLVED]
Hopefully that i found the solution, which was easy. I converted hex->decimal and used the result as offset gave me values.
I will finish my effort and keep you informed. -
@nikospps said in Setting Data Points in Modbus IP using HEX Addresses:
[SOLVED]
Hopefully that i found the solution, which was easy. I converted hex->decimal and used the result as offset gave me values.
I will finish my effort and keep you informed.Yeh I've found I have had to convert the hex address to decimal (using Google's friendly calculator) and it works almost every time.
Dan