Hello,
We have spoken with you over the phone and emailed you several times regarding this inquiry.
The solution we provided is that we can offer our extended support plan and develop a custom script for your needs.
The M6 script that is built into Mach4 may not be capable of what you are asking out-of-the-box.
You will most likely need to edit the script to work as you intend it to.
At Vital Systems, we create the hardware to control motion commanded from Mach4 software.
We are definitely willing to help you write this script and we have emailed you the details of our offer on 03/07/18.