E-Stop Line Number

More
10 Jun 2025 05:37 #330064 by flipzip
E-Stop Line Number was created by flipzip
Is there a way to indicated what G_Code line you were on after an E-Stop press in QTDragon? Just goes back to 1. 

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

More
10 Jun 2025 13:59 #330082 by langdons
Replied by langdons on topic E-Stop Line Number
AXIS does the same thing; it's annoying.

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

More
10 Jun 2025 14:58 #330090 by MaHa
Replied by MaHa on topic E-Stop Line Number
I solved with a component, it freezes current line number. Only way to reset by load a new file or nc start.

 
Attachments:

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

More
12 Jun 2025 17:14 #330217 by MaHa
Replied by MaHa on topic E-Stop Line Number
I had to set my machine to a certain state, when a new gcode file is loaded, also reset saved last motion.program.line. I did  not find any example, suiting the requirements, so did it my own way. This pythoncode is creating a number from the current loaded filename. Unique enough for me.

e.g. 'rectangle_inside_helix_stepdown_no_stepover.ngc' returns  3724037, or 'HalfBallConc.ngc' returns 142356. A 'pin in s32' can handle those numbers

easy to make a comparaison oldfile/newfile and take action.

def newfile():
    y=openfile.split('/')
    z=(y[len(y)-1])
    w=0
    for x in range(0, len(z)):
        y = (ord(z[x]))
        w = w + (((x+1)**2) * y)
    return w
 

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

Time to create page: 0.079 seconds
Powered by Kunena Forum