Linuxcnc on Debian Stretch 9 32 bit preempt rt

More
15 Apr 2019 11:16 #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 or Create an account to join the conversation.

More
15 Apr 2019 14:17 #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 or Create an account to join the conversation.

More
15 Apr 2019 20:37 - 15 Apr 2019 20:43 #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
Last edit: 15 Apr 2019 20:43 by Grotius.

Please Log in or Create an account to join the conversation.

More
19 Apr 2019 16:21 - 19 Apr 2019 16:22 #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?
Attachments:
Last edit: 19 Apr 2019 16:22 by richard123.

Please Log in or Create an account to join the conversation.

More
19 Apr 2019 16:50 #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)
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
20 Apr 2019 00:43 #131265 by tommylight

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 or Create an account to join the conversation.

More
20 Apr 2019 07:15 - 20 Apr 2019 07:16 #131280 by Clive S

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 www.ebay.co.uk/itm/M3-M4-M5-M6-M8-M10-Fi...-500mm-/272714083192 B)
Last edit: 20 Apr 2019 07:16 by Clive S.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

More
20 Apr 2019 10:31 #131290 by InMyDarkestHour
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 or Create an account to join the conversation.

More
20 Apr 2019 11:33 #131293 by Clive S

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 or Create an account to join the conversation.

More
20 Apr 2019 12:07 #131297 by InMyDarkestHour
Sorry I was unaware I wasn't allowed to make mention of screw pitches.

Please Log in or Create an account to join the conversation.

Time to create page: 0.102 seconds
Powered by Kunena Forum