![]() ![]() When data from PLC is received it will be processed in ProcessData(). ![]() Then during the execution of the program we will only use Talk2PLC() to communicate with PLC, we will call this method several times. The way it will work will be: When project starts, we open serial communication with PLC. Close()-> Close serial communication with PLC.Talk2PLC()-> Sends data to PLC and waits to receive back data and read it.Open()-> Opens serial communication with PLC.I wanted to create a class for serial communication (between PC and the PLC) with separated methods: ![]() Each time I send data to the PLC it will send me data back and we don't know how much time it will take him to send me back (Some millisconds but don't how much). I want to talk to a PLC, via serial communication. I was wandering if it's possible to do (and it's well implemented) my next question: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |