Industry Online Support
Technical Forum
12/15/2010 5:12 PM | |
Joined: 3/30/2010 Last visit: 4/6/2023 Posts: 43 Rating: (2) |
Hi Control, Go to your manager and ask for some more time, because designing reports is time consuming for first time users. I've give a response on your VB topic of today: /tf/WW/en/Posts/51745#top You can use the info in this response to generate CSV data. For selecting time ranges, download from this: Entry ID:40347325 Forreports the output is pdf (commonly) and not csv so far I know Create in C the filtertag(texttag8bits)for alarmlogging RT archive Determine the right format from my c-script sprintf(Filtertmp,"DATETIME >= '%s-%s-%s 00:00:00.0000' AND DATETIME <= '%s-%s-%s 23:59:59.0000' AND CLASS IN(2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 ,11 ,12 ,13 ,14 ,15) AND TYPE IN(17 ,18 ,19 ,33 ,34 ,35 ,49 ,50 ,51 ,65 ,66 ,67 ,81 ,82 ,83 ,97 ,98 ,99 ,113 ,114 ,115 ,129,130 ,131 ,145 ,146 ,147 ,161 ,162 ,163 ,177 ,178 ,179 ,193 ,194 ,195 ,209 ,210 ,211 ,225 ,226 ,227) AND STATE IN(1)",YY,YM,YD,YY,YM,YD); printf("\r\nfilter arriving of process alarms: %s",Filtertmp); SetTagChar(FilterArrivingProcessAlarms,Filtertmp); For reporting trending or table archived data, use the functiontrend control picture or table You can dynamize the start and endtime in the connect tab with a texttag (8bits) with the format: mm/dd/yy hh:mm:ss The format of this string is not proper mentioned in Siemens docu!! See my c-script below: #define StartTime "ReportStartTime" #define EndTime "ReportEndTime" sprintf (End, "%s/%s/%s",YM,YD,YY); //strcpy (End, "29/11/2010"); strcat (End, " 23:59:59"); printf("\r\ndefault report end date and time is: %s", End); SetTagChar (EndTime,End); The options of these controls must then be: no update, no time range selected, no number of measurement points I think we haveboth a project with the same requirements (and with the same problems ) |
1/10/2011 6:47 PM | |
Posts: 53 Rating: (0) |
Hi Klusser, I dont want to print reports but rather save them on Hard disk. I had to write a script in VB to do that. Many thanks for your help. Take Care |
Follow us on