Remap of M6 not working correctly

More
1 year 11 months ago #314006 by viesturs.lacis
Ok so what I did and what whas the result is shown in 2 pictures attached.
In the tool_change.ngc I added following lines so that the beginning was this:
Code:
o<tool_change> sub (print, tool_change started) M66 E0 L0 (print, tool_change after 1st queuebuster) M73 (auto-restore modal settings on return) M66 E0 L0 (print, tool_change after 2nd queuebuster) G0 G53 X20 Y20 Z80 M66 E0 L0 (print, tool_change after 3rd queuebuster) (MSG, Tool change: loaded tool=#<_current_tool> ) (MSG, Tool change: selected tool=#<_selected_tool> ) M66 E0 L0 (print, tool_change after 4th queuebuster)

The result is that in the terminal only the first message is posted. Meaning that it did not get past that queuebuster line. What was expected behavior there? I do not have anything connected to motion.analog-in-00 so I would expect it to read value "zero" and move on...

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

More
1 year 11 months ago #314008 by Aciera
'tool_change started' was printed when the read-ahead ingested that line and then it stopped reading due to the queuebuster and waited for code execution to catch up. What this means is that the actual code execution does not reach the 'tool_change' subroutine.
Not sure what's going on but whatever it is it does not seem to be a problem in 'tool_change.ngc'.

Have you tried calling that subroutine directly from MDI:
Code:
o<tool_change> call

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

More
1 year 11 months ago #314009 by Aciera
Just noticed this, there are two ini files in that config. Are you running 'Biesse.ini' or ''racktoolchange.ini'?

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

More
1 year 11 months ago - 1 year 11 months ago #314010 by Aciera
The other thing (but maybe of no importance here) is that your ini files use FEATURES in the [RS274NGC] section
Code:
# turn on all optional features except RETAIN_G43 FEATURES= 30


which has been replaced by individual entries:

 

 
Last edit: 1 year 11 months ago by Aciera.

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

More
1 year 11 months ago #314015 by viesturs.lacis

Just noticed this, there are two ini files in that config. Are you running 'Biesse.ini' or ''racktoolchange.ini'?
 
Biesse.ini is my version, based on sample config of racktoolchange.ini

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

More
1 year 11 months ago #314016 by viesturs.lacis

The other thing (but maybe of no importance here) is that your ini files use FEATURES in the [RS274NGC] section
Code:
# turn on all optional features except RETAIN_G43 FEATURES= 30 which has been replaced by individual entries:  [attachment=65601]Features.png[/attachment]  
I am using remap/racktoolchange sample config as my starting point. It did work in simulation, but I do not get any movement when I edit ini file for axis/joints sections, add glade panels and my HAL files. I do not touch [RS274NGC] and [PYTHON] sections

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

Time to create page: 0.543 seconds
Powered by Kunena Forum