Reset Feedrate and Spindle override with G/M code?

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
Toaster
Posts: 199
Joined: Mon Oct 29, 2018 5:25 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: No
CPU10 or CPU7: No

Reset Feedrate and Spindle override with G/M code?

Post by Toaster »

Hey all, as the title says I'm trying to reset my spindle/feedrate overrides using a snippet of code.

The reason is that I'd like my post processor to reset both of them to 100% when I start a new job. So far after looking through all of the docs I can't see a way that I can reset that variable. Variable #25015 and #25016 are for Feedrate & Spindle override but they are read only.

I tried to setup an IF statement that would read those values, and if either of them aren't equal to 100% a message would pop up along with a pause telling the operator to reset them.

For some reason I can't read those variables properly. As a test I tried a little piece of code that did this:

#100=0
M225 #100 "This is the feedrate override %f" #25015 but I got an error...

Is this not a readable value, or am I doing something wrong? Ultimately I'd like to run a line of code that does this:

IF #25015 != 100 THEN GOTO (like that pops up reminder to reset) ELSE GOTO (start of job)
Post Reply