I have got a couple of AccuEnergy energy meters that I need to read values from. I have been able to read values using Modbus Poll. But no such luck with Ignition.
I have added one of the meters to device connections with Modbus TCP as the protocol. The IP Address is correct and zero-based addressing is checked.
with 'HRF0', I was expecting the two registers at 4000H and 4001H to be read and converted to a Float. However, the value is being displayed as 'Uncertain_InitialValue'.
What am I doing wrong? Has anyone worked with AccuEnergy meters? Any guidance would be awesome.
Use HRF16384 or 1.HRF16384. You may also need to configure the Ignition device's advanced settings to use Zero-Based Addressing, and possibly also Swap Words.
On MODBUS devices, I usually start with just trying to read the individual registers as a INTs. It serves as a sanity check that data is actually reading before jumping to the more complex forms.
As @pturmel pointed out, you need to use the decimal addresses, but I just wanted to note that I think on the hex version, you are confusing the leading 4 as a 4xxxx style holding register, but when you convert to decimal you get the 16384 for 4000h meaning in any other software that you use the 4xxxxx style to read holding registers you'd need to prefix that value with a 4 (416384). Ignition doesn't use this format, so use the addressing like previously shown.