Test LinuxCNC without motors and encoders connected

More
7 years 4 months ago #136391 by PCW
gnipsel.com/linuxcnc/tuning/servo.html

is a pretty good guide to setting up and tuning velocity mode servos with LinuxCNC

Note that with velocity mode servos some of the tuning (the velocity loop) is done
in the drive (these are probably already tuned), and some (the position loop) is done in LinuxCNC.

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

More
7 years 4 months ago #136713 by Peterdeleu
That make sense :) Tx !!

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

More
7 years 4 months ago #136831 by Peterdeleu
It all becomes clear to me :)
But still some questions..

I'll use Fusion as CAD/CAM.
After generating the G-code with the LinuxCNC postprocessor, I'm able to load the code into LinuxCNC.
Even tool changes are working.

These are the first lines of an example of the code generated by Fusion:
%
(1001)
(T11 D=10. CR=0. - ZMIN=-46. - FLAT END MILL)
(T12 D=2. CR=0. TAPER=118DEG - ZMIN=-6. - DRILL)
(T15 D=4. CR=0. TAPER=118DEG - ZMIN=-46. - DRILL)
N10 G90 G94 G17 G91.1
N15 G21
N20 G53 G0 Z0.
(2D POCKET10)
N25 M9
N30 T11 M6
N35 T12
N40 S9700 M3
N45 G54
N50 M8
N55 G0 X-2.216 Y175.52

At line N30 LinuxCNC stops and ask me to change the tool to 11.
But I have a Biesse with multiple heads. I know how to add tools and tool offsets in LinuxCNC, but how an I automize this ?
Each tool is fixed on the head. A specific pneumatic cilinder must be activated to push the tool down if in the G-code a tool change is asked. Because each tool is fixed on a different location, I will need to enter an offset. That that's more or less clear.
My question is, how can I activate the correct pneumatic cilinder without making changes in the G-code.

Greetz,
Peter

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

More
7 years 4 months ago #137205 by andypugh
You need to configure some form of tool changer code.

At the moment your machine is configured to use the manual tool change dialog box.

If you look in the HAL file there are connections (iocontrol.0.tool-change . iocontrol.0.tool-changed ) that are connected to hal_manualtoolchange.
(documented here, but not relevant really: linuxcnc.org/docs/2.7/html/man/man1/hal_manualtoolchange.1.html )

You probably need to
a) configure tool change retract: linuxcnc.org/docs/2.7/html/config/ini-co....html#_emcio_section
b) Connect the iocontrol.0.tool-change directly to iocontrol.tool-changed and also to something that will operate the cylinders.
demux would work: linuxcnc.org/docs/2.8/html/man/man9/demux.9.html
Though you would need to convert tool number (s32) to u32: linuxcnc.org/docs/2.8/html/man/man9/conv_s32_u32.9.html
demux is not present in 2.7, but can be easily added.
Writing a custom component is another option, it could be really very simple.

Do you anticipate ever wanting to enable more than one tool at a time?
This has been discussed before:
forum.linuxcnc.org/38-general-linuxcnc-q...ls-on-the-cnc#130317

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

More
7 years 4 months ago #137208 by Peterdeleu
Hmm okay :)

I've read the links and tips, but I'm afraid that it will not be easy for me to make something that will work.
But now I have at least a few starting points :)

If writing a custom component would be very simple, maybe this is the way to go?

Regards

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

More
7 years 4 months ago #137209 by bevins

Peterdeleu wrote: It all becomes clear to me :)
But still some questions..

I'll use Fusion as CAD/CAM.
After generating the G-code with the LinuxCNC postprocessor, I'm able to load the code into LinuxCNC.
Even tool changes are working.

These are the first lines of an example of the code generated by Fusion:
%
(1001)
(T11 D=10. CR=0. - ZMIN=-46. - FLAT END MILL)
(T12 D=2. CR=0. TAPER=118DEG - ZMIN=-6. - DRILL)
(T15 D=4. CR=0. TAPER=118DEG - ZMIN=-46. - DRILL)
N10 G90 G94 G17 G91.1
N15 G21
N20 G53 G0 Z0.
(2D POCKET10)
N25 M9
N30 T11 M6
N35 T12
N40 S9700 M3
N45 G54
N50 M8
N55 G0 X-2.216 Y175.52

At line N30 LinuxCNC stops and ask me to change the tool to 11.
But I have a Biesse with multiple heads. I know how to add tools and tool offsets in LinuxCNC, but how an I automize this ?
Each tool is fixed on the head. A specific pneumatic cilinder must be activated to push the tool down if in the G-code a tool change is asked. Because each tool is fixed on a different location, I will need to enter an offset. That that's more or less clear.
My question is, how can I activate the correct pneumatic cilinder without making changes in the G-code.

Greetz,
Peter



Which Biesse do you have? Do you also use a spindle along with the gang drills?

If you use a spindle with a bit in it and also the drill bank, your Biesse already has a spindle select relay. You can use that or use multiple spindle in 2.8 and spindle.0 would be your regular s[spindle and spindle.1 would be your drill motor. Energize a relay to deselect spindle.0 and enable spindle.1 when drills needed. This can be done in remap or modify post depending on selected_tool.

One drill motor for all drills, just need to select drill depending on selected_tool and energize the relevant relay.

This is dependent on whether your Biesse has a tool changer or not.

You can use M64,M65 for energizing relays.
I have done a few Biesse machines. they are kinda fun to figure out.

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

Moderators: cmorley
Time to create page: 0.063 seconds
Powered by Kunena Forum