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.

Time to create page: 0.243 seconds
Powered by Kunena Forum