E-Stop Line Number
- flipzip
- Offline
- New Member
-
Less
More
- Posts: 3
- Thank you received: 0
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.
- langdons
- Offline
- Platinum Member
-
Less
More
- Posts: 507
- Thank you received: 50
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.
- MaHa
- Offline
- Platinum Member
-
Less
More
- Posts: 427
- Thank you received: 182
10 Jun 2025 14:58 #330090
by MaHa
Replied by MaHa on topic E-Stop Line Number
Attachments:
Please Log in or Create an account to join the conversation.
- MaHa
- Offline
- Platinum Member
-
Less
More
- Posts: 427
- Thank you received: 182
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.
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
The following user(s) said Thank You: cakeslob
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7947
- Thank you received: 2159
08 Jul 2025 01:20 #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 or Create an account to join the conversation.
Time to create page: 0.079 seconds