Jump to content

Program runtime (in PiWeb)


---
 Share

Recommended Posts

---

Dear Experts,

I need the runtime of a program in PiWeb. Does anyone know of a variable/option for calculating the runtime and storing it in the database?

Although the runtime is displayed in the CALYPSO monitor (if it has been started and not terminated), the time is not stored anywhere in a traceable manner.

We make extensive use of feature groups, which means that there can be different runtimes for the same program.

Thanks for any hint,
Best regards
Karsten
 

Link to comment
Share on other sites

---

Hi Martin,

Thanks a lot, this is working!
I found "MeasurementDuration" / durationofrun at the calypso documentaion but do not known how to use this in PiWeb 🙂
 Unfortunately this value is not seen as a measurement attribute using a K-number. I will therefore be unable to determine the average duration of the programs later on. Some programmes have a programmable stop function. This means that the running time can vary considerably.

  • Like! 1
Link to comment
Share on other sites

---

Hallo Karsten,

habt ihr PCM?

Wir haben etwas mit PCM erstellt. Beim Ablauf einer Merkmalsgruppe wird die Laufzeit in einem Fenster angezeigt. Die Zeiten der verschiedenen Merkmalsgruppen in separaten TXT-Dateien abgespeichert. Vielleicht kannst du davon etwas verwenden...

CAQ Datenübernahme PCM - NUR MESSDAUER.docx

  • Like! 1
Link to comment
Share on other sites

---

@Jürgen:
Nein leider kein PCM... Das ist für den Nutzen und den Aufwand bei uns nicht bezahlbar. Da ja für jede Maschine eine Lizenz notwendig ist liegen wir dann bei schlappen 80k € 😞

@Jörg:
Interessanter Ansatz. Die Frage ist woher dann die Variable 
 durationofrun angezogen wird. Ich probiere das mal aus 🙂


Generell sollte es mit PiWeb möglich sein... Aber das ist eben ein Monster.

Link to comment
Share on other sites

I report the measurement duration on my piweb report, i wasnt able to find it in the variable drop down menus, but looking at the text for the measurement duration it shows exactly the same as Martin Jansky listed. For me it reports the same time displayed in Calypso Monitor, no PCM needed

 

here it is in piweb designer
image.png.b3ada5501c3acd1d6383205d6b0219e1.png

 

and here it is in the actual report piweb generates

 

image.png.7dac31b0a8d6cb686b670660d62842ba.png

Edited
Link to comment
Share on other sites

I also experience interruptions in some programs. The Calypso Monitor pauses the recording until it resumes. At least, that's what I've observed. I also have it set to average.

Link to comment
Share on other sites

Moin Sven,

Der Calypso Monitor ist für uns keine Option, da dieser ja geschlossen werden kann und NICHT mehr neu startbar ist (CALYPSO 7.4.24) es sei denn man startet CALYPSO komplett neu.
Ich benötige einfach die durchschnittliche Ablaufzeit z.B. am Ende einer Produktionsreihe. Genau das Problem mit dem programmierbaren Stopp und der Varianz der Ablaufzeit die dadurch entsteht. Ebenso ist die Zeit wichtig für Automatisierung und zur Berechnung des Messaufwandes.
Besonders cool wäre es natürlich die so ermittelte Zeit irgendwie in das Autorun Icon einzublenden. Dann weiß der Kollege gleich ob er schon mal einen frischen Kaffee einschenken kann oder die Messung nicht mal mehr einen Wimpernschlag dauert 🙂

Die Ausgabe auf dem PiWeb Protokoll funktioniert soweit, jedoch kann ich die Ablaufzeit (noch) nicht in der SQL-Datenbank selektieren. Das geht bestimmt irgendwie nur möchte ich dafür nun nicht extra einen 2-Tagessatz PiWeb Spezialisten bezahlen ...

Gruß
Karsten
 

Link to comment
Share on other sites

Please sign in to view this quote.

You can find Calypso Monitor here, change Calypso versions as needed.

C:\Program Files (x86)\Zeiss\CALYPSO 7.4\bin\Monitor

File name: CALYPSOMonitor.exe

Link to comment
Share on other sites

Moin,

A hack to write the program runtime to the piWeb database in a ‘visible’ and thus evaluable form:

The result element with the following formula returns the number of seconds. This is somewhat vague, as it includes the actual runtime including PiWeb report generation. This is therefore a few seconds longer than ${Qdb.Property("MeasurementDuration") in the piWeb form.
 

(val(subStr(getRecordHead("durationofrun"),4,5)) * 60)+ val(subStr(getRecordHead("durationofrun"),7,8))

The return value of "durationofrun" is something like hh:mm:ss,?. The function subStr grep out the value of mm , convert is to a integer and multiply with 60. Similar for seconds.

Now, it needs the real hack:
We do not want to see the "result element" within our PiWeb report. To achieve this, select the test element. It will be executed but not displayed in the log.
image.thumb.png.4cb471dfa5f41f6e82e7288c826c5fbb.png

 

The runtime is now visibly transferred to the PiWeb database. It can now be exported to Excel.

Admittedly, this is not exactly practical either. But it is better than looking through individual logs.



image.png.ce1bd23dbd3998885dd429d35ee74ee4.png

Link to comment
Share on other sites

 Share

×
×
  • Create New...