Remap of M6 not working correctly

More
07 Nov 2024 13:59 #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
07 Nov 2024 14:04 #314016 by viesturs.lacis

The other thing (but maybe of no importance here) is that your ini files use FEATURES in the [RS274NGC] section
# 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.

More
07 Nov 2024 14:30 #314017 by Aciera

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 see. Trying to edit a sim config to run physical hardware comes with a lot of potential pitfalls.
I would very much recommend to do this the other way around. Create a config that runs your hardware and then add the M6 remap to that.

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

More
07 Nov 2024 15:08 #314020 by viesturs.lacis

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 see. Trying to edit a sim config to run physical hardware comes with a lot of potential pitfalls.
I would very much recommend to do this the other way around. Create a config that runs your hardware and then add the M6 remap to that.

That was my first approach - I had a working config and I copied in all the bits of remap from a config of previous retrofit. But got all kinds of errors that ngc file not found although I could not find any mistake where subroutine folders are specified. I even copied from sample config and recreated the folders but still error. But in sample config it did work so I went the other route of merging my stuff into sample config

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

More
07 Nov 2024 15:17 #314022 by Aciera

But got all kinds of errors that ngc file not found although I could not find any mistake where subroutine folders are specified.


can you post this config and the exact errors you are getting?

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

More
07 Nov 2024 17:00 - 07 Nov 2024 17:01 #314025 by viesturs.lacis
Config is in first post, starts with Biesse.ini
There are no errors, everything looks as if g-code file is being executed - I can pause, resume, execute next line, stop, you name it. But nothing actually happens. Running normal g-code files is ok, I have made quite a few test parts

Should I make a video of that?
Last edit: 07 Nov 2024 17:01 by viesturs.lacis.

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

More
07 Nov 2024 18:14 #314027 by Aciera

Running normal g-code files is ok, I have made quite a few test parts

So if you have a tool-change (ie M6 T..) inside a gcode then the file executes all the way with the toolchange being ignored?

Config is in first post, starts with Biesse.ini

What I meant is post the first config you added the remap to and the errors you got there before you modified the sim config. The problem with the current situation is that nothing happens and there are no errors which makes troubleshooting very difficult.

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

More
07 Nov 2024 18:37 - 07 Nov 2024 19:08 #314029 by Aciera
I think you might be missing this in your hal file:

net tool-change iocontrol.0.tool-change iocontrol.0.tool-changed

[edit]

for troubleshooting it might also make sense to use the 'show halconfiguration' to watch the iocontrol.* pins like
iocontrol.0.tool-prepare
iocontrol.0.tool-prepared
iocontrol.0.tool-change

[edit2]

Just so we are on the same page, I presume you have tried the suggested (ie reversed M6 T..):
T.. M6
Last edit: 07 Nov 2024 19:08 by Aciera.
The following user(s) said Thank You: viesturs.lacis

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

More
07 Nov 2024 19:15 - 07 Nov 2024 19:25 #314032 by viesturs.lacis
 

I think you might be missing this in your hal file:

net tool-change iocontrol.0.tool-change iocontrol.0.tool-changed

 

Now that you mention it, yes, I do not remember putting these iocontrol pins anywhere. I knew that I might be making some stupid mistake. I guess I will go to workshop to check although I just put kids to sleep.

[code]Just so we are on the same page, I presume you have tried the suggested (ie reversed M6 T..):

[code]T.. M6
[/code][/code]

 To be honest, no, I did not try that because on previous retrofit it worked. IMHO specifying M command and then its parameters makes sense, doing other way around feels awkward and wrong. But ok, I will try that. 

I am testing from MDI. I _think_ that I tried a test file once but am not sure. Ok, that is 3rd point in my list to check.

I will take a look, it is very likely that I have deleted/overwritten it. And the lack of errors is exactly what makes it difficult as I have absolutely no clue where to look. I think that lack of those iocontrol HAL pins seems to be very likely cause, on my way to check that.
Last edit: 07 Nov 2024 19:25 by viesturs.lacis.

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

More
07 Nov 2024 20:53 #314042 by viesturs.lacis

I think you might be missing this in your hal file:

net tool-change iocontrol.0.tool-change iocontrol.0.tool-changed

[edit]

for troubleshooting it might also make sense to use the 'show halconfiguration' to watch the iocontrol.* pins like
iocontrol.0.tool-prepare
iocontrol.0.tool-prepared
iocontrol.0.tool-change

[edit2]

Just so we are on the same page, I presume you have tried the suggested (ie reversed M6 T..):

[code]T.. M6
[/code]

Reversing to Tn M6 did not help.
Adding 
 
net tool-change iocontrol.0.tool-change iocontrol.0.tool-changed
also did not do the trick but then I tried the second part of your suggestion of watching those iocontrol pins that relate to tool change and noticed that tool-prepare goes high that led me to think that it might be waiting for the tool to become prepared, so I tried this
net tool-prepare iocontrol.0.tool-prepare iocontrol.0.tool-prepared
net tool-change iocontrol.0.tool-change iocontrol.0.tool-changed
and ended up with MSG messages displayed and some actual motion to happen. Thank you very much!!! That was a silly mistake as usual!
The following user(s) said Thank You: Aciera

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

Time to create page: 0.155 seconds
Powered by Kunena Forum