I am new in PLCs, and I would like to can send data from the PLC to a PC application that it would be listening and the it could act in consecuence.
For example, the PLC detects an alarm and the it would send this alarm to the PC. The PC receive this message and then does something like send an email, save the data in a database or another things.
I have read the documentation about libraries like Sharp7, S7Net, S7Net Plus and others, but the examples that I see is that the PC reads data from the PLC, but it doesn't receive data from the PLC.
I see an example in which the PC is reading in while / true loop the variables in the PLC, but I guess it is a worse solution buecause it requieres more resources, I think it is better if the PLC could notify the alarm and then PC is just waiting if something happend and handle it when it is notify.
Thanks.