Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: c30232 on December 02, 2014, 08:01:55 PM

Title: Scripting help
Post by: c30232 on December 02, 2014, 08:01:55 PM
I am using script for motion and data acquisition.  I would would like to gather DRO data after a move.  I am looking for a statement that will dwell/pause the script and allow the movement to complete before the DRO data is acquired.   
Title: Re: Scripting help
Post by: BR549 on December 02, 2014, 09:05:34 PM
Code"G1 X10Y10"

While Ismoving()
Sleep(1000)  --- dwell in msec
Wend

"Write you data"

(;-) TP
Title: Re: Scripting help
Post by: c30232 on December 02, 2014, 09:07:03 PM
Perfect.  Thank you!!!