understanding geo table

Moderators: TomKerekes, dynomotion

ajith
Posts: 65
Joined: Sat May 21, 2022 3:57 am
Location: TamilNadu

Re: understanding geo table

Post by ajith » Mon Jun 20, 2022 7:48 am

respected sir,
basically my intention is to store my dro's value in a file(like vars file with variable and corresponding value) by pressing a user button and automatically retrive the dro"s value into gcode variable like we are using vars file.

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: understanding geo table

Post by TomKerekes » Mon Jun 20, 2022 5:24 pm

Please explain exactly what you are trying to accomplish.

I already explained this in your other Thread.

You actually don't need any C Program to make use of the current position. You can do it using GCode. For example:

G92 X0 Y0 Z0

will set the G92 offset to where you currently are and set the GCode position to zero. Any movements will then be relative to that position.
Regards,

Tom Kerekes
Dynomotion, Inc.

ajith
Posts: 65
Joined: Sat May 21, 2022 3:57 am
Location: TamilNadu

Re: understanding geo table

Post by ajith » Sat Jul 09, 2022 12:16 pm

Respected sir,
reg pgm.PNG
reg pgm.PNG (7.17 KiB) Viewed 1399 times
In the above file the gcode line which is highlighted is used for repeatability of certain gcode block. my question is the gcode line M98 P100 L3
whether i can replace L3 with L#100 where #100 contains no of times the gcode block gets repeated. if do so whether i can save that #100 in vars file and access in this gcode line?

User avatar
TomKerekes
Posts: 2676
Joined: Mon Dec 04, 2017 1:49 am

Re: understanding geo table

Post by TomKerekes » Sat Jul 09, 2022 5:26 pm

In the above file the gcode line which is highlighted is used for repeatability of certain gcode block. my question is the gcode line M98 P100 L3
whether i can replace L3 with L#100 where #100 contains no of times the gcode block gets repeated.
Yes
if do so whether i can save that #100 in vars file and access in this gcode line?
I don't understand this question. If you change the emc.var file such that it saves and restores var 100, then var 100 will be read from the file on startup and written to the file on exit.
Regards,

Tom Kerekes
Dynomotion, Inc.

Post Reply