I am trying to use the PAC Control integration kit.
Using PAC version R10.4c.
I have a device that has data held in two registers as floats. Here is a screenshot from the manual:
I want to retrieve the probe_value that is held in registers 3 and 4.
My issue is that I am not sure how to get 1 value out of 2 registers.
I am a somewhat familiar with the Modbus integration kit, I think I am just not setting it up correctly.
I have tried both these configurations and neither has given 1 number as a value:
PH17_subStatus = O22Modbus03ReadHoldingRegistersAsInt(chWWTP_01, PH17_Parameters, 4, 4, intTable_Test1, 1, PH17_Status);
PH17_subStatus = O22Modbus03ReadHoldingRegistersAsFloat(chWWTP_01, PH17_Parameters, 4, PH17_ph, 1, PH17_Status);
I have also tried moving the starting register + and -1, and also tried increasing the NumReturnValues
I can read the modbus_address using 1 as the starting address as an uint, but can’t get any floats working.
Could somebody please point me in the right direction or let me know what is wrong?