- Posts: 44
- Thank you received: 21
CNC Sewing machine question
- Badger
- Offline
- Senior Member
-
The Rugbot needs consistent stitch length so I run the needle in velocity mode, without any gcode instructions, and it works flawlessly. This would not work for variable length embroidery type of stitches.
Please Log in or Create an account to join the conversation.
- ahmetbm
- Offline
- Junior Member
-
- Posts: 34
- Thank you received: 1
Stitch length is about 2.5mm and in some places between 1-2mm for tightening, it is not embroidery machine, it will sew only gloves.Is this part of the conversation about "sewing" a consistent stitch length such as making clothing, or a variable stitch length such as for embroidery?
I can lift up the needle part about 100mm, so it is not necessary to stop needle at the top position, but it would be better if i can. Because i don't waste time for the needle part to come to upper position.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
ahmetbm wrote: Since i am new on linuxcnc, i asked to yaskawa tech service, if it is possible to run two motors in velocity control mode synchronously. They did not give a clear yes,
Yaskawa wouldn't know what LinuxCNC can do, but it is fairly easy to force one motor to move in synch with another (and to alter the phase between them). What you do is to use a PID module where the command is the phase difference between the motors and the feedback is the difference between the two encoder positions.
(For testing it will be fine to use the difference between the two floating-point position, but if long run-times are anticipated it might be better to scale the difference between the encoder counts. Encoder counts are stored internally as 64 bit numbers so will never overflow.
Floating point positions will, after a long time, start to be large, and subtracting one large number from another to return a difference close to zero will eventually become imprecise. This is because floating-point only has 52 bits of precision, but 52 bits is still a very long run-time for most machines.)
Please Log in or Create an account to join the conversation.
- ahmetbm
- Offline
- Junior Member
-
- Posts: 34
- Thank you received: 1
andypugh wrote: (For testing it will be fine to use the difference between the two floating-point position, but if long run-times are anticipated it might be better to scale the difference between the encoder counts. Encoder counts are stored internally as 64 bit numbers so will never overflow.
Floating point positions will, after a long time, start to be large, and subtracting one large number from another to return a difference close to zero will eventually become imprecise. This is because floating-point only has 52 bits of precision, but 52 bits is still a very long run-time for most machines.)
I need about 10K revolution and then the proces will start over. Can this be considered as long run?
I am using general mechatronics pci 6 control card.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19899
- Thank you received: 4655
ahmetbm wrote: I need about 10K revolution and then the proces will start over. Can this be considered as long run?
Not really. (And I was wrong anyway)
What I said would make sense if the HAL version of the encoder counts was 64 bit, but it is 32 bit, so rolls over at about 2,000,000,000 counts. The floating-point position is 52 bits resolution, so starts to have 1-count position errors after 4,000,000,000,000,000 counts.
This really is only likely to be a practical problem with very fast spindles and very high encoder counts.
Can you attach a pin listing of all the General Mechatronics pins?I am using general mechatronics pci 6 control card.
A command something like "halcmd show pin *gm* " should give a list that can be copied and pasted to a text file.
Then the same with "show param"
Please Log in or Create an account to join the conversation.
- ahmetbm
- Offline
- Junior Member
-
- Posts: 34
- Thank you received: 1
andypugh wrote: Can you attach a pin listing of all the General Mechatronics pins?
Here is parameters list. i will try to use one driver slave and other as master.
Please Log in or Create an account to join the conversation.