Writing negative value to register via modbus tcp/ip

I'm trying to get my inverter to charge battery from grid thru modbus tcp/ip.
I finally got an answer from Fronius support, what values to which registers I need to write.
Writing to single registers works fine, but I have difficulties in figuring out two things:

  1. How do I write a Negative value (-5000) to a register?
  2. How do I write to multiple (4) registers, that is not in a sequence right after eachother (register 40349, 40356, 40357, 40361)?

I have attached an email snip from Fronius support and the relevant register map.

Email snip_Fronius

Ps. I'm able to write with FC16 successfully to single registers + multiple registers in a sequence (just not negative values or registers out of sequence)

Thanks in advance,

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.