Array offset

More
7 years 8 months ago #125725 by crisiacuf
Replied by crisiacuf on topic Array offset
Thank you for the code!


It works for me but it makes an extra, unnecessary move on X after each line and one move on Y after the last line.
Is it the program that does that or my frankencode(I don't understand everything in it yet, is more of a work in progress understanding G code)?

This is an exemple:

G92.1

G21 G17 G90 G54 G64 P0.001
(5.5mm JOBBER DRILL)
T09 M06
S4500 M03
M08
G90 G54 G00 X0 Y0

O100 sub

T11 G43 Z25. H09
G83 G98 R3. Z-10. Q2. F354.33
G80 G00 Z25.

O100 endsub

#1=4 (number of items on Y)
#2=4 (number of items on X)
#3=72 (spacing for X)
#4=72 (spacing for Y)

O102 repeat [#1] (number of rows Y repeats)
O103 repeat [#2] (number of columns X repeats)
O100 call
G0 X#3 Y0 (width of columns)
G92 X0Y0
O103 end repeat
G0 X[#3*-#2]
G92X0
G0 X0 Y#4 (length of rows)
G92 X0Y0
O102 endrepeat

G92.1

M2

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

More
7 years 8 months ago - 7 years 8 months ago #125959 by MaHa
Replied by MaHa on topic Array offset
This modification doesn't make unnecessary moves. Also no G92, Sub,and repeat. The problem in your routine is, the xy movement after o100, G83.
Because sometimes brackets get lost in the uploaded files, there is a screenshot, how it should look.


EDIT:
Toolpath changed to: ZigZag orthagonal along X
Last edit: 7 years 8 months ago by MaHa. Reason: Toolpath changed to: ZigZag orthagonal along X

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

Time to create page: 0.162 seconds
Powered by Kunena Forum