Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thread to shoulder #231

Open
kwackers opened this issue Oct 16, 2022 · 14 comments
Open

Thread to shoulder #231

kwackers opened this issue Oct 16, 2022 · 14 comments

Comments

@kwackers
Copy link

kwackers commented Oct 16, 2022

Note: edited issue to reflect current state (added multistart threads).

I've been working on thread to shoulder code - I can't see anywhere else to put this so I've put it here as an "issue".

Code is available at https://github.com/kwackers/electronic-leadscrew
If you have any issues please raise one on my page rather than pollute this.

Some notes.
Currently config is "my" config - so you'll need to change anything necessary in there. There are also a number of other changes to the way it works (default settings on power up, number formats in metric etc).

The code adds an option menu to the Set button, the + & - buttons cycle through the options and the Set button selects one.
If none are selected then they'll time out and return to normal operation.

The three options are 'Custom Thread', 'Thread to Shoulder' and 'Position'.

Custom Thread
If Custom thread is selected the left hand of the display will have the prefix "Ct" and the first digit of the pitch will flash.
Use the + & - keys to change this value and press Set to move on to the next digit - repeat for all 3 digits.
Once all 3 digits have been entered the display will revert to normal operation but using the custom pitch you've just set.
Whilst entering digits you can at any point press Pwr once to exit the mode.
Note it only allows metric threads to be set, (obviously you can calculate the metric equivalent of an imperial thread).

Thread to Shoulder
If thread to shoulder is selected the display will prompt for number of 'starts' with "Multi 1". The value can be modified using the + & - keys in the range 1-9.
'1' is a normal single start thread.
Press 'Set' to accept.

The display now shows 'Go Shoulder'.
You can move the carriage to the shoulder by any means, once at the shoulder you must engage the half nuts and keep them engaged for the duration of the threading session.

Once in place press Set to enter the shoulder position, the display will now show 'Go Start'.
You should now move to the start position by rotating the spindle, once there press Set to mark the start position.

Display will show 'Begin n.x' where n is the start number and x is the number of starts you selected.
You can now take a pass of the thread in the usual way.
The carriage will automatically stop at the shoulder and the display will show 'Stop'.

Stop the spindle and once stopped the display will show 'Retract'.
Retract the cutter from the work and then press either Set or +, the carriage will now move back to the start and repeat from 'Begin'. If multi start threads have been selected it will index to the position of the next 'start'.
(You can also manually wind the cutter back to the start using the spindle if you wish).

Once you've completed the thread, one press of Pwr will exit the mode.
Note when the spindle has stopped rotating the left side of the display will show "Sh" to remind you you're in thread to shoulder mode.

Position
Display will show the angular position of the spindle instead of RPM. To exit go back into the menu and select 'RPM'.

Notes
The leadscrew retract speed is set in configuration.h (currently 200rpm).
The motor never decelerates it just 'stops' so I'd keep the carriage speed to within manageable levels.
The code by necessity increases the overhead of the interrupt routines by a small amount which for very high microstepping rates increases the chances of the ELS throwing the "Too Fast" error message.

(P.S shameless self plug but if you're interested in automating things have a look at my website www.worldofward.com)

@tomvikse
Copy link

Testing it out now but only get custom thred in the menu..

@kwackers
Copy link
Author

kwackers commented Oct 16, 2022

Have you picked the correct branch? (You want the "thread to shoulder" branch and not master).
(https://github.com/kwackers/electronic-leadscrew/tree/ThreadToShoulder)

Also probably should have made it clearer you have to use the "+" and "-" buttons to step through the menu.

@tomvikse
Copy link

Did not see the branches, github is new to me..

@tomvikse
Copy link

tomvikse commented Oct 16, 2022

first test,stoped fine, on the way back to start it stoped 1/2 way (around 33mm) and got a error "reset too fast"

https://photos.app.goo.gl/hua9LtjjX59gnH2H9

sounds like the leadscrew servo try to speed up like crasy and trips..

@tomvikse
Copy link

There is something wrong whit the fees speeds to.. way to fast.. threading speed is ok.. testet 1mm pitch 10mm long..

And can you move the tretract button to the + button,way to easy now to hit the power button in stead of the set button and you reset the program..

@kwackers
Copy link
Author

first test,stoped fine, on the way back to start it stoped 1/2 way (around 33mm) and got a error "reset too fast"

https://photos.app.goo.gl/hua9LtjjX59gnH2H9

sounds like the leadscrew servo try to speed up like crasy and trips..

That's a bit weird.
The error is basically to signal that the carriage position is too far away from where it should be.
During retraction this is actually true since the spindle isn't rotating but it's flagged so the error can't occur.
For it to occur the retract must exit early before it's reached the start (which is what looks like happens), the servo speeding up would happen at that point because it's now trying to catch up.

Can you attach/send me your configuration file? (I'm wondering if any numbers are overflowing).

The feed rates are set for my machine so you probably want to put them back to what they should be.
(When I remerge my changings back into my master branch I'll reset all of these to the defaults that were set in the original).

@tomvikse
Copy link

tomvikse commented Oct 16, 2022

electronic-leadscrew-ThreadToShoulder.rar
https://www.filemail.com/d/kdenckvabxeyuwv

@kwackers
Copy link
Author

electronic-leadscrew-ThreadToShoulder.rar https://www.filemail.com/d/kdenckvabxeyuwv

Cheers.
I have a repro. Hopefully won't take me too long to work out what's happening.

@kwackers
Copy link
Author

New version pushed up with fix.

@kwackers
Copy link
Author

Added multistart threads

@tomvikse
Copy link

tomvikse commented Dec 9, 2022

There is a bug in there.. se post i made on your fork

@steelbarz
Copy link

Have been using the Clough42 ELS for over a year and love it, This feature is exactly what it needed. Just loaded and updated and seems to work great thank you very much (PS Love your rotary table upgrade too been using it as well)

@blackfister
Copy link

I have installed your version, and doesn’t seem to work, no action with + - , weird. While inhaling cloughs els version again, I lost threading, it advances, but in thread mode, stepper doesn’t activate, any hint on this? Thanks in advance

@kwackers
Copy link
Author

Hi, sorry I can't offer any hints but reverting the firmware should work - there's absolutely no reason why it wouldn't.
Sounds like something else has broken - something popped off the board? Cable broken?
Once you have the Clough version working correctly then you should be able to install mine - again it should work just fine (assuming you copy across any settings you need).

I have installed your version, and doesn’t seem to work, no action with + - , weird. While inhaling cloughs els version again, I lost threading, it advances, but in thread mode, stepper doesn’t activate, any hint on this? Thanks in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants