freelancer needed to create a routine for ATC tool change (rackchange)

More
10 months 2 weeks ago #339992 by Masiwood123
now, I don't know how to set the delta y for the second toolbox 4-5-6, because it has a gap between 123 456

youtube.com/shorts/nZJZBoi4e4g

Please Log in to join the conversation.

More
10 months 2 weeks ago #340002 by tommylight
Is the gap a multiple of existing tool distances?
If yes, set it as tool (4 i think in your case) and just do not use tool 4 in post, and even if someone asks for tool 4 no damage should be done as the spindle does not go that low.

Please Log in to join the conversation.

More
10 months 2 weeks ago #340007 by Masiwood123
The space between 3 and 4 do not agree to say that it is possible to divide by 111I would like all 6 tools to work, the delta between 1,2,3 is 111mm, so there is a gap, so the same delta raster between 4,5,6 is also 111mm, so the distance between 3 and 4 is 317mm...I will post the script for the first 3 tools later...if I copy and put an additional [change position delta 2]' in the ini file with ``if<current_tool GT 3>`` it doesn't work

Please Log in to join the conversation.

More
10 months 2 weeks ago #340010 by Masiwood123

Attachment not found

Attachment not found

Attachment not found


if someone know to edit ini and rack_change.ngc files according to my y positions for tool 4,5,6 here are my files.thank you


 

Please Log in to join the conversation.

More
10 months 2 weeks ago #340017 by rodw
The distance between 3&4 = 317 and its therefore 206mm  more than the delta. (111_206 - 306)
I think I would save this gap in the ini file as a seperate variable and calculate the tool position and do something like
#tool_pos = #<_current_tool> * #<_ini[tool_slot_delta]y>]
if #<current_tool GT 3>
  #tool_pos = #tool_pos + 206  
G53 G0 Y [#<_ini[change_position]y> + #tool_pos X [#<_ini[change_position]x>]

I'll leave it to you to sort out the syntax as gcode is not my strong point. We have postprocessors for that!

Please Log in to join the conversation.

More
10 months 2 weeks ago #340018 by Masiwood123
thanks Rodw, I can try ``it in the air'' but that would also be ok if I get a change for slot 4, but since slot 5 and 6 are also bigger than GT3, then I will get some other distance for 5 and 6, unless I make additional lines again, ``if GT4`` is bigger than 4, then again only delta y will work, which is 111mm?

Attachment not found

Please Log in to join the conversation.

More
10 months 2 weeks ago #340020 by MaHa
I see you got replys already, while preparing this.  My idea to solve that, by adding the gap value for tool 4 to 6. Extend the ini entry for [TOOL_SLOT_DELTA] by y_gap, then apply that value for tool 4 to 6


in o<rack_change> sub

Code:
o300 if [#<_current_tool> GT 0 ]     (print, idem da ostavim alat)   o302 if [#<_current_tool> GE 4 ]        #<y_gap> = #<_ini[tool_slot_delta]y_gap>]   o302 else        #<y_gap> = 0   o302 endif     o301 if [EXISTS[#<_ini[change_position]x>]]           G53 G0 Y [#<_ini[change_position]y> + #<y_gap> + #<_current_tool> * #<_ini[tool_slot_delta]y>] X [#<_ini[change_position]x>]      G53 G0 Z #<_ini[change_position]z>          o301 endif 


    
in .ini

Code:
[TOOL_SLOT_DELTA] X = 0 Y = -111 Z = 0 y_gap = 317


 

Attachment not found




Edit:

AS the 'tool_slot_delta' is always added, the 'y_gap' should be reduced by 111 to 206

Please Log in to join the conversation.

More
10 months 2 weeks ago #340021 by Masiwood123
thanks a lot i can try this tomorrow

Please Log in to join the conversation.

More
10 months 2 weeks ago #340060 by Masiwood123
.this does not work, maybe because you entered the parameters in the routine in the section of returning the current tool to its place, also o302 already exists, so I changed it to o303, but the same thing happens when selecting T4 M6(spindle goes 111mm from tool 3). you should somehow add it to the section of the file where it says ``POKUPI ALAT'',- means that is, ``selected tool'' down in routine, if you are able to edit that part. Thank you very much
 

Attachment not found

.

Please Log in to join the conversation.

More
10 months 2 weeks ago #340064 by MaHa
I modified the routine for unload and load, o315 and o 316 used. In .ini file the value for 'y_gap' should be 206, not 317 The diff shows the modification  


 

Attachment not found



 

Attachment not found


 

Please Log in to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum