WinCC Flex start event

cjd1965

Lifetime Supporting Member
Join Date
Apr 2007
Location
UK
Posts
1,659
Hi I would like to run a script or set some points on start up. Is there an event? I cant seem to ind one and the run once event is asking for a time/date
 
If you have 2008 + SP1, then go to Options .. Settings .. Workbench .. Project View Settings, and select Display all items.
Then find the Alarm Management .. System Events in the project tree.
The system event 140000 is triggered upon connection to the CPU, I use it to run a startup script.

If the script must run really only once, then create an internal tag "StartedUp", and make two scripts.
The "StartUp" script contains the startup code.
The "Connected" script is triggered by event 140000 It contains code like this:
IF NOT SmartTags("StartedUp") THEN
StartUp 'runs the startup script
SmartTags("StartedUp") = TRUE
END IF
 
If you have 2008 + SP1, then go to Options .. Settings .. Workbench .. Project View Settings, and select Display all items.
Then find the Alarm Management .. System Events in the project tree.
The system event 140000 is triggered upon connection to the CPU, I use it to run a startup script.

Thanks Jesper,

I'll give that a go next time. To ensure that my startup scripts only run once I make the start screen as a splash screen that only displays once on startup and then move on to the project pages without any way back to the start screen.

Nick
 
Thanks Jesper,

I'll give that a go next time. To ensure that my startup scripts only run once I make the start screen as a splash screen that only displays once on startup and then move on to the project pages without any way back to the start screen.

Nick
Yes. That is one way to do it. The advantage with my method is that the connection to the PLC is active, which is normally not the case when the initial start screen is displayed. It may or may not be important for the application.
 
Thanks Jesper
I will do that. In my current application it is only HMI specific data but of course it may be useful to set plc points on a HMI restart so ty for the tip
 

Similar Topics

Hi all, I'm having a bit of a problem with my WinCC Flexible 2007 Advanced + HF4 running on XP Professial logged in as an Administrator. Wenn I...
Replies
6
Views
5,964
From one moment to the other WinCC Flexible refuses to start.No changes to PC no microsoft updates no virus update. Any ideas ??? using WinCC...
Replies
6
Views
4,019
I'm continuing my Siemens education. I need some help with compatibility details. My customer has a machine that was made by a company no longer...
Replies
6
Views
4,028
Hello all. I mainly work with Siemens PLC's and panels for our machines. But now I am faced with a pilot project that has to be as price friendly...
Replies
15
Views
8,041
Hi Folks. I have an older application that weighs pallets and prints labels for them. We used to capture the time/date of weighing, but we...
Replies
2
Views
1,613
Back
Top Bottom