- Posts: 196
- Thank you received: 11
geting line number from extending gcode.
- thang
- Offline
- Elite Member
-
Less
More
7 years 2 months ago #143384
by thang
geting line number from extending gcode. was created by thang
Base on:
www.vdwalle.com/Norte/Structure.html#_in...r_by_remapping_codes
I tried create new gcode and it worked. there is only 1 problem that i cant find the line number of new gcode. lineno() function just return line number in python script file not gcode file. Is there any way to get line number of my new gcode command?
www.vdwalle.com/Norte/Structure.html#_in...r_by_remapping_codes
I tried create new gcode and it worked. there is only 1 problem that i cant find the line number of new gcode. lineno() function just return line number in python script file not gcode file. Is there any way to get line number of my new gcode command?
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
7 years 2 months ago #143395
by cmorley
Replied by cmorley on topic geting line number from extending gcode.
You might need to give us a little more to go on.
What are you trying to do?
Chris
What are you trying to do?
Chris
Please Log in or Create an account to join the conversation.
- thang
- Offline
- Elite Member
-
Less
More
- Posts: 196
- Thank you received: 11
7 years 2 months ago #143398
by thang
Replied by thang on topic geting line number from extending gcode.
i create a gcode command name "g0.1". This command use G1 command to move machine in a paterm(like square, triangle). In command "self.excuse(G1 x y z,linenumber)" there is an argument that allow me set line number,i want to use it to highlight command "g0.1" when program reach this command.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
7 years 2 months ago - 7 years 2 months ago #143400
by cmorley
Replied by cmorley on topic geting line number from extending gcode.
So you created a remap program to feed linuxcnc a gcode program but you need to know what line on the gcode program it is running?
That's my guess anyways.
Remap is one of the most cutting-edge things an integrator can use.
We would need much more detail to help, like to see the remap code.
Chris M
That's my guess anyways.
Remap is one of the most cutting-edge things an integrator can use.
We would need much more detail to help, like to see the remap code.
Chris M
Last edit: 7 years 2 months ago by cmorley.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
7 years 2 months ago #143401
by cmorley
Replied by cmorley on topic geting line number from extending gcode.
oh wait - do you mean when running linuxcnc normally, you want your new gcode to be highlighted?
Please Log in or Create an account to join the conversation.
- thang
- Offline
- Elite Member
-
Less
More
- Posts: 196
- Thank you received: 11
7 years 2 months ago - 7 years 2 months ago #143403
by thang
Replied by thang on topic geting line number from extending gcode.
yes, i want to this command is highlighted. Currently it highlight previous gcode command if i dont give line_number in command self.excuse(). So i need to find a function in module emccanon or interpreter or what ever that give me the line_number
Last edit: 7 years 2 months ago by thang.
Please Log in or Create an account to join the conversation.
Time to create page: 0.818 seconds