NEWS
2.6 Live+Install image
There are no translations available.

Announcing a new Live+Install DVD image for installing LinuxCNC 2.6 on Debian Wheezy. Instructions here.

 
LinuxCNC 2.6.3 is released
There are no translations available.

Several bugs fixed, see the change log.

 
LinuxCNC 2.6.2 Released
There are no translations available.

Bug fix see the change log.

 
Home Forum General General LinuxCNC Questions LinuxCNC for low level stepper motor control?

Welcome, Guest
Username: Password: Remember me

TOPIC: LinuxCNC for low level stepper motor control?

Re:LinuxCNC for low level stepper motor control? 24 Апр 2012 09:53 #19495

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5875
  • Thank you received: 254
  • Karma: 158
That's why I came up with only Digital Machinist links then... thanks that would be cool. I wonder why we don't have some How To articles somewhere?

John
The administrator has disabled public write access.

Re:LinuxCNC for low level stepper motor control? 24 Апр 2012 10:09 #19496

  • Smecky
  • Smecky's Avatar
My, what a bonanza of information, but I'm getting the sneaking suspicion that LinuxCNC might be a little overpowered for my needs, but I do plan on getting into proper CNC in the distant future so learning to work with it might be beneficial.

For now my application for my numerical control is really simple, I might add on some stuff later like monitoring and writing logs to files (if that's possible), but the fundamentals are here, also, the format N:NN refers to timing in minutes and seconds, which I hope is possible.

0:00 NC Valve Group 0 release (might bodge a way to control liquid flow with steppers, we’ll see)
0:20 NC Valve Group 0 engage
0:21 NC Air Compressor engages
1:30 Stepper Z rotates, moving a linearly actuated rail to position B from A
1:31 Stepper Y rotates, spinning a shaft
2:00 Stepper Y stops spinning
2:01 Stepper Z rotates, moving a linearly actuated rail to position A from B
2:05 NC Air Compressor disengages

2:06 Stepper Group 1 rotates, moving a linearly actuated rail to position B from A
2:15 Stepper Group 2 rotates, moving a linearly actuated rail to position B from A
2:16 Stepper Group 2 rotates, moving a linearly actuated rail to position A from B
2:20 Stepper Group 1 rotates, moving a linearly actuated rail to position A from B, and powers down (hopefully)

2:21 NC Valve Group 1 release
3:00 NC Valve Group 1 engage
3:01 NC Valve Group 2 release
4:00 NC Valve Group 2 engage

30:45 Whole program chills out until this time, at which point it starts all over again!

There will be other stuff going on too, but that’s the nub of it.

Thanks again chaps!
Last Edit: 24 Апр 2012 10:11 by Smecky.
The administrator has disabled public write access.

Re:LinuxCNC for low level stepper motor control? 24 Апр 2012 10:37 #19498

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5875
  • Thank you received: 254
  • Karma: 158
If you can get by with relative time delays then that would be fairly simple in G code.
M63 P0
G0 (make digital output 0 turn off)
G4 P0.20 (delay for 20 seconds)
M62 P0
G0 (make digital output 0 turn on)
G4 P0.01 (delay for 1 second)
M62 P1
G0 (make digital output 1 turn on)
G4 P1.09 (delay for 1 minute 9 seconds)
G1 Z1.005 F25 (move stepper z)
G4 P0.29
...

Otherwise you might create a comp which is a fairly simple usually.

John
The administrator has disabled public write access.

Re:LinuxCNC for low level stepper motor control? 24 Апр 2012 10:42 #19499

  • Smecky
  • Smecky's Avatar
Ooh, what luck! That does look reasonably simple to do, and relative timings are fine and dandy. Just out of interest, What is a comp?
The administrator has disabled public write access.

Re:LinuxCNC for low level stepper motor control? 24 Апр 2012 10:52 #19500

  • BigJohnT
  • BigJohnT's Avatar
  • OFFLINE
  • Administrator
  • Posts: 5875
  • Thank you received: 254
  • Karma: 158
The HAL component generator.

linuxcnc.org/docview/html/hal/comp.html

John
The administrator has disabled public write access.

Re:LinuxCNC for low level stepper motor control? 24 Апр 2012 10:59 #19501

  • Smecky
  • Smecky's Avatar
Thanks John, I feel confident that I can achieve my needs with LinuxCNC and a blob of G-Code, you've been a great help. I have additional questions, related but not exactly along the same lines, so I shall start new threads elsewhere and give you a break!
The administrator has disabled public write access.
Time to create page: 0.636 seconds
Powered by Kunena Forum
© 2014 LinuxCNC.org
Joomla! is Free Software released under the GNU General Public License.