Hello,
It should like this:
if (Tags.SystemCurrentDateTimeNewHour==true){
Tags.NumberOfHours++; // you create this tag youself, it's not system
if (Tags.NumberOfHours>=Tags.SetupPeriodOfHours{. //this tag you also create and use for setup period of sending E-mail
Tags.NumberOfHours=0;
reportsendbyemail(”Report1","reportfile.jpg", "Report title", "Here's report from TeslaSCADA");
}
}
Best regards,
Ruslan