Hello Guest it is March 28, 2024, 01:59:41 PM

Author Topic: parameter syntax  (Read 2343 times)

0 Members and 1 Guest are viewing this topic.

parameter syntax
« on: January 25, 2015, 12:42:56 AM »
Hello chaps

I am doing a bit of coding with parameters and having trouble getting mach3 to read them

I think it is a syntax error.
firstly -do the normal operators ("+","-","/","*') work on parms??
secondly what about boolean ?
What about "<" and ">" (smaller than and bigger than)
thirdly where do the brackets go?

this is one of the lines i am not getting
Plain english says  #5  is equal to #3 minus 2 mm

coded as follows   #5=#3-2  doesnt work ??

please help the manual is very brief on this subject is there ant other literature?

regards

fred



think of the trees-- use both sides of the computer paper

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: parameter syntax
« Reply #1 on: January 25, 2015, 01:18:54 AM »
#5 = [#2-2]
Re: parameter syntax
« Reply #2 on: January 25, 2015, 07:03:22 AM »
sorry i didnt make it clear
values of parms are as follows
# 3=9
To get value of #5 I am looking for 9-2
#5 = #3-2 ( answer should be
value of #5=7)
think of the trees-- use both sides of the computer paper
Re: parameter syntax
« Reply #3 on: January 25, 2015, 12:53:55 PM »
Ha-- square brackets . Is that the secret?

Fred
think of the trees-- use both sides of the computer paper

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: parameter syntax
« Reply #4 on: January 25, 2015, 12:58:09 PM »
#3 = 9
#5 =[#3 -2]