WinCC Flexible 2008: Run Script when screen is open

STL???

Member
Join Date
Sep 2005
Location
UK
Posts
879
Hi,
Is it possible to have a background script running behind when a settings/log screen is triggered?

I know i can run a script on Screen load/Unload within the properties of the screen and i'm aware of the scheduler,however i dont see an option available to suit my needs.

Thanks
 
I think you need to elaborate a bit on your specific needs.
All I know is one can run scripts on load and clear, which is insufficient in this case it seems.
 
Hi Jeebs,
One of the first problems i'm having is that i cannot find a way to automatically update an I/O field with a logged in user.

e.g
i have a button to login a user and an I/O field to display currently active user, i cannot find a way to update this I/O field without a second button to utilise GetUserName to move the string to a tag, i want it to work from the login button because the user string is important - what if they forget to update?

I was thinking of utilising GetUserName inside a script to update a tag which is referenced via the I/O Field.

GetUserName SmartTags("dbEMS.UserID")



hope this makes sense
 
No need for script, this can be done within the Scheduler:

Event: Change user
First action: Traceuserchange
Second action: Getusername
This one will output it into a tag, we use an internal tag.

Below is how we do it:

Getusername.jpg
 

Similar Topics

Hi, We have upgraded our laptop which includes Windows 11. It appears that WinCC flexible 2008 advanced does not support Windows 11. What...
Replies
11
Views
265
Hello everyone I Have an Issue with the usage of recipes in Wincc Flexible 2008, I create the recipe to change the values in a fast way The...
Replies
0
Views
106
Hello Friends I have installed WinCC Flexible 2008 SP5 Update 2. I have open the software, but the Transfer option does not appear. Is It...
Replies
2
Views
1,473
I have wincc flex 2008 project made with wincc flexible 2088 sp1 project hmi device is simatic pc panel 19" I want to change hmi device to run the...
Replies
17
Views
5,282
Dear experts, I am Muhammad we have an IPC With the windows XP Embedded CE 5.0 on project and running well. i have plan to install wincc flexible...
Replies
8
Views
3,842
Back
Top Bottom