[Se...] Posted September 1 Share Posted September 1 Hello, everyone !😀 I want to do the following in CALYPSO: When a specific Result Element is reached, Save the results of all characteristics measured up to that point as a PiWeb PDF automatically to this folder: After saving, run cncBreak() to stop CNC and wait for the operator. Right now, I already use cncBreak() in the Formula and it works. But I don’t know how to add the automatic PDF save before the break. Could someone please give me an example PCM code for this? Thanks in advance! Link to comment Share on other sites More sharing options...
[Ma...] Posted September 1 Share Posted September 1 Wouldn't be better a different approach? Like mini plans, or running from characteristics? 1 Link to comment Share on other sites More sharing options...
[Se...] Posted September 1 Author Share Posted September 1 Please sign in to view this quote. Hello, Currently, our system is connected to a conveyor, so we are only responsible for calling up the program. Therefore, we would like to know how to automatically save the PiWeb reporter PDF up to the point before the CNCBREAK command is executed. If there are alternative approaches, could you please provide an example? Link to comment Share on other sites More sharing options...
[An...] Posted September 2 Share Posted September 2 Could consider using endInspection() instead of cncBreak() to get the report? Should still redlight the machine, but more gracefully & still generate the reports from whatever was measured & evaluated. 2 Link to comment Share on other sites More sharing options...
[Ch...] Posted September 2 Share Posted September 2 (edited) I agree with Andrew endInspection() is likely best here. Â Â There is also this to specify which Characteristics to report, in case the above does a full report and that is no desired :Â setElementsForProtocol() //Set characteristics to be printed in protocol and some more helpful commands, although these are listed under 'custom printout' :Â EDIT : These do not appear to be for PiWeb, a lot more info in the help file though for this. //Flexible printout controlled by PCM defineProtocol("#name","Pres for r&d") defineProtocol("#type","presentationProtocol") defineProtocol("#medium","pdf") defineProtocol("#elements","allCFOutTol") defineProtocol("#name","To me") defineProtocol("#type","compactProtocol") defineProtocol("#medium","ps") defineProtocol("#elements","allCF") defineProtocol("#name","For trouble shooting") defineProtocol("#type","compactProtocol") defineProtocol("#medium","screen") defineProtocol("#elements","allME") //Possible to set order: defineProtocol("#order","likeList") defineProtocol("#order","alphabetic") defineProtocol("#order","rangeOfTolAndDev") Â Edited September 2 Link to comment Share on other sites More sharing options...
[Se...] Posted September 2 Author Share Posted September 2 (edited) Please sign in to view this username.  Please sign in to view this username.  Sorry, I didn’t explain it clearly before. I first tried using endInspection(). But since our setup is not just Calypso and it is connected to the conveyor app, ending with endInspection() makes the conveyor think the result is OK, even when it is actually NOK. That’s why I had to use cncBreak() instead.  So I am looking for a way to use cncBreak(). Is there a way to save the results into the folder C:\ACCURA\RESULTS_PDF Edited September 2 Link to comment Share on other sites More sharing options...
[Ch...] Posted September 3 Share Posted September 3 I'd suggest contacting Zeiss they have more and more solutions for automation and cases like this. Link to comment Share on other sites More sharing options...
[Ch...] Posted September 3 Share Posted September 3 otherwise you would need to evaluate what has been run up to the stop ( will this be different every time ?? ), then you will need to probably set a VARiable to the inspection results (good/bad/other), then do cncBreak(). Â Â Link to comment Share on other sites More sharing options...
[Se...] Posted September 15 Author Share Posted September 15 (edited) Please sign in to view this quote. Hellp, Please sign in to view this username. I just came back from vacation, and I have a question regarding my setup. In the first picture, if the X, Y, Z or Dia value is NOK, the 5th RESULT element will be executed. Before this RESULT element runs, I would like to save the current results as a PDF in the Postsetting step, and then execute cncBreak(). Is there a way to achieve this workflow: NOK → save PDF → cncBreak? Thank you in advance for your help! Edited September 15 Link to comment Share on other sites More sharing options...
[Ch...] Posted September 15 Share Posted September 15 (edited) I'll check, are you using old custom report or PiWeb ?? edit: I see above you mention PiWeb, may be a bit more challenging, I'll still research. if you;re using old custom report, the above commands might help. Edited September 15 Link to comment Share on other sites More sharing options...
[Ch...] Posted September 15 Share Posted September 15 Also for reference, I know you said endInspection() doesn't work for your application but there seems to be these variables for endInspection(): endInspection("WITH_DATA_OUTPUT") endInspection("NO_DATA_OUTPUT") Â Link to comment Share on other sites More sharing options...
[Ch...] Posted September 15 Share Posted September 15 Hmm, seems possible with PCM but is obviously undocumented and would likely require 'executeCode'. PiWeb looks like it requires initalization/syncronization etc. I'd suggest asking Zeiss for a solution or one of the PCM wizards here. PCM is likely in this area : Zeiss.Calypso.OMMeasProt multiOutput but also Zeiss.PiWeb.OMPiWebCMM. Â Link to comment Share on other sites More sharing options...
[Se...] Posted yesterday at 06:36 AM Author Share Posted yesterday at 06:36 AM Please sign in to view this quote. I’ve tried multiple times, but I still haven’t been able to solve this problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in