Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

PLC to Excel How can I Start a Macro From PLC

Status
Not open for further replies.

RayfromIntech

Electrical
Jun 2, 2003
34
I am using Excel 2000 with a SLC503 Allen Bradley.
How can I for example

If N7:1/0 = 1 Then run a macro.

Is there some way of monitoring the PLC information and immediatly reacting to it and this is the key WITHOUT LOOPING A MACRO TO SCAN DATA.

Note I am familliar with how to communicate just want to start a macro base on data change.

Appreciate yours solutions and or comments

Best regards
Raymond
 
Replies continue below

Recommended for you

Ray, I suggest you try posting this questions in the PLC forum on this site (forum791) and perhaps consider posting at as well.
 
Try this

ActiveWorkbook.SetLinkOnData &quot;<DDE link Info e.g \\PCName\Aplication|Topic!'N7:1/0'&quot;, &quot;MyMacro&quot;

I've used this a lot to monitor change in values you have to check as it runs macro when value changes not just when it equals 1.

Jezz
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor