component compile problem

More
27 Nov 2022 22:41 #257787 by AlexMagToast
thank you for your quick reply.

Carousel might work, though I am a little confused about the rotation sequence.
It looks like it needs to open one valve until a sensor triggers, then it needs to trigger a different valve to lock, and that advances one position.

Yes, there is a piston inside and it has to be pushed up and down per cycle. I think Skidloaders1got around this by placing several timers in his hal file.

Is there a sensor to indicate that the piston is at the end of travel, or is it done purely on time?

As i understand the piston is shaped in such a way, that the turret reaches next position if the piston is up. So basicly i have to enable Selenoid 1 till next pos is reached, switch selenoid 1 off an 2 on and wait couple seconds and repeat if neccesarry. So appart of 4 pos switches there are only these 2 selenoids and the hydraulic pump that migth want to be checked if it is set to run. I guess it should be a simple script.

To use "carousel" you would need to use something like a one-shot HAL component to pulse the solenoid valves, and at that point there is more happening outside carousel than inside.

yes, that is what Skidloaders1 is doing too.

Note that the "tooledit" programme will not allow multiple tools in the same pocket, and your changer seems to require that. You can edit the tool table with a text editor, though, and get the desired result.

hm i see, i was hoping to maybe misuse the orientation parameter, but i have not yet figured out, how all of this works. how i might be able to acces these parameters for example. I guess setting it manually in a textfile is ok too.

Are you more comfortable with G-code or C for the control sequence?

Good question, i think both would be considerable for me. I have read several forum threads, where these approaches and also using classicladder was discussed. I have to admit i am fairly new to the game and have much to figure out still. right now, i don't understand benefits of one or another.
But if i see correctly you just wrote a Gcode subroutine for me, so i guess this one i'll try first :) Thank you!

now that i am asking about these kind of expansions for linuxcnc. I also need to find a way to trigger a lube pump while axis are moving. what do you think of the idea to just write a simple python script and load it in userspace? precise Timing should be irrelevant for such applications, right? I could also imagine turning the turret with this method. what do you think about this? does it matter how much is in servo thread and how much in user thread?

Thanks, Alex


PS. for people going through this thread in the future that might be interested in my config files, i published my linuxCNC config folder to github and you can find my current setup here (at the time of me posting this, this is still work in progress of course): github.com/AlexmagToast/WeilerPrimusCNC_LinuxCNC_config

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

More
23 Jul 2023 19:37 - 23 Jul 2023 20:26 #276102 by AlexMagToast
just to close this thread from my side, i am proud to report, i found a solution that works very well for me and provides 100% functionality for the Turret.
As described i own the very same Lathe as Skidloaders1 with the same Turret as him.

I ended up creating a python component, which waits for the toolchange pin go high.
It will then go through the tooltable and see, which position the ordered Tool is at and where the Turret is atm.
I added a parameter in the comment section, which represents side 1-4 for each tool.
Now if the ordered Tool is on another side than present, it will cycle through the hydraulic process till the right side is reached.
After that the Toolchanged Pin is set high and the process is given back to LinuxCNC.

So i can set Offsets and Position on the Turret in the tooltable and i can order Tools via Gcode as usual.

For reference here is my code:
github.com/AlexmagToast/LinuxCNC-Sauter-HeadRevolver

I think this approach is quite easy and versatile.
Cheers,
Alex
Last edit: 23 Jul 2023 20:26 by AlexMagToast.
The following user(s) said Thank You: besriworld

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

Time to create page: 0.148 seconds
Powered by Kunena Forum