Lathe conversion from stock to CNC
- Soundreflections
- Offline
- Senior Member
- Posts: 56
- Thank you received: 0
I would also like to use the analogue "click" (press-switch?) to trigger movement if possible.
Any ideas how to accomplish this, or where to get more info?
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
- Soundreflections
- Offline
- Senior Member
- Posts: 56
- Thank you received: 0
Please Log in or Create an account to join the conversation.
John
Please Log in or Create an account to join the conversation.
- Soundreflections
- Offline
- Senior Member
- Posts: 56
- Thank you received: 0
I had indeed stopped before step 6! I am not sure how as I thought I had followed all instructions.
I had to invert X and Y axis's, but it works great. Any idea how I can add a 4th speed (My joystick has 4 number buttons and I prefer using all resources) to the entry, I tried just adding after 3 but axis would not start, so I think I need to define the 4 somewhere?
I would like to assign other buttons to functions (ie. put Estop and power on back buttons) where can I see a list of active inputs, I presume I can then just add entries from the joystick to that value?
I would also like to (once set up) start spindle and set speed, I was wondering about the digital direction pad, maybe up and down for FWD/REV, left and right for speed, maybe one of the back buttons as an enable button. Any suggestion how I can do that, and perhaps other handy functions?
Where can I put the config so stepconf does not overwrite it? I re-calibrated my Z axis, trying 20th mictostepping, to try get better performance / speed out of it, though I am obviously doing something wrong. I put 20 as the mictostepping value, but had to have a ratio of about 20:10 for any scale accuracy, where my actual ratio is 10:21.
Please Log in or Create an account to join the conversation.
I would never put an e stop on any pendant unless it was hard wired to the e stop loop.
Sounds like you have outgrown the Stepconf Wizard, if not each file that has "this will not be over written" is safe from Stepconf.
The numbers you put in Stepconf to get your scale number don't matter a twit, they are all just calculated to get the final scale value and that number is the only one used.
Typically you arrive at the scale like so:
Stepper steps per rev = 200
Stepper Drive Micro Steps per step = 10 (just depends on your drive)
At this point you know that it takes a scale number of 2000 to turn the stepper one revolution.
Say for example your stepper it connected to the lead screw directly and 5 turns equals 1" then 5 x 2000 = 10,000 step pulses to move the axis 1". If you have a reduction between the stepper and the leadscrew they you also have to figure that in.
John
Please Log in or Create an account to join the conversation.
I would also like to (once set up) start spindle and set speed, I was wondering about the digital direction pad, maybe up and down for FWD/REV, left and right for speed, maybe one of the back buttons as an enable button. Any suggestion how I can do that, and perhaps other handy functions?
There are several examples of adding more functions with a pendant in the wiki, you may want to look there for ideas.
It can be as simple as connecting a pendant hal pin to another hal pin.
You can use hal show machine configuration and hal watch to see what pins are available on the pendant and hitting a button to see the effect.
As John for said for safety an e stop should be hard wired to the e stop loop.
Rick G
Please Log in or Create an account to join the conversation.
- Soundreflections
- Offline
- Senior Member
- Posts: 56
- Thank you received: 0
Found the extra functions in the wiki - will look there and adapt.
Now to figure out how to draw and convert models for CNC!
Please Log in or Create an account to join the conversation.
- Soundreflections
- Offline
- Senior Member
- Posts: 56
- Thank you received: 0
I have had the pad stop responding a few times, then un-plugging / re-plugging and restarting LinuxCNC is required. Then it hung whilst moving! I was closing in on the workpiece, so high speed both axis's and they kept going. Fortunately I killed the motor quite quick, so some scratches on the chuck and my tool survived, but I did not run CNC again, finishing the project manually.
Any idea if it could have been the joypad / Linux, or CNC causing the problem?
I am thinking of uprating the pad's cable, soldering some smoothing caps in likely places and trying to screen the circuit board, to see if things improve.
I will also start experimenting with CAD and conversions, to run full auto.
Please Log in or Create an account to join the conversation.
I have had the pad stop responding a few times, then un-plugging / re-plugging and restarting LinuxCNC is required. Then it hung whilst moving!
I think you have found the problem with USB and userspace components in general. They stop if/when the UI freezes.
The realtime system carries on.
If you want to actually do machining under motor-control but twiddling knobs by hand, then I think that a couple of encoders (one for each axis) wired to HAL with all-realtime components will be a lot more reliable (should be 100% reliable).
However, might I suggest that something like my lathe routines might be more convenient for the sort of ad-hoc work you seem to be describing?
www.linuxcnc.org/index.php/english/forum...0-lathe-macros#34357
But note the caveats about it not actually working correctly yet.
Please Log in or Create an account to join the conversation.