Closed YuHanChen04 closed 5 years ago
Node Address can't be 0. 0 is reserved for broadcast messages (write only)
Hi,
your Server responds with an error code. One reason could be that one of the functioncodes are not supported by your server, or your trying to read a address which does not exist.
So it is an issue related with your server, not with your code.
@Padanian: Thanks a lot for your contribution, but I don't think thats the reason, because for Modbus TCP the Slave ID isn't used (only for Gateways) and it has to be set to 0xFF or 0.
Sorry, I didn't realize it was modbusTCP.
Sorry for my English.
I followed the video of David Kaleta on Youtube , my code and tool as same as his , and I got some error : EasyModbus.Exceptions.StartingAddressInvalidException: 'Starting address invalid or starting address + quantity invalid'
Here is my code :
Develop tool : Visual Studio 2017 // C# WPF
Please help . Thank you so much ..