commandcnc linux motor issues

CommandCNC related questions, tips and topics can be posted here
Post Reply
mcmental
2.5 Star Member
2.5 Star Member
Posts: 133
Joined: Thu May 14, 2020 10:06 am

commandcnc linux motor issues

Post by mcmental »

hi there, i have asked the question on the commandcnc forum but i dont seem to be getting a clear answer.

i have a 4 motor setup for plasma and im running commandcnc on linux, now everything was running fine except i had my home switches in wrong place so i moved them and re routed some wiring, upon switching everything back on now when i try to run the Y axis (this has second motor as a slave) i just get loads of juddering and it doesnt go anywhere, i have put 1 motor into reverse (still using the old settings) so i switched the wiring for the 2 motors and then the problem goes to the other motor, swapped the drivers over still have the issue.
i have taken the belts off so i can see what is going on and only 1 of the motors drives when i hit the jog key on the keyboard, should they both drive?? couple of videos here, 1 with both motors connected and 1 with only 1 connected.
only reason i have it as motor 5 not 4 is because of a chewed up screw on the terminal.
thanks


CC677959-4A2D-4F09-A9D1-FCE8636A9269.png
7D8E9AB5-A91D-4B6D-90C3-2FA36D7E539A.png
DAAFAD52-A0CB-44C0-88AA-AC9136DA6325.jpeg
21AE8E1F-9DD9-4957-B80B-2717F7DC8026.png
mcmental
2.5 Star Member
2.5 Star Member
Posts: 133
Joined: Thu May 14, 2020 10:06 am

Re: commandcnc linux motor issues

Post by mcmental »

the settings are showing 800 steps per unit at the moment i have put those up to around 2000, im working in metric here in the uk, nema 23 steppers 20 tooth gear and gt3 belt.
robertspark
4.5 Star Elite Contributing Member
4.5 Star Elite Contributing Member
Posts: 1801
Joined: Mon Jun 12, 2017 6:43 pm

Re: commandcnc linux motor issues

Post by robertspark »

mcmental wrote: Tue Sep 14, 2021 3:04 am the settings are showing 800 steps per unit at the moment i have put those up to around 2000, im working in metric here in the uk, nema 23 steppers 20 tooth gear and gt3 belt.
??

I don't understand your math.

800 steps per inch equals 800 steps per 25.4mm....
therefore 800/25.4= 31.4960629921 steps per mm

20 tooth gear... gt3 (1 presume 3mm per tooth???)
sw5-sw8 on on on off = 1000 micro steps per rev

20 X 3 = 60mm per revolution.
60 / 1000 = 0.06mm / step
1/0.06 = 16.6666666667 steps per mm

if in imperial....
16.6666666667 X 25.4 = 423.333333333 steps per inch....
mcmental
2.5 Star Member
2.5 Star Member
Posts: 133
Joined: Thu May 14, 2020 10:06 am

Re: commandcnc linux motor issues

Post by mcmental »

robertspark wrote: Tue Sep 14, 2021 3:22 am
mcmental wrote: Tue Sep 14, 2021 3:04 am the settings are showing 800 steps per unit at the moment i have put those up to around 2000, im working in metric here in the uk, nema 23 steppers 20 tooth gear and gt3 belt.
??

I don't understand your math.

800 steps per inch equals 800 steps per 25.4mm....
therefore 800/25.4= 31.4960629921 steps per mm

20 tooth gear... gt3 (1 presume 3mm per tooth???)
sw5-sw8 on on on off = 1000 micro steps per rev

20 X 3 = 60mm per revolution.
60 / 1000 = 0.06mm / step
1/0.06 = 16.6666666667 steps per mm

if in imperial....
16.6666666667 X 25.4 = 423.333333333 steps per inch....
Thank you, the original settings vanished during a power cut so I was guessing. So should the slave motor drive too?
User avatar
acourtjester
6 Star Elite Contributing Member
6 Star Elite Contributing Member
Posts: 7754
Joined: Sat Jun 02, 2012 6:04 pm
Location: Pensacola, Fla

Re: commandcnc linux motor issues

Post by acourtjester »

if you have 2 motors on one axis they need to have the same setting on the driver.
Now the jitter you have a broken wire or bad connection going to the motor that jitters, it is the DIR signal. What happens is it gets a step pulse but does not know which way to go, so it jitters.
DIY 4X4 Plasma/Router Table
Hypertherm PM65 Machine Torch
Drag Knife and Scribe
Miller Mig welder
13" metal lathe
Small Mill
Everlast PowerTig 255 EXT
mcmental
2.5 Star Member
2.5 Star Member
Posts: 133
Joined: Thu May 14, 2020 10:06 am

Re: commandcnc linux motor issues

Post by mcmental »

Thank you, I have traced it back and found the wire at fault, going to work on the acceleration and velocity tonight
Post Reply

Return to “C&CNC CommandCNC”