HMI Application using VB6.0
HMI Application using VB6.0
(OP)
Good Morning,
I would like to ask a simple question, which will hopefully generate an equally simple answer. What link is needed to link a VB6.0 user interface with a PLC (specifically AB Micrologix Series C). I have heard of ActiveX DLL Drivers etc. but, as an Industrial programmer only, this means very little. I am proficient in both AB PLC logic and VB6.0 but lack the stuff in between. Does anyone know of a helpful link and/or alternative resource? Much obliged.
I would like to ask a simple question, which will hopefully generate an equally simple answer. What link is needed to link a VB6.0 user interface with a PLC (specifically AB Micrologix Series C). I have heard of ActiveX DLL Drivers etc. but, as an Industrial programmer only, this means very little. I am proficient in both AB PLC logic and VB6.0 but lack the stuff in between. Does anyone know of a helpful link and/or alternative resource? Much obliged.





RE: HMI Application using VB6.0
RE: HMI Application using VB6.0
thanks for getting back to me. Have you ever used SDK or Gateway? The single-node, as you said, is good for DAQ, but is it good the other direction? Does it allow RSLinx to become the DDE client and the API to become the DDE server? Can't tell I'm reading the 'RSLinx Getting Results Guide' can you? Again, I'm creating an external SCADA with VB6.0 and require my rung logic to respond to the VB6.0 code permissives. i.e. the radiobutton true value actuates I:000/00 on my MicroLogix1200. So I guess, short story long, I want VB6.0 to be 80% of the inputs for the rung logic.
RE: HMI Application using VB6.0
RsLinx will allow bi-directional DDE communications. It will also allow a type of more advanced communications called OPC. See www.opc.org The only caveat is that you must use RsLinx OEM or Pro. The Lite version will not work.
The question I have is why re-invent the wheel. There are available many low cost HMI programs that run on the PC. Check out www.kep.com.
Also whichever HMI you use, it will not be able to set the value of the input space on the processor. It can read this data, but writes to it will be overwritten by the PLC scan process. You must write to the data memory areas (N7, F8, B3 etc).
RE: HMI Application using VB6.0
Thanks for the excellent information. I agree; my goal is not to re-invent the wheel, therefore, you have just saved me a lot of time and energy. Cheers!
RE: HMI Application using VB6.0
http://www.insourcess.com/store/docs/41232123.pdf
This company created an ocx which is the pipeline between the ab plc and your vb6 software. Just a little bit of research on the topic of active x controls and ocx files will give you a good understanding of how this technology works.
This link actually downloads the AB DF1 Serial Active X Driver for communicating with SLC500 / MiicroLogix / PLC5 driver with Modem support:
http://www.consolitech.com/download/VBControlComm6.EXE
By inserting this into your vb6 project the ocx driver components become a tool in your VB toolbox. You can then utilize this driver to communicate with your plc.
So the main point that I am trying to get across is, you have the driver that will work with vb6 or vb.net and all you need to do is familiarize yourself with how an active x control works within vb then implement your code. So do a google search with the following keywords "active x tutorial vb6" You will get many different sites that provide small examples of how to use active x controls and if your already familiar with vb6 coding then this will not be to hard.
Also, Wonderware will talk with vb6 or vb.net via active x controls. So that is another option.
Hope this info helps.
For prefessional plc, hmi, scada, and electrical engineering visit PLC Automation, Inc. at http://www.plcintegrator.com
RE: HMI Application using VB6.0
RE: HMI Application using VB6.0
For prefessional plc, hmi, scada, and electrical engineering visit PLC Automation, Inc. at http://www.plcintegrator.com
RE: HMI Application using VB6.0
The resource that I used to get started was "Home Automation Basics" by Thomas Leonik, which was obtained from Amazon.
For me (PLC background) it provided a basic starting point for using VB to communicate to PLC's. I have used this in some demo systems as well as systems that would need periodic data collection or intermittant operator interface requirements.
RE: HMI Application using VB6.0
RE: HMI Application using VB6.0
First you get an OPC server for the AB PLC such as KepServer, and configure that to connect to your PLC, making the variables you are interested in available as tags or OPC items as they are known. Then it's a simple matter of using OPCWare Client Developer (http://www.opcware.com) to link the OPC tags to your VB controls using straightforward property pages.
For example the text property of a textbox or the value property of a progress bar can be bound to the values of specific OPC items, and they will update automatically. No code is necessary to do this reading, everything can be set up using the mouse. See OPCWare Client Developer (http://www.opcware.com) to download a free 30 day fully functional demo.
RE: HMI Application using VB6.0
Regards,
Dave
RE: HMI Application using VB6.0
RE: HMI Application using VB6.0
http://forum.mrplc.com/index.php?act=Downloads&CODE=01&cat=40
Chris Elston
Automation & Controls Engineer
http://www.mrplc.com
Download Sample PLC Ladder Logic Code
at MrPLC.com