Hello Guest it is April 25, 2024, 05:20:29 AM

Author Topic: Inline variables and loops?  (Read 4628 times)

0 Members and 1 Guest are viewing this topic.

Inline variables and loops?
« on: May 31, 2006, 06:12:16 PM »
Hello-

I have been using a shopbot for a while now, and I am considering building a router that would be controlled via Mach 3.  The shopbot code is a similar syntax to g-code, but one thing it has is the ability to specify variables in the file instead of hard coding feedrates, etc. It also has the ability to use conditionals and loops, etc.

Is there something similar that can be done with Mach 3 and g-code?

thanks,
Howie

Offline Graham Waterworth

*
  • *
  •  2,673 2,673
  • Yorkshire Dales, England
    • View Profile
Re: Inline variables and loops?
« Reply #1 on: June 01, 2006, 03:30:29 AM »
Yes, you can do things like this:-

#100=5
G00 X[#100*10] Y[#100*10]
M30

Graham.
« Last Edit: June 01, 2006, 03:45:31 AM by Graham Waterworth »
Without engineers the world stops

Offline Tarak

*
  •  229 229
    • View Profile
Re: Inline variables and loops?
« Reply #2 on: June 24, 2006, 08:49:10 PM »
Can you do any commands like, IF [#101EQ0] GOTO10?
Is it possible to get a list of all the possible variable commands.