Hi Folks,
First of all, thanks for a great HMI application.
I'm new to VB.net development and am learning programming as a hobby.
I'm developing an application that will allow the user to connect to a PLC, enter PLC tags / topics in textboxes and plot the variables in a chart, then it will save the chart as a .gif image at a set time interval.
For the final version I'll be using EthernetIPForCLXCom driver to connect to the PLC.
PLCs are Allen Bradley.
I'm currently developing with OpcDaCom driver as I'm testing with KepServerEX6 with simulation tags.
I can get it to work perfectly when the form loads / unloads, but:
1) How can I connect when the user clicks a connect button, instead of when the form loads?
2) How can i disconnect when the user clicks a disconnect button, instead of when the form closes?
3) How can i achieve this with an example for each of the driver components above?
Idea is that the user can disconnect using button, enter new tag address / topic in textbox, click connect, then it starts plotting again, without closing / opening the form.
The plotting is the easy bit, the hard part for me is wondering what code to update in the driver code.
Note:
OpcDaCom driver is for development only, reading KepServerEx 6 simulation tags.
EthernetIPForCLXCom driver will be used to connect to Allen Bradley PLC when project is complete.
Any advice would be greatly appreciated, as i am struggling to figure out the connect / disconnect using buttons part.
Thanks in advance,
Regards,
Conor