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):
viewtopic.php?f=8&t=1392&sid=bc30bc87d88f2405c4b7e69338b3d82d#p2948

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

Adding:
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.