robertkeenan
Technical User
I work with PLC's and have a machine connected to a PC for recording data. To read the data from the PLC I use software called KEPDirect (KEPDirect for PLCs is a 32-bit windows application that provides a means of bringing data and information from a wide range of industrial devices and systems into client applications on your windows PC.)My PC runs Win XP with SP2 and has Access 2003 on it. When I open the main form a connection is made to KEPDirect as follows
Channel_C = DDEInitiate("kepdirectdde", "Test_C")
Using a form timer I check every 3s to see if the machine has finished its test and save the data.
finished = DDERequest(Channel_C, "StartTransfer")
My problem is that the data can be avaiable at any time and while the 3s timer is running the PC becomes rather dead, and there is no chance of working with Access to view previous results. Is there any way of seeing the change in the value of "StartTransfer" and using this to initiate the event to save the data.
Channel_C = DDEInitiate("kepdirectdde", "Test_C")
Using a form timer I check every 3s to see if the machine has finished its test and save the data.
finished = DDERequest(Channel_C, "StartTransfer")
My problem is that the data can be avaiable at any time and while the 3s timer is running the PC becomes rather dead, and there is no chance of working with Access to view previous results. Is there any way of seeing the change in the value of "StartTransfer" and using this to initiate the event to save the data.