I am having a weird problem with a recipe file upload. I have the recipe set to trigger on the value of a Int32 tag (Upload_Totals). I have a chart that runs once per second and among other things increments Upload_Totals by 1 each second. When Upload_Totals reaches 61, I set the value of Upload_Totals to -1. I have my upload trigger set to occur when Upload_Totals = -1. (code is below):
// Upload Totals_Data Check: see if 1 minutes has elapsed, if so upload //
Upload_Totals = Upload_Totals + 1;
If (Upload_Totals > 60) then // 60 counts = approximately 1 minute
Upload_Totals = -1;
The weird thing is that this works well for awhile but eventually stops for some reason. It seems to be related to when I upload other recipes from my display program.
I’ve tried setting the trigger to occur when Upload_Totals < 0 with the same results.
Anybody have any thoughts on what might be going on?