Тёмный

Why WinCC Global Actions Run When Not Supposed To! 😱 Here's How To Fix This!  

WinCCGURU
Подписаться 3,2 тыс.
Просмотров 906
50% 1

WinCC Global Actions Scripts sometimes execute when they aren't supposed to! Watch this video to learn why this happens, and how you can prevent it from happening!
WinCC Global Actions are scripts that run independently of the runtime User Interface (Screens). They are executed in response the tags changing value, timers or both.
Channel members may download this WinCC project from the WinCCGURU members sharefile site! *Join this channel to get access to perks*:
/ @winccguru
00:00 Introduction
00:27 What Are Global Actions?
01:07 An Action in Runtime
01:28 Time triggered actions
02:15 VBS Actions
03:27 Compile and Save Action Scripts
04:08 Saving a VBS Action
04:24 Adding a New Action to a running project
05:00 Summing up the issue
05:14 Why Actions are Used
05:43 A Good Approach
06:44 Reset the Tag Value
07:15 Why this solution Works
07:56 Implement this solution in C
08:45 Test the C solution
09:10 What NOT to do...
10:14 A Solution for Time Based Triggers
10:35 VBS Implementation
11:20 ANSI C Implementation

Наука

Опубликовано:

 

5 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 30   
@zafarahmed9372
@zafarahmed9372 6 месяцев назад
Its very helpful... Thanks...
@WinCCGURU
@WinCCGURU 6 месяцев назад
Right click on tag logging and look at your settings for archive management. That is what determines how much data is saved and if/when it’s backed up.
@anistamboura1511
@anistamboura1511 6 месяцев назад
Thank You very much.
@WinCCGURU
@WinCCGURU 6 месяцев назад
You are welcome!
@sinanartemis6176
@sinanartemis6176 6 месяцев назад
Dear Bob thank you very much. )
@WinCCGURU
@WinCCGURU 6 месяцев назад
You are very welcome
@sarksazoyan
@sarksazoyan 6 месяцев назад
thank you for great contetnt
@WinCCGURU
@WinCCGURU 6 месяцев назад
Glad you enjoy it!
@GiancarloGenkyGastaldello
@GiancarloGenkyGastaldello 6 месяцев назад
If I'm not mistaken there is also another occasion where all the actions are execute. I'll try to explain: if the actions are triggered on external variables (read by the PLC) when a communication error occurs (for example the ethernet cable is disconnected) and then communication is restored WinCC reads all the PLC TAGs and this event triggers the execution of the actions that have triggers on external variables (reread) I could say something very stupid, perhaps the operation is different now in the new versions of WinCC. I don't know if you have ever had the opportunity to test in the laboratory whether this operation is also valid for version 8 Thanks for your precious videos
@WinCCGURU
@WinCCGURU 6 месяцев назад
Hey, thanks for this I will check it out. It is very possible that this also happens under those conditions. Thank you for bringing it up! And thank you for watching my videos.
@zafarahmed9372
@zafarahmed9372 6 месяцев назад
Hey greetings... I want to ask about a problem that I am facing in wincc 7.4 tag logging management I am logging multiple tags for trending, hourly and daily basis but my data base is storing this data is only for 9 days and previous data is not showing like is not available or deleted by it self can you provide me the guide what is going on. Thanks..
@WinCCGURU
@WinCCGURU 6 месяцев назад
Right click on process value archive and set the archive management. This allows you to determine how much data is kept and when it is backed up.
@zafarahmed9372
@zafarahmed9372 6 месяцев назад
@WinCCGURU thanks a lot...
@vorapobautomation9760
@vorapobautomation9760 6 месяцев назад
How to use C-Scripts create csv file and write data into the other normal PC in network ?
@WinCCGURU
@WinCCGURU 6 месяцев назад
yeah, working on that one. :D
@vorapobautomation9760
@vorapobautomation9760 6 месяцев назад
@@WinCCGURU How to do please ??
@WinCCGURU
@WinCCGURU 6 месяцев назад
Thanks for watching! A video on C script CSV files is on my schedule; please consider I also have my regular job and teaching WinCC classes. This channel is not my full time job, although that is my ultimate goal. :D I promise I will get to it as soon as I can.
@nilaykumar6257
@nilaykumar6257 4 месяца назад
If I have put a password on CB ,ISO before operations plz tell me
@WinCCGURU
@WinCCGURU 4 месяца назад
I'm sorry, I do not understand the question.
@lavdixit2267
@lavdixit2267 6 месяцев назад
Thank you, Bob, for this valuable information. I have a question regarding my project. I am running 4 to 5 global scripts, and these scripts primarily interact with the database for CRUD operations. However, I encountered a problem in one global script, and due to this issue, it also affects the other global scripts. After extensive investigation, we identified the problem. My question is, is it possible that if there is any error in one script, it affects the operation of other scripts? All scripts are running cyclically
@WinCCGURU
@WinCCGURU 6 месяцев назад
Its possible if they are run on the same thread; Are these scripts on same time cycle? is it possible to change to tag trigger? It also matters if you are writing to a database that might not handle simultaneous RW operations. If using SQL Server it should handle it.
@lavdixit2267
@lavdixit2267 6 месяцев назад
@@WinCCGURU ,yes, I am using SQL Server. Some scripts run in the same cycle, while others run at different intervals. I employ cyclic triggers for database-related operations. Within the script, I use an if-condition with tag values to perform CRUD operations and disable the tag inside the if-statement at the end. I didn't achieve the expected result using on-tag-change events. Sometimes, it missed some entries. That's why I opted to go with cyclic triggers."
@WinCCGURU
@WinCCGURU 6 месяцев назад
Sounds like you have it set up right with a good method. In the case of global actions a script error *shouldn’t* affect another script running unless there is some shared memory between them. But of course I have seen some funny things with scripts over the years. 😂
@WinCCGURU
@WinCCGURU 6 месяцев назад
Can you tell me what the original problem was exactly which may give me an idea of why it affected the other script?
@lavdixit2267
@lavdixit2267 6 месяцев назад
@@WinCCGURU The problem I identified in my script is that I created an ADODB object to collect record set data from SQL. However, in the script, I used another object where I attempted to destroy the created object. Unfortunately, I was destroying an object that actually didn't exist (set someobj = nothing). In general, it's challenging to determine such errors, especially when the code has many lines, and the WinCC IDE isn't as robust. These mistakes can happen. That's why, during commissioning, I always have the global script debugger enabled. This helps me a lot in detecting such errors. As a precaution, I refrain from using the "On Error Resume Next" feature of VBScript during commissioning. Once I am sure everything is working well, I enable "On Error Resume Next.
Далее
Я НЕ ОЖИДАЛ ЭТОГО!!! #Shorts #Глент
00:19
How to Properly Setup C++ Projects
32:46
Просмотров 102 тыс.
Why The Windows Phone Failed
24:08
Просмотров 228 тыс.
Every single feature of C# in 10 minutes
9:50
Просмотров 111 тыс.
Build Database Enabled Screens in WinCC SCADA
12:15
Просмотров 1 тыс.