Emco 240 Tool Turret

More
10 Sep 2017 18:02 #98787 by andypugh
andypugh replied the topic: Emco 240 Tool Turret
Well, you would need to convert to LinuxCNC G-code, but that is just a case of changing IF to O100 IF and O100 ENDIF (basically LinuxCNC requires you to match the IF and ENDIF manually by numbers.)

linuxcnc.org/docs/2.7/html/gcode/o-code.html

Does the turret give any position feedback at all?
More
10 Sep 2017 18:04 #98788 by timmert
timmert replied the topic: Emco 240 Tool Turret
You mean a home switch?
There is only a normal stepper motor connected
More
10 Sep 2017 18:14 #98789 by andypugh
andypugh replied the topic: Emco 240 Tool Turret
So how does it know which tool position it is at?
More
10 Sep 2017 18:16 #98790 by timmert
timmert replied the topic: Emco 240 Tool Turret
at startup I select which tool is currently loaded
But I can always add a home switch
More
10 Sep 2017 18:32 #98791 by andypugh
andypugh replied the topic: Emco 240 Tool Turret
Maybe it can work for you as it is.

To call the G-code sub with M6 you need to look at this:

linuxcnc.org/docs/2.7/html/remap/remap.h...s_including_tt_m6_tt

You only need to do what it says in section 5.6 to call a G-code subroutine with M6, but you probably need to read other parts of that (huge) document to know where to make the changes.
More
12 Sep 2017 11:55 #98879 by timmert
timmert replied the topic: Emco 240 Tool Turret
I got it working and turret made it's first steps.

I got this line at the end of the macro to load the actual tool into linuxcnc.
It works, but it prompts with a message 'insert tool x and continue when ready'.
Is it possible to bypass this message?

M6T#<_selected_tool>
More
13 Sep 2017 05:38 #98910 by andypugh
andypugh replied the topic: Emco 240 Tool Turret

timmert wrote: I got it working and turret made it's first steps.

I got this line at the end of the macro to load the actual tool into linuxcnc.
It works, but it prompts with a message 'insert tool x and continue when ready'.
Is it possible to bypass this message?

M6T#<_selected_tool>


Yes. There are two ways to do this. Currently you probably have hal_manualtoolchange between iocontrol.0.tool-change and biocontrol.0.tool-changed. You can just link them directly and not load hal_manualtoolchange.

Or, simpler but not so correct, just replace the M6 in your macro with M61
More
13 Sep 2017 11:46 #98918 by timmert
timmert replied the topic: Emco 240 Tool Turret
Hi Andy,
I use Gmoccapy
I'm not sure how to connect it? It's a bit different.

net tool-change gmoccapy.toolchange-change <= iocontrol.0.tool-change
net tool-changed gmoccapy.toolchange-changed <= iocontrol.0.tool-changed
net tool-prep-number gmoccapy.toolchange-number <= iocontrol.0.tool-prep-number
net tool-prep-loop iocontrol.0.tool-prepare <= iocontrol.0.tool-prepared
More
13 Sep 2017 22:15 #98927 by andypugh
andypugh replied the topic: Emco 240 Tool Turret

timmert wrote: Hi Andy,
I use Gmoccapy
I'm not sure how to connect it? It's a bit different.

net tool-change gmoccapy.toolchange-change <= iocontrol.0.tool-change
net tool-changed gmoccapy.toolchange-changed <= iocontrol.0.tool-changed
net tool-prep-number gmoccapy.toolchange-number <= iocontrol.0.tool-prep-number
net tool-prep-loop iocontrol.0.tool-prepare <= iocontrol.0.tool-prepared


Change that section to:
net tool-change-loop  iocontrol.0.tool-change => iocontrol.0.tool-changed
net tool-prep-loop iocontrol.0.tool-prepare => iocontrol.0.tool-prepared
The following user(s) said Thank You: timmert
More
14 Sep 2017 10:00 #98937 by timmert
timmert replied the topic: Emco 240 Tool Turret
Working :)
Time to create page: 0.085 seconds
Powered by Kunena Forum