Linuxcnc on Debian Stretch 9 32 bit preempt rt

More
7 years 6 months ago #130898 by richard123
Hello everyone, I am a beginner in Linux cnc so I hope you guys can help me with my situation.

At first, I was running my cnc machine through LPT port by using the debian wheezy live install with the rtai. My motors can rotates either in clockwise or counter clockwise.

Right now, I am trying to control my cnc machine through lpt port using the live install with Debian stretch 32 bit with preempt rt kernel. When i arrived at the stepconfig, I set my lpt address to become 0x378 (as usual) but then I couldn't continue. After changing the parallel port mode from 'Bidirectional' to 'Normal' in my BIOS, i can put 0x378 as my lpt port address. But, turns out that my stepper motors can only move in 1 direction (CCW). Can anyone please help me with this?

Please Log in to join the conversation.

More
7 years 6 months ago #130904 by Todd Zuercher
Is there anything you've configured differently this time?

Make sure your step and direction signals are not switched.

Please Log in to join the conversation.

More
7 years 6 months ago #130923 by Grotius
If you are in the beginning of Debian stretch 32, i can advise you to a direct switch to 64 bit.
It's more compatible with today's given program's.

If you look at the x axis :

pin 2 = step
pin 3 = direction (your issue)

remove pin wire 3 and put it on nothing. Move the machine....
Oke it moves in one direction. Then put pin 3 on a 5 volt power supply. Machine will move in other direction. If so yes, your hardware is in shape, if not check your machine (hardware).

If your software is the problem. Connect your pin with a multimeter. Maybe your pc port is blown out in the past. That is possible.
To test fast, you can use a ltp pci card.

if you type in terminal : sudo grep pci ( it will not responce ) maybe "lspci -v" check's the pci card adress for you !
linuxcnc.org/docs/2.4/html/examples_pci_parallel_port.html

Please Log in to join the conversation.

More
7 years 6 months ago #131246 by richard123
Hello guys, thank you for your replies and advices. Right now I am able to move my motors both direction. The reason is because I have misfilled the pin configuration. I should've put X step in pin 2 and X direction in pin 3. but instead I put them in pin number 1 and 2.

Right now I'm about to create a new step configuration for my machine. For this machine, the X and Y axis will be controlled using nema 17 stepper motor and timing pulley GT2. What I want to ask is, what should I put in the "Lead Screw Pitch" column for the stepconf?

Attachment not found

Please Log in to join the conversation.

More
7 years 6 months ago #131248 by Clive S

Right now I'm about to create a new step configuration for my machine. For this machine, the X and Y axis will be controlled using nema 17 stepper motor and timing pulley GT2. What I want to ask is, what should I put in the "Lead Screw Pitch" column


Exactly what it states . what it means is if you rotate the screw one revolution how far would the axis (table) move. So in the example it shows 5mm/rev. that means the axis will move 5mm for one rev.

If you are using screwed rod as a lead screw say 10mm it could be 1.25mm pitch (ie one rev would be 1.25mm travel)

Please Log in to join the conversation.

More
7 years 6 months ago #131265 by tommylight

Clive s wrote: If you are using screwed rod as a lead screw say 10mm it could be 1.25mm pitch (ie one rev would be 1.25mm travel)

10mm or M10 would be 1.5mm
M8 is 1.25mm

Please Log in to join the conversation.

More
7 years 6 months ago #131280 by Clive S
No eBay APP ID and/or Cert ID defined in Kunena configuration

tommylight wrote:

Clive s wrote: If you are using screwed rod as a lead screw say 10mm it could be 1.25mm pitch (ie one rev would be 1.25mm travel)

10mm or M10 would be 1.5mm
M8 is 1.25mm


I agree but you can also get 10mm rod with 1.25mm pitch. steel and brass B)

Please Log in to join the conversation.

  • AnnoyingMutt
  • New Member
  • New Member
More
7 years 6 months ago #131290 by AnnoyingMutt
Replied by AnnoyingMutt on topic Linuxcnc on Debian Stretch 9 32 bit preempt rt
Or you could cut just about any pitch thread you want with a lathe ;)

Metric Fine Thread
www.newmantools.com/tech/threadmf.htm
Metric Coarse Thread
www.newmantools.com/tech/threadm.htm

Just to be a smarty pants :P

Please Log in to join the conversation.

More
7 years 6 months ago #131293 by Clive S

AnnoyingMutt wrote: Or you could cut just about any pitch thread you want with a lathe ;)

Metric Fine Thread
www.newmantools.com/tech/threadmf.htm
Metric Coarse Thread
www.newmantools.com/tech/threadm.htm

Just to be a smarty pants :P


Yes but that is not what the op wanted to do. He was asking what numbers to put in stepconf

Please Log in to join the conversation.

  • AnnoyingMutt
  • New Member
  • New Member
More
7 years 6 months ago #131297 by AnnoyingMutt
Replied by AnnoyingMutt on topic Linuxcnc on Debian Stretch 9 32 bit preempt rt
Sorry I was unaware I wasn't allowed to make mention of screw pitches.

Please Log in to join the conversation.

Time to create page: 0.111 seconds
Powered by Kunena Forum