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.
@GiancarloGenkyGastaldello Жыл бұрын
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 Жыл бұрын
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.
@sarksazoyan Жыл бұрын
thank you for great contetnt
@WinCCGURU Жыл бұрын
Glad you enjoy it!
@lavdixit2267 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@@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 Жыл бұрын
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 Жыл бұрын
Can you tell me what the original problem was exactly which may give me an idea of why it affected the other script?
@lavdixit2267 Жыл бұрын
@@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.
@vorapobautomation9760 Жыл бұрын
How to use C-Scripts create csv file and write data into the other normal PC in network ?
@WinCCGURU Жыл бұрын
yeah, working on that one. :D
@vorapobautomation9760 Жыл бұрын
@@WinCCGURU How to do please ??
@WinCCGURU Жыл бұрын
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.
@zafarahmed9372 Жыл бұрын
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 Жыл бұрын
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 Жыл бұрын
@WinCCGURU thanks a lot...
@nilaykumar625710 ай бұрын
If I have put a password on CB ,ISO before operations plz tell me