- Configuring LinuxCNC
- Basic Configuration
- ATC code works great in isolation, all kinds of problems in program
ATC code works great in isolation, all kinds of problems in program
08 Nov 2020 03:52 - 08 Nov 2020 05:38 #188646
by JetForMe
I've got my tool changer working great in isolation, but when I try to run a program that changes tools, all sorts of things go wrong.
I've attached the files. The REMAP subrouting, and the two subroutines it calls (lt and ut to load and unload tools).
Things that go wrong:
Any ideas what might be causing this, or how to handle it?
I've attached the files. The REMAP subrouting, and the two subroutines it calls (lt and ut to load and unload tools).
Things that go wrong:
- When I load a program, while it's scanning through the file, it tries to load the first tool. Or rather, it calls my loading code, but doesn't move the machine, and because my code waits for a tool-lock signal, it aborts.
- I can continue from this. Sometimes, it starts the tool change procedure, moves over the tool pocket, and then just stops moving. My code reports no errors, and program execution doesn't stop. The machine simply doesn't move.
Any ideas what might be causing this, or how to handle it?
Last edit: 08 Nov 2020 05:38 by JetForMe. Reason: Added files
Please Log in or Create an account to join the conversation.
08 Nov 2020 04:46 #188648
by bevins
I don't see any files attached.
Is it a python remap by chance? It sounds like it is not checking whether it is in mill task or not.
Replied by bevins on topic ATC code works great in isolation, all kinds of problems in program
I've got my tool changer working great in isolation, but when I try to run a program that changes tools, all sorts of things go wrong.
I've attached the files. The REMAP subrouting, and the two subroutines it calls (lt and ut to load and unload tools).
Things that go wrong:
- When I load a program, while it's scanning through the file, it tries to load the first tool. Or rather, it calls my loading code, but doesn't move the machine, and because my code waits for a tool-lock signal, it aborts.
- I can continue from this. Sometimes, it starts the tool change procedure, moves over the tool pocket, and then just stops moving. My code reports no errors, and program execution doesn't stop. The machine simply doesn't move.
Any ideas what might be causing this, or how to handle it?
I don't see any files attached.
Is it a python remap by chance? It sounds like it is not checking whether it is in mill task or not.
Please Log in or Create an account to join the conversation.
08 Nov 2020 05:39 - 08 Nov 2020 05:42 #188650
by JetForMe
Oh, so sorry! They're attached now.
It is not a Python remap; it's Gcode. Something like that makes sense, but does it need to be done in Gcode as well?
EDIT: I found the discussion around this concept: linuxcnc.org/docs/html/remap/remap.html#...apped-code-execution
Thank you, I should be able to fix issue #1. Not sure about issue #2. But I had to restart the machine for other reasons, and that hasn't happened again.
Replied by JetForMe on topic ATC code works great in isolation, all kinds of problems in program
I don't see any files attached.
Is it a python remap by chance? It sounds like it is not checking whether it is in mill task or not.
Oh, so sorry! They're attached now.
It is not a Python remap; it's Gcode. Something like that makes sense, but does it need to be done in Gcode as well?
EDIT: I found the discussion around this concept: linuxcnc.org/docs/html/remap/remap.html#...apped-code-execution
Thank you, I should be able to fix issue #1. Not sure about issue #2. But I had to restart the machine for other reasons, and that hasn't happened again.
Last edit: 08 Nov 2020 05:42 by JetForMe.
Please Log in or Create an account to join the conversation.
08 Nov 2020 13:33 - 08 Nov 2020 14:26 #188663
by bevins
I dont see anything that screams wrong...... I am thinking when you fix your milltask issue that should fix it maybe. The interpreter sometimes just ignores your commands in remap, if everything is not as it should be. I have struggled with that at times.
/EDIT load your ini, remap and toplevel files.
Replied by bevins on topic ATC code works great in isolation, all kinds of problems in program
I don't see any files attached.
Is it a python remap by chance? It sounds like it is not checking whether it is in mill task or not.
Oh, so sorry! They're attached now.
I dont see anything that screams wrong...... I am thinking when you fix your milltask issue that should fix it maybe. The interpreter sometimes just ignores your commands in remap, if everything is not as it should be. I have struggled with that at times.
/EDIT load your ini, remap and toplevel files.
Last edit: 08 Nov 2020 14:26 by bevins.
Please Log in or Create an account to join the conversation.
08 Nov 2020 15:51 #188668
by rootboy
Replied by rootboy on topic ATC code works great in isolation, all kinds of problems in program
Have you modified your EMCIO section of your machine.ini file to include:
"TOOL_CHANGE_POSITION = 0 0 0"
(change the 0 0 0 to wherever your home position is).
forum.linuxcnc.org/49-basic-configuratio...-move-to-home#188561
"TOOL_CHANGE_POSITION = 0 0 0"
(change the 0 0 0 to wherever your home position is).
forum.linuxcnc.org/49-basic-configuratio...-move-to-home#188561
Please Log in or Create an account to join the conversation.
08 Nov 2020 23:52 #188708
by bevins
Replied by bevins on topic ATC code works great in isolation, all kinds of problems in program
This shoulkdnt have anything to do with his remap situation. This simply moves the machine to the XYZ coords when toolchange is called.Have you modified your EMCIO section of your machine.ini file to include:
"TOOL_CHANGE_POSITION = 0 0 0"
(change the 0 0 0 to wherever your home position is).
forum.linuxcnc.org/49-basic-configuratio...-move-to-home#188561
Please Log in or Create an account to join the conversation.
09 Nov 2020 04:05 #188717
by rootboy
Replied by rootboy on topic ATC code works great in isolation, all kinds of problems in program
You are correct.
From how I interpreted the problem, I took the problem to likely be a "Not at Home" issue based on this line: " it calls my loading code, but doesn't move the machine".
Looking at it again, the machine in question could easily be the tool changer itself rather than the mill.
From how I interpreted the problem, I took the problem to likely be a "Not at Home" issue based on this line: " it calls my loading code, but doesn't move the machine".
Looking at it again, the machine in question could easily be the tool changer itself rather than the mill.
Please Log in or Create an account to join the conversation.
- Configuring LinuxCNC
- Basic Configuration
- ATC code works great in isolation, all kinds of problems in program
Time to create page: 0.110 seconds