Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Fred_evans on September 18, 2012, 03:21:54 AM

Title: question on parameter syntax
Post by: Fred_evans on September 18, 2012, 03:21:54 AM
Hello chaps,

Getting warmer here in Africa- probably getting colder where you chaps are.

a question about parameters,

to set parameters ( according to the literature i am using ) the parameter is set up using a number

for example #1=24

or

#2=[#1+2]

I am reading a copy of Digital machinist and I see the parameters are being defined
slightly differently and more "programmer-friendly" ( to coin a phrase)
a typical sequence of definitions is as follows
#<tabcentreangle>=0
#<currentX>         =#<_outsideradius>
#<currenty>          =0

First question. the ability to substitute a word for a number definitely makes
programming easier. In Mach 3 am I allowed to say #<outsidediameter>=45 .
and will the program read it correctly. The plan later on would be to say
#<outsidediameter>=[#<outsidediameter>-2]

second question
In the code from america use is made of the "<" and ">". are these symbols
understood by Mach3 or are they seen as an alternative to using "[" or "]"

Your input is sincerely appreciated

fred evans











Title: Re: question on parameter syntax
Post by: BR549 on September 18, 2012, 11:19:10 AM
Sorry Fred but no words allowed in mach3. It is all detailed in the manual.

(;-) TP
Title: Re: question on parameter syntax
Post by: Fred_evans on September 19, 2012, 03:22:13 AM
thanks TP-
just checking

regards fred