Hi,
I am working on CNC embroidery machine.. Following is the Machine specifications in Mach3
1- X-axis step/ unit = 244.34 Velocity=200 and acceleration= 50
2- Y-axis same as above
3- Z-axis step/unit 40 velocity=1000 and acceleration=400
Now the Z-stepper is connected with sewing machine wheel with 1:1 ratio pully. The z-axis motor is 200 steps/revolution and controller is set to 1/2 step. Total steps/unit 400... Now i kept for Z-axis 40 steps/unit so that for each 10mm linear move one revolution completes.
My embroidery software generate following Gcode.
G90
G21
G64
F 2000
(NEEDLE UP RAPID MOVE- Light bulb Off if On)
M09
G00 X-0.1 Y0 Z2
G00 X9 Y2.6 Z2
(START STITCHING- Light Bulb Off if On)
M09
G00 X17.2 Y1.1 Z2
G00 Z8
M786
G00 X25.3 Y-0.2 Z2
G00 Z8
M786
G00 X26.1 Y-0.3 Z2
G00 Z8
M786
Where M786 is Macro and the purpose of this to setOEMDRO (802,0) i.e. After each Z-move Z-axis DRO becomes zero.
THE PROBLEM:
My X/Y moves running very well but my Z-stepper moves very little about 10 degrees only.. I don't know why this happening?... When i do not load Gcode in Mach3 and run the Z-motor through MDI typing G00 Z10 then stepper completes one Full revolution.. but when i load above Gcode the Z-axis DRO contineously changing and zeroing and the motor runs very slow upto 10 degrees after each X/Y moves..
Please help me:(
Regards
PS:
the M786.m1s macro only include following line
SETOEMDRO(802,0)
and this macro is kept in Mach3 macro folder and running like a charm.
Following is some embroidery carried out by my friend RENE using my software
www.my-woodcarving.blogspot.com