Hello
I was receiving a good quantity of good answers, I appreciate and thanks a lot for that, but I have a problem that may be is a general concept on how to do this project.
I need to explain, best that I can how is desired work. In a CNC embroidery machine, First spindle begins rotate and needle is going down, when motor complete 285 degree of rotation needle is going out of fabric, In this moment , machine should begins to move hoop to next position and complete stitch before needle begins penetration in to fabric, this movement is made for X and Y axis. Needle motor speed in each rotation depends of length of stitch; g code must reduce motor speed at beginning of rotation to give chance hoop to complete movement, this is calculated in CAM program previously. If are a long stitches bigger than embroidery machine can do with usual feed of thread , then is necessary to release thread tension using for example a solenoid, that must turn of when hoop finish movement when is not necessary more time releasing thread tension and turn off when motor is rotate about 330 degree. Personal and commercial embroidery machines uses rotary shutters for operate sequentially operations, but I don’t know in what way this rotary are actuating. I have two theories about how it works, please give me a ray of light…
1erst VARIANT
G00 X1.2 Y2.2 M3 S500
G00 X2.5 Y5.3 M3 S350 M7
Cont…..
M3 S500 will be activated by rotary shutter1 at 1 degree of rotation
X1.2 Y2.2 will be activated by rotary shutter2 at 285 degree of rotation
M7 will be activated by rotary shutter3 at 330 degree of rotation.(NC circuit)
M9 will be activated by rotary shutter3 at 359 degree of rotation.(NO circuit)
I s possible to do this,, and works?
2nd-Variant (Working in single blk mode)
M3 S500------------Manual start
M9-Activated by rotary shutter No 2 at 45 degree, open a NO circuit and turn off a solenoid (if is activate)
G00 X1.2 Y2.2-----Activated by rotary shutter 1 at 285 degree, OEM TRIGGER #1---Cycle start
M7 ---------------Activated by rotary shutter 2, closes a NO circuit and solenoid turn on
S350---------Activated by rotary shutter at 1 degree of rotation, OEM TRIGGER # 1, set new speed
Cont…
Sequence of Gcode lines corresponding to sequence in rotary shutters rotation angle activation.
I want to reduce the number of lines in G code but I don’t if is possible.
I have a doubt, Hood explain me that may be Single BLK mode don’t run as fast like I need , because it I can run embroidery machine at 480 stitches per minute, it means 8 stitches per second,, the same to say 1 stitch each 133 Milliseconds. Then should be considerate response time for optical switches plus Mach 3 time response for continuous Cycle start in Single BLk mode.
Thanks in advance for your help.
Regards
Rene