WinCCflex - script

Tomislav

Member
Join Date
Feb 2008
Location
Posts
8
Hi!

1. How can in WinCCflex configure script that runs whole time when runtime runs?
2. How can save system time and date in some variable, example in internal tag?
 
Hi Tomislav.

You can use the scheduler, but the fastest scheduler trigger can be 1 minute.
If it must be faster than that, you can have a PLC tage rotate between 1 and 1000 for example and execute the script on Change Value.

That said, dont try to do too much with scripts.
Scripts are prone to falling over, and they cannot always recoverautomatically.
Cyclically executed scripts should be treated as rotten eggs.

In the scripts, you have the system time and date available as the global variable "Now". If you need only the date there is the global variable "Date". If you need only the Day of the month for example, you can write
day = DatePart("d",Date)
 

Similar Topics

Hi! I need in WInCCflex write one script which does following: When i click on one button on one I/O Field must be displayed system time, and on...
Replies
2
Views
3,021
I am using the time interval logging functionality on a MP377 panel. Log files are periodically copied and stored onto a flash card, so far so...
Replies
1
Views
2,387
Hello ! Can somebody help me with report of production in winccflex 2008. Now I can see and can print only last cycles of production, and I want...
Replies
0
Views
2,721
Hello everyone, I was wondering if it is posible to communicate an S7-1200CPU with a WinccFlex runtime (running on a PC) via Internet. I don't...
Replies
4
Views
3,428
Hello! I have problem with screen in winccflex 2005&2008. When start runtime start screen is normal,but when go to the other screen and back to...
Replies
7
Views
3,023
Back
Top Bottom