Machsupport Forum

Mach Discussion => VB and the development of wizards => Topic started by: garetbiglow on September 06, 2017, 12:59:33 PM

Title: Passing data from Post to Mach with Macros
Post by: garetbiglow on September 06, 2017, 12:59:33 PM
So I can set up my post (in Sheetcam) to do this as part of the initial gcode block:

M501 P163 (cutting voltage)
M502 P0.36 (pierce height)
M503 P0.16 (cut height)
M504 P1.8 (pierce delay)

What I want to do now, is write the associated macro in Mach3, which would pull in these P values, and write them to certain DRO's in Mach. This way, the tooltable can be used to set all the cutting parms, and the operator doesn't need to be manually entering them in. Does anyone have a method for this? Maybe an example macro?

Garet