Conditional DDE Block Read

sparky64

Member
Join Date
May 2003
Location
Newcastle upon Tyne
Posts
127
Hi

I'm trying to read a block of 10 values from a plc, based upon time or a signal from the plc. I have managed to setup the links and have used the VBa function in excel so when i manually run the vba macro from the macro start button, i read the 10 values no problem, but how do i automate this, so that, say at 7:30am, 3:30pm & 11:30pm the macro will run and read the values in to the excel spread sheet.

Any help appreciated

Cheers
Sparky
 
The simplest way may be to use Windows Scheduler (in Control Panel on 2000/XP) to launch excel with a startup macro to read the values, save the workbook, and close it.
 
HI rdrast

thanks for the reply.

I was going to do it that way, but thought there must be a better way of doing it, as that way relies on someone saving the spreadsheet, and as this is going to be for operators to use, i don't want them to have to do anything at all, just view the spreadsheet when they want information.

cheers
Sparky
 
It doesn't have to rely on someone saving the spreadsheet...you can have the excel macro take care of that too.
 

Similar Topics

Hi I have a Crimson 3.1 project which have conditional images and buttons managed by parameters shared with a PLC across a Modbus interface...
Replies
2
Views
876
In GT designer 3, the rig operator wants me to display a text string on the screen when a bit goes TRUE, and make it disappear when the bit goes...
Replies
5
Views
1,915
I have 7 input meters to my Red Lion HMI and I need to get 4 readouts on the panel which give the sum of all of meters selected for that output...
Replies
4
Views
1,724
Hi all. I am attempting to have a button open up a popup screen but only if a certain controller tag has a value > 10. I have played around with...
Replies
3
Views
3,530
Hey guys, I'm working on an existing system where the old programmer (from like 25 years ago) used a bunch of conditional scripts in Wonderware...
Replies
2
Views
1,757
Back
Top Bottom