When I am reading through the documentation for the PLC Handler, there is a derivative class for listening for any state change information from the PLC. However, the documentation does not provide any information on how to use this class. The documentation states that the PLCHandler state changes will call the Notify() method of the class.
What is the correct way to listen for these notification messages? Do I need to overload the class to create my own notification method? Since I am writing my application is Visual C++, I would like to create an event handler to raise an event on the Notify method.
Can you please provide any documentation or examples on how to use this class?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Anonymous
-
2012-02-06
Originally created by: crthomas1234
UPDATE:
So I found that you do need to overload the class as the Notify() and Destructor() methods are virtual. Then you can write your own code for the Nofity() method to handle whatever special cases you are looking for.
In the end, I think the best thing will be to create an event handler for my form control class to listen for Notify() events and then handle them as I need.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Originally created by: crthomas1234
When I am reading through the documentation for the PLC Handler, there is a derivative class for listening for any state change information from the PLC. However, the documentation does not provide any information on how to use this class. The documentation states that the PLCHandler state changes will call the Notify() method of the class.
What is the correct way to listen for these notification messages? Do I need to overload the class to create my own notification method? Since I am writing my application is Visual C++, I would like to create an event handler to raise an event on the Notify method.
Can you please provide any documentation or examples on how to use this class?
Originally created by: crthomas1234
UPDATE:
So I found that you do need to overload the class as the Notify() and Destructor() methods are virtual. Then you can write your own code for the Nofity() method to handle whatever special cases you are looking for.
In the end, I think the best thing will be to create an event handler for my form control class to listen for Notify() events and then handle them as I need.