Rsview32 and Timers

maxtin

Member
Join Date
Jan 2007
Location
Tracadie
Posts
15
Hi,

Im launching a vba procedure from rsview32 but i only want that procedure to run after 10sec.....is there a way to do that?

it doesnt seem that the VBA provided by rsview32 contains timers, does rsview itself has such tool?

TIA
 
Better yet just put a timer in the plc that cycles a bit on when you want to run the application. Set up a tag that uses that address and set up the event to look at the tag. When the bit goes high, the VB code executes. That way if you decide to change from 10 sec to some other value is it an easy PLC code change instead of RS-View.
 
Use a macro to call your VBA routine.

In the macro place the following code
Pause 10
VBAExec VBA_ROUTINE_NAME

Call the macro in whatever object/event you are currently calling the VBA routine from.

By the way, if you then want to change it, its super easy to change (way easier than on a PLC) and you don't even need RSView Works to do it. A macro can be edited from any text editor such as Notepad or Wordpad.
 
Last edited:
Alaric said:
Use a macro to call your VBA routine.

In the macro place the following code
Pause 10
VBAExec VBA_ROUTINE_NAME

Call the macro in whatever object/event you are currently calling the VBA routine from.

By the way, if you then want to change it, its super easy to change (way easier than on a PLC) and you don't even need RSView Works to do it. A macro can be edited from any text editor such as Notepad or Wordpad.

I want to pause for like 1 min without affecting the user activity..will the pause freeze the user?
 
Pause will suspend and queue the operation of only the macro. It won't hang other RSView operations. After the time expires the macro is rescheduled to continue operation by RSView.
 

Similar Topics

I'm importing an RSView32 project into FTView SE. I'm using Legacy Tag Database Conversion on a virtual machine with Windows XP, I did the first...
Replies
0
Views
372
Hi everybody, I have a rsview32 application, when I try to run it it loads upto 80% system settings and the crashes saying Rsview32 Project...
Replies
3
Views
1,908
Hi Guys I'm having trouble assigning a tag to an activex label on a Multipage Tab. I can assign the tag to an active x label on a normal display...
Replies
0
Views
596
I have followed the procedure below to convert RSView32 project to FactoryTalk View...
Replies
5
Views
1,431
I have converted RSV32 to FTVSE Distributed. pretty straightforward... I cant seem to figure out how or find any documentation to migrate RSV32...
Replies
4
Views
2,304
Back
Top Bottom