My turn with an interesting one. Spindle only works for one file (RESOLVED)

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
Ken Rychlik
Posts: 566
Joined: Wed Jan 23, 2019 4:19 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 80F5B5B92C3A-0213236854
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

My turn with an interesting one. Spindle only works for one file (RESOLVED)

Post by Ken Rychlik »

Acorn running on 5.1 because I hate the new "feature" of having to hold the control key to jog with arrows.

The issue: I can run one file, be it the profile file below or a flycut file to surface the spoilboard. After that the spindle buttons do not do anything and M3 commands also will not work through the mdi. Reboot acorn and again it will cut one file but nothing after that. Rebooting just the software without a power cycle and it is still unresponsive. The vfd is still ready with no errors present. The on screen button spin fwd button, I have to change from white to red when commanding the spindle on. Those work fine until I run a file and then they do not respond at all. Stress test passes with zero errors.

I have spare computers and another acorn system I can try, but can someone important load my report and see if they can reproduce?

For some reason notepad is not on this pc and I am thinking of reloading windows 10. The edit after loading a file does not work without it.

Thanks.
Ken
Attachments
report_880CE03464B5-0325259298_2025-07-30_10-21-20.zip
(1.05 MiB) Downloaded 5 times
Profile 1.cnc
(18.06 KiB) Downloaded 8 times
flycut 4x8.cnc
(2.25 KiB) Downloaded 7 times
Last edited by Ken Rychlik on Wed Jul 30, 2025 4:24 pm, edited 1 time in total.
Ken


grossmsj
Posts: 190
Joined: Fri Jan 13, 2023 8:50 am
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Hopewell NJ
Contact:

Re: My turn with an interesting one. Spindle only works for one file

Post by grossmsj »

M11?
I ran into this before, the Fusion PP was putting an M11 command in my G-Code. Took that out, the problem went away
viewtopic.php?t=10916
cncsnw wrote: Tue Dec 10, 2024 12:38 pm I am betting your problem is triggered by the M11, because your Acorn PLC program seems to include lathe code that assumes M11/M10 are used to open and close an auto chuck.
-Scott


centroid467
Posts: 838
Joined: Thu Apr 14, 2022 2:46 pm
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: No
CNC11: No
CPU10 or CPU7: No

Re: My turn with an interesting one. Spindle only works for one file

Post by centroid467 »

Can confirm that M11 is present in both of those files attached.


CentroidFrog
Tech Support
Posts: 145
Joined: Wed Jan 29, 2025 9:39 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: My turn with an interesting one. Spindle only works for one file

Post by CentroidFrog »

Doing some testing of my own I find that I get the same issue you're describing.
Using a fresh install of CNC12 v5.10 and having M10 and M11 in the g code will cause the spindle to stop working after running the job.
Once the M10 and M11 are removed the spindle works as expected after the job.
Removing lines 17 and 18 from Mfunc10 and 11 also seems to solve the issue.
On CNC12 v5.30 I don't see the same issue occur when M10 and M11 are included in the job.

I would also like to throw out there that if the CTRL key is what's keeping you from updating, that problem can be solved with 4 exclamation points.
Below is a snippet from the 5.30 acorn router plc where the right arrow key is assigned to it's function:

Code: Select all

;KbJogAx1Plus_M: "ctrl" + "right arrow" or "numpad 6"
IF (Kb_Right_SV || Kb_Num_6_SV) && !KbShiftPressed_M && KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Plus_M))
As it is, kbCtrlPressed_M is required for the function to work, meaning of course that CTRL is required to be held down.
Adding an exclamation point in front of it, like is done with kbAlt and kbShift would make it required to not be held down.
Want to post your own question?
Check this out first: http://centroidcncforum.com/viewtopic.php?f=60&t=1043
Acorn CNC tech tips: viewforum.php?f=63


Ken Rychlik
Posts: 566
Joined: Wed Jan 23, 2019 4:19 pm
Acorn CNC Controller: Yes
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: 80F5B5B92C3A-0213236854
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: My turn with an interesting one. Spindle only works for one file

Post by Ken Rychlik »

Thanks. This is a post processor that was used on anther Acorn machine without issues, and this is mostly a copy and paste from that system. I dind't modify the M10 or 11 but something changed on this machine's setup. I sometimes like to turn off the dust during a tool change without cutting off the Vac hold so I used the M10 and M11 for that. I didn't look that close at the M10 and 11 but I will search for those lines. The M9 cuts both, so that doesn't always do what I want for cutting off the DC only with a tool change.

Can you tell me exactly where that section of code is and what to modify in how many places? I have a small axyz with a test board I got from Keith. I'll play with 5.3 on that one. I didn't want to get into the plc and remembering how to compile. Especially after selling a machine, I don't want the customer to have to deal with that. I just want the system to run and be user friendly.

Thank You.
Ken


CentroidFrog
Tech Support
Posts: 145
Joined: Wed Jan 29, 2025 9:39 am
Acorn CNC Controller: No
Plasma CNC Controller: No
AcornSix CNC Controller: No
Allin1DC CNC Controller: No
Hickory CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No

Re: My turn with an interesting one. Spindle only works for one file (RESOLVED)

Post by CentroidFrog »

Looking at "acorn_router_plc.src" from a CNC12 v5.30 acorn install.
Keyboard keys are assigned system variable labels starting with "Kb_" followed by the key and "_SV".
So if we want to find the system variable associated with the right arrow we'll want to find "Kb_Right_SV".
You can CTRL+F and search for "Kb_Right_SV" to see where it's used.
Below is the entire block of code associated with the arrow key jogging (around lines 3684-3698):

Code: Select all

;KbJogAx1Plus_M: "ctrl" + "right arrow" or "numpad 6"
IF (Kb_Right_SV || Kb_Num_6_SV) && !KbShiftPressed_M && KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Plus_M)

;KbJogAx1Minus_M: "ctrl" + "left arrow" or "numpad 4"
IF (Kb_Left_SV || Kb_Num_4_SV) && !KbShiftPressed_M && KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Minus_M)

;KbJogAx2Plus_M: "ctrl" + "up arrow" or "numpad 8"
IF (Kb_Up_SV || Kb_Num_8_SV) && !KbShiftPressed_M && KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx2Plus_M)

;KbJogAx1Minus_M: "ctrl" + "down arrow" or "numpad 2"
IF (Kb_Down_SV || Kb_Num_2_SV) && !KbShiftPressed_M && KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx2Minus_M)
What's important for your application is that KbCtrlPressed_M is required for the function to work.
By placing an ! in front of KbCtrlPressed_M it will allow only the arrow key to be pressed.
So the code below will allow you to jog using only the arrow keys by adding 4 exclamation points:

Code: Select all

;KbJogAx1Plus_M: "ctrl" + "right arrow" or "numpad 6"
IF (Kb_Right_SV || Kb_Num_6_SV) && !KbShiftPressed_M && !KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Plus_M)

;KbJogAx1Minus_M: "ctrl" + "left arrow" or "numpad 4"
IF (Kb_Left_SV || Kb_Num_4_SV) && !KbShiftPressed_M && !KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx1Minus_M)

;KbJogAx2Plus_M: "ctrl" + "up arrow" or "numpad 8"
IF (Kb_Up_SV || Kb_Num_8_SV) && !KbShiftPressed_M && !KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx2Plus_M)

;KbJogAx1Minus_M: "ctrl" + "down arrow" or "numpad 2"
IF (Kb_Down_SV || Kb_Num_2_SV) && !KbShiftPressed_M && !KbCtrlPressed_M && !KbAltPressed_M &&
  AllowKbInput_M && KbJpActive_M THEN (KbJogAx2Minus_M)
After these changes the .src file will need to be compiled.
This can be done with Notepad++, but the easiest sure fire way of doing this is with the Windows command prompt.
Execute these 2 commands to compile your PLC:

Code: Select all

cd /cncm
mpucomp.exe acorn_router_plc.src mpu.plc
Now power cycle the Acorn and restart CNC12 and you're good to go.
Want to post your own question?
Check this out first: http://centroidcncforum.com/viewtopic.php?f=60&t=1043
Acorn CNC tech tips: viewforum.php?f=63


Post Reply