Wednesday, April 15, 2009

SOLUTION1

Hi,Several weeks ago, I have tried to develop an ActiveX component for WinCC Flexible, however it was not efficient at all:
http://forums.mrplc.com/index.php?showtopic=16153
F inally I found an acceptable solution for my project (created several events for different informations); however it may not be useful for DA. WinCC flexible is not mature enough to use with ActiveX, and SIEMENS does not guarantee to work with 3rd party ActiveX components. So forget any solutions including ActiveX.
I feel that the best way may be building a dll or calling existing dll files of NI via VB script, I think that you need an algorithm as below:- Open / call Dll file- Create a connection to NI device- Get your data- Close the NI device connection
and call this script periodically. Unfortunately, I could not find a timer component to trigger a script periodically, however you can do it by periodically altering a value in PLC, assigning this value to a tag and linking your script to the OnChange event.
Seems painful.
Best Regards,Moosty---http://indanotes.blogspot.com

No comments:

Post a Comment