Need to run a VBA class automatically

Join Date
Jun 2016
Location
Venezuela
Posts
29
Why hello, world!

I am in the need of showing a registry from a ControlLogix, Through Factory Talk Site Edition to Excel. I had some issues at first trying to make that registry register ONLY when a Tag on my controller went from 0 to 1, after I managed to make that possible I run into another problem, I needed that class to be running all the time so al my variables are set and declared waiting for that tag on my controller to change from 0 to 1 in order to register.

I did all my code inside the class of a buttonm something like:

Private Sub Button2_released()

***code***

End Sub

So, in that case the class only runs when I pressed the button in my factory Talk Site Edition application.

Trying to make my class run all the time I changed it from the button to the display class, which is always active in the factory, being something like:

Private Sub Display_AnimationStart()

***code***

End sub

Didn't work. I also try changing the class from private to public, didn't work either.

I'll leave the code attached if you want to take a look.
 

Similar Topics

Hi, We develop a small application in ftview se. It runs fine on the laptop were we have studio, communicates with the plc etc etc. Now we...
Replies
4
Views
1,438
Need to run (or transfer license ) FT View Studio 6 on my XP Virtual Machine Morning. Have old FT View projects that were created in 32 bit OS...
Replies
3
Views
5,072
Hi All, When I was busy sorting out the tags on a window that I just imported (changing from ?D:Tagxyz to Tagxyz, only had 10 tags, so to little...
Replies
3
Views
11,081
dear all, i need information how to make automation run at last state after power down. im using cqm1-cpu11, cx-programer v3.10
Replies
10
Views
4,394
I'm fairly new to Rockwell software, I've had some basic training in the past but nothing too advanced. My company and I use Reliable products for...
Replies
9
Views
237
Back
Top Bottom