Hi, i'd like to use activex component delivered with DVT senzors (ethernet camera). I added DVTSID activeX component to My Control group on Tools Tab. Then i dragged this control to my Screen in WinCC project. Through this activex component we can play and save images from DVT camera - i think this is not so important.
I have some question about using ActiveX components with some own events like "data_arrival, on_connected" and others.
How to access or how to declare object for ActiveX component used on Screen via VB scripts, which are supported in WinCC?
I tried to use it like this: [script1]
dim objDVTSID
set objDVTSID=hmiruntime.screens(1).screenitem("DVTSID1")
'DVTSID1 is the name of object created by dragging of ActiveX 'componet from My Controls Tab
objDVTSID.remoteport=5000
objDVTSID.remoteserver="127.0.0.1"
objDVTSID.connect
....
if i want to use event on_connect, i have to write another script [script2] and call it from DVTSID >> Properties >> Events >> on_connect...
so the problem is, that after starting the sript2, the object variable objDVTSID from script1 is not valid.
THE PROBLEM IS THAT I DON'T KNOW USE third part ACTIVEX components AND THEIR EVENTS IN WINCC. CAN ANYBODY HELP ME PLS?
HAS ANYBODY SOME EXAMPLE WITH WINSOCK OR SOMETHING SIMILAR WITH EVENTS? THANX
I have some question about using ActiveX components with some own events like "data_arrival, on_connected" and others.
How to access or how to declare object for ActiveX component used on Screen via VB scripts, which are supported in WinCC?
I tried to use it like this: [script1]
dim objDVTSID
set objDVTSID=hmiruntime.screens(1).screenitem("DVTSID1")
'DVTSID1 is the name of object created by dragging of ActiveX 'componet from My Controls Tab
objDVTSID.remoteport=5000
objDVTSID.remoteserver="127.0.0.1"
objDVTSID.connect
....
if i want to use event on_connect, i have to write another script [script2] and call it from DVTSID >> Properties >> Events >> on_connect...
so the problem is, that after starting the sript2, the object variable objDVTSID from script1 is not valid.
THE PROBLEM IS THAT I DON'T KNOW USE third part ACTIVEX components AND THEIR EVENTS IN WINCC. CAN ANYBODY HELP ME PLS?
HAS ANYBODY SOME EXAMPLE WITH WINSOCK OR SOMETHING SIMILAR WITH EVENTS? THANX