JamesEspy
Electrical
- Aug 19, 2004
- 8
I'm very new to OPC and VB. I have a project where I am using a barcode reader to read a barcode to an RSLogix register. I would like VB to monitor this register through RSLinx and OPC.
I would like VB to retrieve this barcode and set it in a VB text box. The project is actually much deeper than this, but if I can accomplish this then I should have no problem finishing the rest.
My biggest question is how does the VB program reference the tags? I have used DDE in the past and understand how DDE references items, but we need to use OPC for flexibility issues in the future. I have set up an opc server and a group so far. Does anyone have any sample code that might help me with this application?
I would like VB to retrieve this barcode and set it in a VB text box. The project is actually much deeper than this, but if I can accomplish this then I should have no problem finishing the rest.
My biggest question is how does the VB program reference the tags? I have used DDE in the past and understand how DDE references items, but we need to use OPC for flexibility issues in the future. I have set up an opc server and a group so far. Does anyone have any sample code that might help me with this application?