I'm not actually familier with the macropump programming. It will be great if someone guides. :-)
So far I understand Mach3 is executing line by line and I just need the line number (for what it's going to execute).
thanks
If you create a VB file named "macropump.m1s" in the Mach3/macros directory, Mach3 will run it periodically (10X/second, more or less). You can write a macro that reads the line number DRO, and writes that value out to a file. Since they are invoked often, it is very important that macropump macros execute *quickly*, or they can degrade system performance.
An updated version of my VB Macro Programmers Reference Manual is posted on the ArtSoft documentation site, which explains much of what you'll need to know to actually do this. The rest you can get by asking specific questions here.
Regards,
Ray L.