M10 & M11 in latest cnc11

All things related to Centroid Oak, Allin1DC, MPU11 and Legacy products

Moderator: cnckeith

Post Reply
bakeng
Posts: 66
Joined: Wed Nov 16, 2011 5:50 pm
Allin1DC CNC Controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: Yes

M10 & M11 in latest cnc11

Post by bakeng »

In the latest CNC11 software an M11 code is automatically generated when the software is stopped or paused.Cant have this. M10 and M11 are the lathes spindle close and open respectfully. When the program stops it sends an M11 opening the chuck and the work piece falls out. How do I stop this.
cncsnw
Posts: 3898
Joined: Wed Mar 24, 2010 5:48 pm

Re: M10 & M11 in latest cnc11

Post by cncsnw »

CNC11 does not automatically execute an M11 code at program stop or pause, or any other time.

However, typical PLC programs do cancel the M10 request (which is typically the action of M11) when the program cycle stops running.

That is due to a block of PLC logic near the end of MainStage, something like this:

Code: Select all

;--M-Codes
; Reset these M-codes if not in CNC Program Running mode
IF !SV_PROGRAM_RUNNING
  THEN RST M3,
       RST M4,
       RST M8,
       RST M7,
       RST M10
So if you delete the "RST M10" action (remembering also to remove the comma after "RST M7") and recompile, then it should leave M10 turned on even after the program has stopped running.
bakeng
Posts: 66
Joined: Wed Nov 16, 2011 5:50 pm
Allin1DC CNC Controller: No
CNC Control System Serial Number: none
DC3IOB: No
CNC11: Yes
CPU10 or CPU7: Yes

Re: M10 & M11 in latest cnc11

Post by bakeng »

Found it. That did it.
I was looking for M11 in the program. Did not thing of looking for a RST M10.

Thanks.
Post Reply