Page 1 of 1

Getting Feedrates to insert WITHOUT the prefixes

PostPosted: Thu Aug 17, 2017 7:55 pm
by cnczane
I have had a long-standing annoyance in my post processor in which I tried to assign the current plunge and horizontal feedrates to variables in LinuxCNC.

The clue was here (Old Posts, Good):

My .con/post file had no line for the [FP] and [FC] internal MC variables, so they were getting a default treatment.

FORMAT = [FC|@||1.2]
FORMAT = [FP|@||1.2]
similar to what I found in a Shopbot config file, means that a reference to [FP] in the con file returns JUST the number, without the "FP" prefix.