06-26-2019 01:20 AM
Hi, I'm trying to write command to my energy meter UEM80-4D R, the query message is correct, I try to change the bps on the meter through writing the command, but the setting on the meter didn't change, I do not know how to get the response message too. Any examples of write single holding register by using the Modbus library will be great.
Thank you
06-26-2019 01:32 AM
06-26-2019 01:41 AM - edited 06-26-2019 01:42 AM
Hi, yes it does support, I write the command based on the example on the datasheet of the meter.
06-26-2019 02:29 AM - edited 06-26-2019 02:31 AM
Hi harry,
those images always show function code 10h=16d…
You use that function code 10h=16d when creating your own "message" indicator.
But you still use that WriteSingleHoldingRegister function! That function is using the ModBus function code 6 - and then your device responds with "unsupported function code"! Have you tried to write to multiple registers?
06-26-2019 03:07 AM
Hi, I just tried what you have suggested, but i still encounter the error.
06-26-2019 03:17 AM