Read/Write OPC Tag in Genesis Script

M

Thread Starter

Mark Meng

Dear List Members,

I am using Genesis (VBA integrated) to developing UI. VBA script is able to get screen objects even local tags quite easily, but no functions
provided in the package to access OPC tag directly from the VBA. Anybody has experience of this?

Thanks and Regards,
Mark
 
Mark,
ScriptWorx32 that comes (free of charge) with Genesis32 is our scripting package based on VBA 6.0. If you use ScriptWorx32 to create your scripts, you can enter a new script via the "Edit" menu. Then add an "Event script"
and in so doing, you will see a button entitled "Expression Editor". Selecting this will give you access to the OPC tags.
Regards,
Phil Koehler
NE Regional Sales Mgr.- ICONICS
Ph: 610-918-8346 Fax: 610-918-8347
email: [email protected]

"OPC Automation at Your Fingertips"
 
V

Victor Morozov

You can add to VBA project mdlOpcAutomation class
(..\bin\ScriptWizard\OpcAutomation) and add reference OpcAutomatin 2.0 in Tools\References it allows you to use functions GetOpcValue and SetOpcValue.
Regards,
Victor Morozov
email: [email protected]
 
Top