[Dy...] Posted October 3, 2022 Share Posted October 3, 2022 What would be the PCM syntax to have it wait like 5 seconds? im trying to use systemCall("filename") but have it wait 5 seconds so the pi web report can output first. Link to comment Share on other sites More sharing options...
[He...] Posted October 3, 2022 Share Posted October 3, 2022 wait(5) - Will wait 5 seconds. waitForFile("filename") - Will wait until the file is created. There are some other arguments within the brackets that you might need to specify. See the help for further information. systemCallWithWait - Will wait until the command has finished computing. Link to comment Share on other sites More sharing options...
[Ke...] Posted October 3, 2022 Share Posted October 3, 2022 The wait command in Calypso PCM is wait(nSeconds) CNC run will be stopped for nseconds. /////////////////////////////////////////////////////////////////////////////////////////// However, it may be advantageous for you to use "waitForFile" For more information on the syntax and other available commands, in Calypso in the PCM editor window there is a list of functions and parameters with syntax and a brief description which can be accessed via the button shown below. Link to comment Share on other sites More sharing options...
[Is...] Posted October 4, 2022 Share Posted October 4, 2022 PCM code in: report_end_pcm.txt is executed after the piweb report is generated, there you don’t need the wait function.. Link to comment Share on other sites More sharing options...
[Dy...] Posted October 4, 2022 Author Share Posted October 4, 2022 Please sign in to view this quote. Not sure I follow? Is that a different location to put the PCM code rather then the post settings? Link to comment Share on other sites More sharing options...
[Is...] Posted October 4, 2022 Share Posted October 4, 2022 Please sign in to view this quote. in the program folder: Link to comment Share on other sites More sharing options...
[Dy...] Posted October 4, 2022 Author Share Posted October 4, 2022 Please sign in to view this quote. I must be doing something wrong then? it didn't worksample.PNG Link to comment Share on other sites More sharing options...
[Is...] Posted October 4, 2022 Share Posted October 4, 2022 Please sign in to view this quote. test with other functions just to check, like: message("Hallo") I have the impression that the problem is because the batch file is in another drive.. better to put your batch code in: report_end.bat Link to comment Share on other sites More sharing options...
[Dy...] Posted October 4, 2022 Author Share Posted October 4, 2022 That makes sense to have them in the same folder. I still must be missing something though no message came upCapture1.PNG Link to comment Share on other sites More sharing options...
[Is...] Posted October 4, 2022 Share Posted October 4, 2022 Please sign in to view this quote. you are a little bit confused message is a PCM function and report_end.bat is a batch file, both (report_end.bat and report_end_pcm.txt) are executed after the CMM inspection generates the outputs... If you want to test correctly make something like this: report_end_pcm.txt message("Hola mundo") report_end.bat msg * "Hola mundo" Link to comment Share on other sites More sharing options...
[Dy...] Posted October 4, 2022 Author Share Posted October 4, 2022 Please sign in to view this quote. Yea I thought that the report_end_pcm.txt tells it to read the .bat file, but when I run the program it still doesn't show the prompt when completed. Clicking on it in the folder does work though so not sure why it isn't during the program end? :/ 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