OPC Office Link

Join Date
Apr 2002
Location
Just a bit northeast of nowhere
Posts
1,117
Hi!

Does anybody have any experience with this product from Rensen?

Initial results were very promising - point and click your way to OPC data on any networked machine!

My specific questions are :

1. How to save sampled data to an excel spreadsheet instead of access?

2. How to configure to launch a new table (or database / spreadsheet) at a given time of day?

Thanks!

TM
 
I found that this product is most useful if you run it using VBA. You could also link the data to be sampled to cells and use VBA to copy and past the values to another cell/worksheet. If you are not farmiliar with VBA, this code can be generated using the macro recorder.

The following code will schedule the even in VBA:


Public Sub MyTimer()

'This sub will look at the system clock every second. At the "ActionTime", the sub "MySub" will be exicuted.

Dim PauseTime, Start
Dim OneShot As Boolean
Dim ActionTime As String

ActionTime = "08:45" ' Time To start your sub
PauseTime = 1 ' Timer is in seconds.

Do While 1 'Or conditon to break

If Timer < Start + PauseTime Then
DoEvents ' Yield to other processes.
Else
If ActionTime = Format(Time, "hh:mm") Then
If OneShot = False Then Call MySub ' Call your routine here
OneShot = True
Else
OneShot = False
End If
Start = Timer ' Set start time.
End If

Loop

End Sub
 

Similar Topics

Hi, Today I had a workshop @ Siemens about OPC. I can make a connection with the PC WOrkstation Configurator now. And reading a variable in OPC...
Replies
5
Views
3,031
Hello, Can anyone recommend an expandible IO module with OPC UA? I've deployed the Emerson RSTIO-OM module and it works great, but it has a...
Replies
0
Views
46
I am running CCW 13 trying to upload to a micro 820 vers.12 I get an output message OPC server is unable to load project controller. Please help!
Replies
5
Views
273
I know nothing about simaticnet OPC server. I do know Kepware. I would only ever scale raw to engineering in the PLC, but it is possible to scale...
Replies
5
Views
229
If anyone has a crack for IBH OPC Server, please send it to: [email protected] Urgently. Thanks in advance!
Replies
1
Views
140
Back
Top Bottom