- Posts: 99
- Thank you received: 0
Multiple tools on the CNC
- Peterdeleu
- Topic Author
- Offline
- Premium Member
-
I'm new to Linuxcnc.
Currently I'm running LinuxCNC on a PC not connected to a machine.
I'm working on a retrofit with Mesa hardware.
My "old" CNC has a head with 18 different tools. (Biesse Rover 18)
Each tool is fixed on a pneumatic cilinder. This cilinder presses the toon down when selected.
So there is no tool change. Every tool has a fixed place on the toolhead.
My question is, If I change the X, Y and Z in the tool table in LinuxCNC for each tool, will this result in a "correction" so that the chosen tool is on the right location during milling?
Regards
Peter
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
Please Log in to join the conversation.
- Peterdeleu
- Topic Author
- Offline
- Premium Member
-
- Posts: 99
- Thank you received: 0
Ok great, one step further
The next challenge is to use Classicladder. This is still something abstract to me. With Classicladder I should be able to manipulate the outputs on the 7I77, so that the right tool is pushed downwards. (by a pneumatic cilinder)
The next question is, Do I have to write some kind of Classicladder marcro and call this macro from within the CNC program?
How is Classicladder in LinuxCNC. Is this loaded by default during the startup of LinuxCNC, or does it have to be specified, .... ?
Sorry for those "questions"... I'm not lazy, but it helps me to get an overview of how things are working before I dig into the details
Please Log in to join the conversation.
and the Diameter to D where D number can be used from different tools
in Fanuc its Fixed to 1,10,20,30 all for tool Nr 1
Linuxccnc is free in Numbers
see here to be confirmed for CRC use
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
Peterdeleu wrote: So this means, if I use G43, the offset parameters in the tool table will be used for the last loaded tool or "G43 Hx" to specify the tool. This until G49 is used the cancels all the tool offsets.
Ok great, one step furthertx.
The next challenge is to use Classicladder. This is still something abstract to me. With Classicladder I should be able to manipulate the outputs on the 7I77, so that the right tool is pushed downwards. (by a pneumatic cilinder)
The next question is, Do I have to write some kind of Classicladder marcro and call this macro from within the CNC program?
How is Classicladder in LinuxCNC. Is this loaded by default during the startup of LinuxCNC, or does it have to be specified, .... ?
Sorry for those "questions"... I'm not lazy, but it helps me to get an overview of how things are working before I dig into the details
Classicladder comes installed with Linuxcnc. To load Classicladder your configuration files (ini and hal) have to be set up to use it. There are example simulation configs included with Linuxcnc demonstrating using Classicladder. For instructions how to setup and use Classicladder read the pertinent sections of the Linuxcnc documentation. However using Classicladder isn't usually nessisary for setting up a tool changer or other things in Linuxcnc. (There is more than one way to skin a cat.) But Classicladder can be a useful tool if you are used to programming PLC logic.
Please Log in to join the conversation.
- Peterdeleu
- Topic Author
- Offline
- Premium Member
-
- Posts: 99
- Thank you received: 0
In the mean time I know that I can us T1, T2, T3, ... with an offset given in the tool table.
But my CNC needs to lower the correct tool by use of a pneumatic cilinder.
All the tools (I think 17) are fixed on one head. (see picture).
I need to tell LinuxCNC to lower the tool and use the correct offsets.
The pneumatic cilinders will be connected to an output on the 7I77.
I've read the LinusCNC documentation, but couldn't find the answer.
I'm new to LinuxCNC, and it looks like there's much possible, but much is hidden
Please Log in to join the conversation.
- Todd Zuercher
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
wiki.linuxcnc.org/cgi-bin/wiki.pl?ToolChange
wiki.linuxcnc.org/cgi-bin/wiki.pl?Classi...tool_changer_program
Please Log in to join the conversation.
linuxcnc.org/docs/devel/html/man/man9/demux.9.html
You can (pretty much) just connect iocontrol.0.tool-number to the demux.0.sel-u32 pin.
The only minor problem is that the tool number is signed, to you need to convert it before passing to the demux.
linuxcnc.org/docs/devel/html/man/man1/iocontrol.1.html
linuxcnc.org/docs/devel/html/man/man9/conv_s32_u32.9.html
In the HAL file:
Please Log in to join the conversation.
this mightr work
Please Log in to join the conversation.
- Peterdeleu
- Topic Author
- Offline
- Premium Member
-
- Posts: 99
- Thank you received: 0
If I understand this..
I have to add the above code to the HAL file.
And then if I choose tool 1 (T1) in the CNC program, the port 00 will be activated?
And another question :
Thi encoder pins on the 7i77 are marked this way :
Pin 1 : QA0
Pin 2 : /QA0
Pin 3 : GND
Pin 4 : QB0
Pin 5 : /QB0
Pin 6 : +5V
Pin 7 : IDX0
Pin 8 : /IDX0
The pins on the encoder (BS193/500) :
/Z
/B
/A
GND
+12V
Z
B
A
I think this is the way to connect these both:
Pin 1 : QA0 - A
Pin 2 : /QA0 - /A
Pin 3 : GND - GND
Pin 4 : QB0 - B
Pin 5 : /QB0 - /B
Pin 6 : +5V - +12V ( I need 12V for the encoder, so i have to upscale the 5V to 12V)
Pin 7 : IDX0 - Z
Pin 8 : /IDX0 - /Z
Is this correct?
Regards
Peter
Please Log in to join the conversation.
