Please help create atc code
02 Nov 2024 10:15 - 02 Nov 2024 10:21 #313648
by Danil
Please help create atc code was created by Danil
Please help me to create a code so that it performs similar actions as in the video
www.youtube.com/shorts/wJyLojZTqKQ
www.youtube.com/shorts/wJyLojZTqKQ
Last edit: 02 Nov 2024 10:21 by Danil.
Please Log in or Create an account to join the conversation.
02 Nov 2024 11:03 #313650
by Danil
Replied by Danil on topic Please help create atc code
Or please share a similar code, I would be very grateful
Please Log in or Create an account to join the conversation.
04 Nov 2024 17:39 #313764
by spumco
The first problem with your request is that logic for tool changers is very hardware-specific; only you know what hardware you have and how LCNC can control it.
Second problem is that there are many different ways (in software) to control a tool changer. G-code subroutines, Classic Ladder (i.e. PLC), python + hal via the GUI, and probably others. As with your hardware, only you know which control scheme is the 'best' for your situation.
Replied by spumco on topic Please help create atc code
Try searching the forum. I suggest limiting the search to 'title' only, and go back longer than a year. Research the numerous posts where other folks have worked through various tool changer problems and see if what they discussed is similar to your situation.Or please share a similar code, I would be very grateful
The first problem with your request is that logic for tool changers is very hardware-specific; only you know what hardware you have and how LCNC can control it.
Second problem is that there are many different ways (in software) to control a tool changer. G-code subroutines, Classic Ladder (i.e. PLC), python + hal via the GUI, and probably others. As with your hardware, only you know which control scheme is the 'best' for your situation.
Please Log in or Create an account to join the conversation.
07 Nov 2024 08:03 #313998
by Danil
Replied by Danil on topic Please help create atc code
I have a spindle equipped with this feature for pidconnection to a relay. I need an approximate code M6 for linear tool change
Please Log in or Create an account to join the conversation.
07 Nov 2024 08:17 #313999
by Aciera
Replied by Aciera on topic Please help create atc code
You might want to have a look at the example config in 'configs/sim/axis/remap/rack-toolchange' as a starting point.
Note the custom entries at the bottom of the inifile:
github.com/LinuxCNC/linuxcnc/blob/master...e/racktoolchange.ini
and the ngc remap:
github.com/LinuxCNC/linuxcnc/blob/master...ines/rack_change.ngc
Note the custom entries at the bottom of the inifile:
github.com/LinuxCNC/linuxcnc/blob/master...e/racktoolchange.ini
and the ngc remap:
github.com/LinuxCNC/linuxcnc/blob/master...ines/rack_change.ngc
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19188
- Thank you received: 6429
07 Nov 2024 08:30 #314000
by tommylight
Replied by tommylight on topic Please help create atc code
That is called a "rack tool changer", i am pretty sure it can be controlled with gcode only, not sure if it needs remaping (i guess it would), so it should be easy to do, although i never tried it.
forum.linuxcnc.org/20-g-code/36441-anyon...-length-probe#131714
forum.linuxcnc.org/20-g-code/36441-anyon...-length-probe#131714
The following user(s) said Thank You: Masiwood123
Please Log in or Create an account to join the conversation.
08 Nov 2024 11:46 - 08 Nov 2024 11:46 #314075
by Danil
Replied by Danil on topic Please help create atc code
Thanks for the reply, now I'm trying to do something via remap but I'm not sure I'm doing it right. I can't figure out how to interact with pin 17 on port 0.So far there is this outline of the remap, I would appreciate it if you could point out any errors.Thanks for the links, I'll have a look.
Last edit: 08 Nov 2024 11:46 by Danil.
Please Log in or Create an account to join the conversation.
08 Nov 2024 16:07 #314080
by Aciera
Replied by Aciera on topic Please help create atc code
for your parport input you could use eg 'motion.digital-in-00'
linuxcnc.org/docs/html/man/man9/motion.9.html
in your hal you would connect the two pins like this:
in your ngc remap you would then use M66 P0 .. to interact with your input:
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m66
linuxcnc.org/docs/html/man/man9/motion.9.html
in your hal you would connect the two pins like this:
net somesignal <your_parport_pin17_here> motion.digital-in-00
in your ngc remap you would then use M66 P0 .. to interact with your input:
linuxcnc.org/docs/html/gcode/m-code.html#mcode:m66
Please Log in or Create an account to join the conversation.
Time to create page: 0.083 seconds