Jump to content

PCM WAIT?


---
 Share

Recommended Posts

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

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

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.
2915_3bb4372e6080022cb19dfcece25ee590.jpg
Link to comment
Share on other sites

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

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


1375_ad2efd1f10e7cf8a346584cef5d30b5c.png
Link to comment
Share on other sites

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

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

 Share

×
×
  • Create New...