gearchange with DC motor (3 gears) halcompile problems

More
3 years 9 months ago - 3 years 9 months ago #260864 by Alexandrion
I used your component as a starter and I modified it for my needs. At the moment this is work in progress and I plan to post the final version when it is finished and tested.
For now the switch logic and the short circuit delay seems to work, but I tested them only in Halshow. I still don't know how I will make use of the speed output, and if the spindle twitch is working.
Suggestions are welcomed. 

File Attachment:

File Name: hermle_uwf...box.comp
File Size:6.32 KB


PS. How can I read the value of  the programmed S gcode(ex. S1000M3)?  Now it reads spindle-vel-cmd-rpm but that means that my component will try to make a gear change to neutral every time I hit spindle stop. The programmed S value is also immune to the spindle override, which is one of the requirements. Thanks!

PPS. After a bit o research and mental gymnastics I came to the conclusion that is easier to remap two M codes (ex. M100/M101) to communicate with HAL to set a pin to
neutral = true/false. I will use this as guide for remapping . After this, if the component will see neutral = false and speed input 0 it will do nothing. If am am already in a gear and neutral = true , it will move to neutral position on the switch.
Last edit: 3 years 9 months ago by Alexandrion.

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

More
3 years 9 months ago - 3 years 9 months ago #261310 by Alexandrion
Hi all,

I managed to test the gearbox component on the machine and everything went well. At the moment the machine does homing correctly and is able to switch gears. For those interested in what I have done so far you can find the config files in the attachment.

One more safety feature I want to make is to stop power to the dc motors in case the gears somehow fails to mesh in a given time. ex 5 seconds, to prevent motor overheating and damage.

If you have any questions or suggestions let me know.

Kind regards,
Alex

File Attachment:

File Name: hermle_uwf...-08.comp
File Size:8.17 KB
Last edit: 3 years 9 months ago by Alexandrion.
The following user(s) said Thank You: tommylight, Wieser

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

More
2 years 8 months ago #294646 by Wieser
Hi Alex.
Nice to see that you could use this as a base for your machine. I basically abandoned my conversion for the last two years, but since December I started finishing it. 

It is strange that your gearbox will shift to neutral gear after spindle stop command, mine does not do that. But to investigate this, I would first need to rethink myself into the code...

Regarding your 5 sec timer: What i found during the use with the siemens control was, that it would fail to shift or "overshift" and get lost quite often.
When shifting with this component it all goes flawless, so I don’t think its necessary, but of course it would be nice to have.

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

More
2 years 7 months ago #296784 by Alexandrion
Hi Wieser,

I managed to finish my machine and now I have almost 5 months working with it. In the end I used the S remap route for gear selection because this allowed me to switch gears without having to start the spindle, just like in the original control. You can find my configuration in the attached and if you have any questions let me know.

Some things you may find interesting in my configuration:
1. Automatic lubrication based on distance traveled (just in auto mode, no jog)
2. Automatic gear selection based on S remap
3. Spindle orient and spindle pid tunning based on selected gear
4. Automatic tool changer based on carousel component, M6 remap and subroutines
5. Classic ladder for auto feed (like in the original control)
6. Implementation of xhc-whb04b-6 pendant
7. Different acceleration and deceleration ramp (useful for rapid breaking in tapping, otherwise rigid tapping tend to overshoot the desired depth)
8. Use of potentiometers for feed and rapid override.
9. Use of macros in the macro bar of gmmocapy (some with pictures)

Sure there is a lot of room for improvement but it can be used as a reference.

Kind regards,
Alex
The following user(s) said Thank You: COFHAL

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

Time to create page: 0.363 seconds
Powered by Kunena Forum