G-code
Special commands

Exec

2min

Starts an external program within the job/macro and waits until the program exits. The return value of the program is stored in variable #5399

Exec "<program path>" "<command line parameter>" <timeout[ms]>

The maximum wait time is 10 minutes.

Example

Exec "notepad.exe" "hello.txt" 6000

This executes notepad.exe and waits 1 minute for it to exit. An error is generated if it does not exit within the specified time.