Kkula
Browse Questions » SIMATIC WinCC (TIA Portal): Tp1500 Vba scrip Fault 20015

About User

Questions Asked: 3.6K

Answers Given: 0

0
  • Open
  • New

SIMATIC WinCC (TIA Portal): Tp1500 Vba scrip Fault 20015

Dear Sirs, 
I've a panel 6AV2124-0QC02-0AX0 configured with tia V14 SP1 update 2 running from june 2018, now it's showing this error:
 
unknown user
20015:
Too many successive scripts have been
triggered in short intervals. When more than 20 scripts are queued for
processing, any subsequent scripts are rejected. In this case, the script
indicated in the alarm is not executed.
 
What is the cause of this?
The script is called hundred times in a day, it has run fine until now. Now what is the problem it use too much RAM? 
This is the script :
 
Sub xxx()
Dim StartTime
Dim Info
LoadDataRecord "RICETTA", SmartTags("BATCH_NUMBER"), "Batch"
While SmartTags("Batch") = 2
'statements
Wend
StartTime = Timer
While Timer < StartTime + 3
'statements
Wend
If SmartTags("Batch") = 4 Then
SetTag "BATCH_CARICA" , 1
End If
End Sub
 
How can I debug it?
How can be added a debounce on a button click?

0 Likes 0 Favourites 0 Followers 0 Comments
Answers(0)