×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

PLC to Excel How can I Start a Macro From PLC

PLC to Excel How can I Start a Macro From PLC

PLC to Excel How can I Start a Macro From PLC

(OP)
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

RE: PLC to Excel How can I Start a Macro From PLC

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

RE: PLC to Excel How can I Start a Macro From PLC

Try this

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

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources