Input variable and current possition?

More
27 Feb 2010 13:23 #2086 by eslavko
Hello...

I'm new on EMC2 and have problem...

How to enter some variable in runtime?
eg to gcode stops and ask for some veriable and after that to use it. For example to program stops and ask for radius of circle to make hole for example.
I come from TurboCnc and there was command
Ask #variable ;text prompt

is there something similar?

And other question is how to put current X (or Y..) position into variable?
somethimg like
#1000=X ???

Slavko.

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

More
25 May 2010 13:51 #2999 by piasdom
don't know if you're still looking for an answer but;

to do circle/arcs, you need to use g2 & g3 (cw & ccw)
you can read about them here www.linuxcnc.org/docview/html//gcode_overview.html

as far as x y
g1 f4 x1.5 y2

will make the x move to 1.5 and y to 2

hope this helps.

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

More
25 May 2010 15:00 #3002 by eslavko
This seems that is entirely the wrong post.
The question I asked are still in question.

Just how to store position in variable is partialy solved. G30.1 is the answer.
I stil want to put current location (with all offsets as is read from DRO) into variable.

and stil want to enter some variable in runtime.

For example just imagine the drilling went holes array.
I need to enter distance betwen holes and amount of holes in X and Y.
For now I need to open file, edit variables, save file and reopen in axis.
Can be done just is a lot of cliccking instead just entering 3 numbers in prompt.

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

More
26 May 2010 09:43 #3014 by piasdom
the only way axis can get info is to edit the file and reload file in axis or to import a whole file.(which
needs to be edit when changes occur.(IMO)
if you need more indept info, you can go to irc here;

irc.freenode.net

and go to #emc. that's where the developers chat and help others.

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

Time to create page: 0.092 seconds
Powered by Kunena Forum