951
Show"N"Tell ( What you have made with your CNC machine.) / Re: Constructing a Low Profile Tool Height Setter.
« on: May 15, 2012, 09:39:15 AM »
LOL - top lines or bottom? - go on Tweakie - you can do it
Ian
Ian
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Wow as a moderator you are a really helpfull guy
PierceHeight = GetUserDRO(1000)
CutHeight = GetUserDRO(1001)
PierceTime = GetUserDRO(1002)
zoffset = GetUserDRO(1003)
If GetOEMLed(836) Then
MsgBox "Torch on surface"
Else
Code "G28.1 z0"
While IsMoving()
Wend
Code "G92 z0" 'set z 0
While IsMoving()
Wend
Code "G0 z" & zoffset' move to surface,inc switch free play
While IsMoving()
Wend
Code "G92 z0" 'set z 0
While IsMoving()
Wend
Code "G0 z" & PierceHeight' move to pierce height
While IsMoving()
Wend
Code "G4P" & PierceTime'pierce delay
While IsMoving()
Wend
DoSpinCW()' Turn torch on
While IsMoving()
Wend
Code "G0 z" & CutHeight'move to cut height
While IsMoving()
Wend
End If
I have it in as a m3 macro at the start of a cut file but it doesn’t always run consistently. If I run it step by step in the VB editor it runs OK.
Okay I hear what you are saying, I think I was side tracked here perhaps, I was following a thred from some guys blog and understood he did his milling machine this way.I know some folks use an Arduino running a gcode interpreter to drive their mills but personally I think they're making hard work of it. Why would you do that when far superior PC based software like Mach/LinuxCNC is available? anyway - each to their own.
So I have 3 x sparkfun easydriver boards and 3 x stepper motors, I will attempt to run the sparkfun stepper motor boards directly of the Parallel port instead of the Arduino board, there should be enough juice from the Parallel port.Easydriver inputs, Arduino inputs/outputs, Parallel port's inputs/outputs - all TTL and similar current sourcing/sinking specs. You'll be fine.
Thank you Stirling, you have been a great help "eye openner" and I very much appreciate your help.No probs - have fun.