Sign in to follow this  
Followers 0
Jake104

FTview 7.0 - ho do I run a VBA routine every 5 seonds?

2 posts in this topic

How do I set up a timer-based event?

I would like to run e specific VBA routine every 5 seconds. How is that done?

Can I somewhere define a timer on the FTview-application or on the Display to run a routine every 5 seconds?

In iFix of WinCC I can just define a timer like this - and I looking for the equivalent in FTview.

Share this post


Link to post
Share on other sites

Events have an 'interval' function that allows you to fire an event after a particular interval of time.

INTERVAL("5sec") I think will work. You may have to play with using the quotes or not.

 

UPDATE: Actually I don't think this will work as I stated above. If I'm not mistaken, Event Detector files run on servers, not clients.

So instead use my other answer I gave you for events on clients and simply use the system\seconds HMI tag to populate a numeric input.

The 'Change' event for the numeric input will foire every second. Just use a MOD 5 function to determine every 5th change.

Edited by Filthy McNasty
UPDATE
1 person likes this

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0