LinuxCNC for low level stepper motor control?

More
24 Apr 2012 16:53 #19495 by BigJohnT
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

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

  • Smecky
  • Smecky's Avatar Topic Author
  • Visitor
  • Visitor
24 Apr 2012 17:09 - 24 Apr 2012 17:11 #19496 by Smecky
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 Apr 2012 17:11 by Smecky.

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

More
24 Apr 2012 17:37 #19498 by BigJohnT
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

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

  • Smecky
  • Smecky's Avatar Topic Author
  • Visitor
  • Visitor
24 Apr 2012 17:42 #19499 by Smecky
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?

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

More
24 Apr 2012 17:52 #19500 by BigJohnT

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

  • Smecky
  • Smecky's Avatar Topic Author
  • Visitor
  • Visitor
24 Apr 2012 17:59 #19501 by Smecky
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!

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

Time to create page: 0.129 seconds
Powered by Kunena Forum