Okay, I can take a hint - you REALLY think I should do this from within SheetCAM.  Now just suppose I am truly nuts, and despite this excellent advice, I STILL want to do it from within Mach3.  I would like to trigger some code that will start the Z axis oscillating, and another to stop it again.  I would be content to have the frequency and amplitude hard-coded, as I expect to change these very seldom.  How would you pull it off?  I understand that there is no standard G-code for oscillation, but I was thinking the natural thing to do would be to rededicate and hook a pair of on/off M codes that have no meaning on my machine, e.g. M10/M11 or M23/M24.