Hi, I had similar idea, wanted to increase velocity and decrease acceleration for G0 moves and the other way arround for G1/G2/G3, but abandoned it without trying... Idea was to insert M command before each G0/1/2/3 containing SetParam commands for accel and velocity, something like:
M for rapid:
SetParam("VelocitiesX",10000)
SetParam("VelocitiesY",10000)
SetParam("VelocitiesZ",10000)
SetParam("AccelerationX",1000)
SetParam("AccelerationY",1000)
SetParam("AccelerationX",1000)
M for interpolation:
SetParam("VelocitiesX",6000)
SetParam("VelocitiesY",6000)
SetParam("VelocitiesZ",6000)
SetParam("AccelerationX",4000)
SetParam("AccelerationY",4000)
SetParam("AccelerationX",4000)
(check Mach3_V3.x_Macro_Prog_Ref.pdf, there's a link somewhere on the forum)
However, high acceleration will give you feed rate that is much closer to commanded one on short path segments, and if path consists of many small moves it may seem jerky if machine frequently changes direction... with low accel machine will not reach high feed rate on short segments so motion will be less jerky. Maybe you can just lower the feed rate for those parts of toolpath that contain small segments and solve your problem... I think that the only way to get that smooth movement with high feed rate over short segments is with S curve acceleration.