Hey all,
So I took on the task of creating a C# application using the nModBus protocol to communicate between my ClickPLC and my PC. It worked, I am able to read data, write data etc etc.
The problem is....I didn't realize that I have to continually "ping" (request read/write) the PLC for data, and I find this very inefficient, especially since it is only when the PLC input signals high that I want to register an event in my C# application.
So software talk aside....I want my PLC to act as the master, and my PC to act as the slave. I want my PLC to communicate with my PC and tell it to read its data ONLY when it receives a high input signal. This would be much more efficient, especially in terms of a system process standpoint, and ultimately meets the purposes of my task at hand.
Tips, ideas, thoughts? Thanks in advance!
So I took on the task of creating a C# application using the nModBus protocol to communicate between my ClickPLC and my PC. It worked, I am able to read data, write data etc etc.
The problem is....I didn't realize that I have to continually "ping" (request read/write) the PLC for data, and I find this very inefficient, especially since it is only when the PLC input signals high that I want to register an event in my C# application.
So software talk aside....I want my PLC to act as the master, and my PC to act as the slave. I want my PLC to communicate with my PC and tell it to read its data ONLY when it receives a high input signal. This would be much more efficient, especially in terms of a system process standpoint, and ultimately meets the purposes of my task at hand.
Tips, ideas, thoughts? Thanks in advance!