- Posts: 3
- Thank you received: 0
E-Stop Line Number
1 year 4 months ago #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 to join the conversation.
1 year 4 months ago #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.
Attachment not found
Please Log in to join the conversation.
1 year 4 months ago #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.
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.
Code:
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 to join the conversation.
1 year 3 months ago #331496
by cmorley
Replied by cmorley on topic E-Stop Line Number
Qtdragon on master will now log the last run line (when in auto mode) if estop,machine off, abort or end of program.
Please Log in to join the conversation.
Time to create page: 0.103 seconds
