Please help create atc code

More
1 year 11 months ago #313648 by Danil
Please help me to create a code so that it performs similar actions as in the video
www.youtube.com/shorts/wJyLojZTqKQ

Please Log in to join the conversation.

More
1 year 11 months ago #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 to join the conversation.

More
1 year 11 months ago #313764 by spumco
Replied by spumco on topic Please help create atc code

Or please share a similar code, I would be very grateful
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.

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 to join the conversation.

More
1 year 11 months ago #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 to join the conversation.

More
1 year 11 months ago #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

Please Log in to join the conversation.

More
1 year 11 months ago #314000 by tommylight
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

Please Log in to join the conversation.

More
1 year 11 months ago #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.

Please Log in to join the conversation.

More
1 year 11 months ago #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:
Code:
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 to join the conversation.

Time to create page: 0.238 seconds
Powered by Kunena Forum