Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Zoltan Bardossy on May 23, 2012, 11:13:00 AM

Title: DRO values output to file
Post by: Zoltan Bardossy on May 23, 2012, 11:13:00 AM
Wonder if someone has any suggestions. I need to output X & Y DRO values to a file, one X,Y pair per line, every time a keyboard button is pressed. Is this possible?

Thanks
Zoltan
Title: Re: DRO values output to file
Post by: BR549 on May 23, 2012, 08:26:14 PM
'Macro for logging XY DROs use for button code
Open "c:/Mach3/DroLog.txt" For Append  As #1
Print #1,GetDro(0) &"," &GetDro(1)
Close #1
End
Title: Re: DRO values output to file
Post by: Zoltan Bardossy on May 24, 2012, 09:08:50 AM
Thank you, very much appreciated!

Zoltan