Is there something I have to add to code to close com port before form closes?
When I first power up my pc, the application will run fine. If I close the application and re open it, it wont find the PLC again and no data gets received; looks like com port is busy or something.
If I restart my PC and restart the AdvancedHMI application it will start again no problem.