Macro to except a String Variable

Here is where you can request new features or special features.

Re: Macro to except a String Variable

Postby dezsoe » Sat Feb 03, 2018 9:10 pm

Well, they are very awful... :) But! They are not string types. They are floating point variables as the #nnn-s, just have some awful name instead of the #nnn form.
dezsoe
 
Posts: 496
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Macro to except a String Variable

Postby Vmax549 » Sun Feb 04, 2018 12:33 am

The command is calling a NAME(string) then it refers to a number internally

<holediam> = 25.33

Also I believe they used teh same approach with M98

M98<BoltCircle> L1 Calls a remote sub named BoltCircle

A lot of controls use strings for various features.

We just need to be able to set a variable as a string type from a macro call. Just take teh Allvars.Qvar and change its type from number to string and all would be well (;-)

Then from a macro I could call it as

M600{Q"CutaRug.txt" A1.111 B2.222 C3.333}

string Fname = Allvar.Qvar;

// Fname = "CutaRug.txt";

(;-) TP
Vmax549
 
Posts: 1103
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Re: Macro to except a String Variable

Postby dezsoe » Sun Feb 04, 2018 10:10 am

The command is calling a NAME(string) then it refers to a number internally

<holediam> = 25.33

Also I believe they used teh same approach with M98

M98<BoltCircle> L1 Calls a remote sub named BoltCircle

A lot of controls use strings for various features.

OK, these are only references to numeric variables (or constants), not string type variables. The string type is not g-code.

I think I give it up now, because I see that I cannot convince you of this. :)
dezsoe
 
Posts: 496
Joined: Sun Mar 12, 2017 4:41 pm
Location: Csörög, Hungary

Re: Macro to except a String Variable

Postby Vmax549 » Sun Feb 04, 2018 2:12 pm

HIYA Dezsoe, Next year marks 50 years I have been around this industry (;-) I have worked with pure genius all the way down to plumb knuckleheads.

Since I retired I only work with others to promote CNC.

(;-) TP
Vmax549
 
Posts: 1103
Joined: Sun Nov 22, 2015 3:25 am
Location: USA

Previous

Return to Feature Request

Who is online

Users browsing this forum: No registered users and 3 guests