Hi,
Ufffffff,, here in my country usually is said in my situation "No pone Una"
when each thing that some one said is refuted......
and literally is relative to a baseball pitcher that never makes a strike and always bad balls.
Sorry
Things that happens when one is trying to do something without adequate knowledges.....
I will explain as better I can how this Gcode works
Needle bar motor is set in Z axis and one revolution=360 degree= 1stith = 1.0 =100% rotation
Motor Tuning /Z axis /Steps x mm = 200.
Velocity = 600
Accel 600.
INITIAL STATE X0,Y0 AND Z0 ---Hoop centered and needle in upper position
N05 G01 X-0.6 Y-19.9 Z-0.2------------X,Y axis moves to first stitch location, Z axis rotate 20%(needle is stopped 3mm before get inside fabric
N10 G01 Z-0.8--------------------Z axis move 80% or revolution (Needle get inside fabric, stitch, get outside and stop when is 3 mm above fabric.
N15 M786-----------------------This macro, set Z counter in cero value
N20 G01 X0.5 Y-19.4 Z-0.4--Hoop moves to next stitch location, Z axis rotate 40% of revolution and needle is stopped 3mm before get inside fabric
N25 G01 Z1.0-----------------Z axis rotate 60%, complete a revolution, and needle is stopped 3mm above fabric after is get outside fabric
N30 M786.........
N35 ... similar to N20.
As you can see, hoop movement in 40% of one revolution, when needle is above fabric, and in 60% of revolution, needle moves alone.
Macro 786 sets the counter of Z axis to cero value in each revolution, when Z=0.8 or Z= 1.0
A axis has option of "rot 360 rollover" for, but in some tests done, A axis seems to be very slow for this purpose
I think that if this macro is placed out of Gcode, and taking effect every time that Z=0.8 and 1.0
total process may be faster because will be a lot less of lines in Gcode.
Object is make one revolution using percent values 1.0 is one motor revolution and one needle operation
Is question of Try,,,if not we can come back as now is.
If not,, how can I set cero Z axis for each revolution.?
Thanks in advance
Rene