Hello,
thanks for your response, unfortunately I still struggle with some details in my implementation, maybe you can help me once more:
I could connect the modbus now with your example but still don’t get the event rised for a Slave 1 Function 17 request … The Listen function is called in a parallel thread but I don’t get the
ModbusSlaveRequestReceived Event rised when my master sends the command. Since I have no access to the master sources (which are inside an application I didn’t make myself) I tried with polling and I see there is data coming from the master but I don’t get the Event from the ListenAsync() …. What could I have done wrong ?
In case I can send you my modbus slave test application project it’s a simple VS Studio application. Maybe you have another master to test with … ?
Maybe I just do something wrong with my Event Handler ?
Best regards and thanks a lot for your help.
Martin
De : nmodbus...@googlegroups.com <nmodbus...@googlegroups.com> De la part de PST
Envoyé : mardi, 15 avril 2025 12:51
À : NModbus <nmodbus...@googlegroups.com>
Objet : Re: Divers problemes avec NModbus4 library under CSharp with dot Net 4.8.1 when trying to create a Modbus Slave with Serial Port
--
You received this message because you are subscribed to a topic in the Google Groups "NModbus" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/nmodbus-discuss/Een-3eglmOc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to nmodbus-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/nmodbus-discuss/d1370564-be81-42e3-b26a-5ba16be275b2n%40googlegroups.com.
You received this message because you are subscribed to the Google Groups "NModbus" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nmodbus-discu...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/nmodbus-discuss/!%26!AAAAAAAAAAAuAAAAAAAAAPwKS4TM/zREqR8qiefSXkEBANlTnCJhprtFudq2LHCBs8EBACQA//8AABAAAABfGUJfjYQfR7O2xLhSe7mYAQAAAAA%3D%40mmm-it.com.
Hello,
Function 17 should respond with the slave name - but no event is raised for the ModbusSlaveRequestReceived.
With Other functions I run into the same problem, no event is raised either …. Would you have a possibility to send me your private email ? I tried to send the project here but the zip files are refused to be attached ….
Maybe you can look in the sources if I do something fundamentally wrong ?
Best regards
Martin
De : nmodbus...@googlegroups.com <nmodbus...@googlegroups.com> De la part de ??? "???-??????"
Envoyé : mercredi, 16 avril 2025 11:38
À : nmodbus...@googlegroups.com
To view this discussion visit https://groups.google.com/d/msgid/nmodbus-discuss/CANQeDMiYcV2ApWmVDLXBW5pgsmmt5qstrQCYjY5RFxOJO%3D%2Be3w%40mail.gmail.com.
With function 3 – same reaction from the master who claims the slave failed to respond
Martin M. Mayr
MMM-IT Sàrl
Ruelle des Oublis 1
2523 Lignières
Switzerland
Tel. +41 (0)32 751 8008
Mobil / WhatsApp +41 (0)79 501 8008
Skype : MartinMaximilianMayr
Email: mm...@mmm-it.com
Web: www.mmm-it.com
De : nmodbus...@googlegroups.com <nmodbus...@googlegroups.com> De la part de mm...@mmm-it.com
Envoyé : mercredi, 16 avril 2025 11:47
À : nmodbus...@googlegroups.com
Objet : RE: Divers problemes avec NModbus4 library under CSharp with dot Net 4.8.1 when trying to create a Modbus Slave with Serial Port