Spindle and program Inhibit

All things related to the Centroid Acorn CNC Controller

Moderator: cnckeith

Post Reply
TCandee
Posts: 110
Joined: Sun Jun 17, 2018 2:42 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5CF-0403180778
DC3IOB: No
CNC11: No
CPU10 or CPU7: Yes

Spindle and program Inhibit

Post by TCandee »

I would like to be able to inhibit the spindle and prevent the active program from advancing[/u] when one of the inputs is activated. Is there any way to do this? I am designing a spindle lock and I just want to do this when it is activated. I don't have access to my report at the moment but this is just in the design phase anyway.

I know that there are input values in the wizard for spindle locked etc. I just don't know what it does or if it can be manipulated.
tblough
Posts: 3072
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Spindle and program Inhibit

Post by tblough »

I added my spindle lock switch to my spindle fault circuit.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
TCandee
Posts: 110
Joined: Sun Jun 17, 2018 2:42 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5CF-0403180778
DC3IOB: No
CNC11: No
CPU10 or CPU7: Yes

Re: Spindle and program Inhibit

Post by TCandee »

Thanks Tom. let me know if I am wrong but I think you are saying that you ran your spindle lock switch in the "drive Ok" circuit for the spindle? I currently have that circuit running to 4 axis and the spindle in case any of them have a fault. The problem is that when this circuit is broken it forces a cycle of the emergency stop in order to continue once the fault is detected. This would serve as a great safety feature but I was hoping for something that would just warn me that the spindle is locked and prohibit the program from continuing until it is resolved. Maybe this isn't possible. There are "tool unclamped" and "drawbar released" that are similar but only serve as easily missed messages on the screen and no prevention of program continuation.
tblough
Posts: 3072
Joined: Tue Mar 22, 2016 10:03 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: 100505
100327
102696
103432
7804732B977B-0624192192
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Boston, MA
Contact:

Re: Spindle and program Inhibit

Post by tblough »

Yup. I have to clear mine with a e-stop cycle. I think if my spindle lock engaged while a program was running, I'd want to shut everything down so I could clean my shorts out before resuming.

Luckily, on my Hardinge, the spindle lock is a shot-pin that I manually engage when mounting chucks, and then pull back when done. Having to cycle the e-stop before starting a program is not a problem.
Cheers,

Tom
Confidence is the feeling you have before you fully understand the situation.
I have CDO. It's like OCD, but the letters are where they should be.
TCandee
Posts: 110
Joined: Sun Jun 17, 2018 2:42 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5CF-0403180778
DC3IOB: No
CNC11: No
CPU10 or CPU7: Yes

Re: Spindle and program Inhibit

Post by TCandee »

Sounds good. That will be a really easy wire up for mine. I guess in the event I forget to unlock it the software has a resume function. Thanks for your insight.
Gary Campbell
Posts: 2164
Joined: Sat Nov 18, 2017 2:32 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: Acorn 238
DC3IOB: No
CNC12: Yes
CNC11: No
CPU10 or CPU7: No
Location: Marquette, MI
Contact:

Re: Spindle and program Inhibit

Post by Gary Campbell »

Check out the M100/M101 commands. You can monitor inputs or outputs, active or inactive
GCnC Control
CNC Control & Retrofits
https://www.youtube.com/user/Islaww1/videos
TCandee
Posts: 110
Joined: Sun Jun 17, 2018 2:42 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5CF-0403180778
DC3IOB: No
CNC11: No
CPU10 or CPU7: Yes

Re: Spindle and program Inhibit

Post by TCandee »

Since there is no "stock" m6func.mac can I create one that just has the m100/7 to wait for the correct state of input 7? the switch on the lock would be NC so that when the lock is disengaged the circuit is open. Not sure I need all of this. I took most of this from the operator's manual but maybe I would be repeating lines 1,2 and 4.

M25 ; always does M25 first
M95/1/2/3/5 ; turn off spindle & coolant
M100/7 ; wait for spindle lock to be disengaged (input 7 open)
M100/75 ; wait for CYCLE START button
TCandee
Posts: 110
Joined: Sun Jun 17, 2018 2:42 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5CF-0403180778
DC3IOB: No
CNC11: No
CPU10 or CPU7: Yes

Re: Spindle and program Inhibit

Post by TCandee »

Can I add a macro for tool changes? If so, does it replace any built in tool change logic or add to it? Or, do I need to edit the PLC to add this? Just need to know where to start.
cnckeith
Posts: 7164
Joined: Wed Mar 03, 2010 4:23 pm
Acorn CNC Controller: Yes
Allin1DC CNC Controller: Yes
Oak CNC controller: Yes
CNC Control System Serial Number: none
DC3IOB: Yes
CNC11: Yes
CPU10 or CPU7: Yes
Contact:

Re: Spindle and program Inhibit

Post by cnckeith »

Need support? READ THIS POST first. http://centroidcncforum.com/viewtopic.php?f=60&t=1043
All Acorn Documentation is located here: viewtopic.php?f=60&t=3397
Answers to common questions: viewforum.php?f=63
and here viewforum.php?f=61
Gear we use but don't sell. https://www.centroidcnc.com/centroid_di ... _gear.html
TCandee
Posts: 110
Joined: Sun Jun 17, 2018 2:42 am
Acorn CNC Controller: Yes
Allin1DC CNC Controller: No
Oak CNC controller: No
CNC Control System Serial Number: C8FD19F6D5CF-0403180778
DC3IOB: No
CNC11: No
CPU10 or CPU7: Yes

Re: Spindle and program Inhibit

Post by TCandee »

I got this working for M3 and M4 in MIDI and programs with the following: (M3 shown)

IF #50006 THEN GOTO 200
M225 #100 "SPINDLE IS LOCKED. UNLOCK AND PRESS CYCLE START TO CONTINUE"
#100 = 0
N100
IF !#50006 THEN M225 #100 "SPINDLE IS LOCKED. UNLOCK AND PRESS CYCLE START TO CONTINUE"
IF !#50006 THEN GOTO 100
N200
IF #4202 || #4201 THEN GOTO 400
M95 /2
M94 /1
IF #61058 THEN GOTO 400 ;skip the check if AutoSpindle is on
M225 #100 "Please Select Auto Spindle To Continue!"
G4 P.1
N300
IF !#61058 THEN M225 #100 "Please Select Auto Spindle To Continue!" ;61058 = JPO2/SpindleAutoManualLED
G4 P.5
IF !#61058 THEN GOTO 300
N400

But this did not inhibit the VCP or the Wireless MPG green start spindle button. I have read through the VCP manual but cannot find where to edit the actions of these buttons. Hopefully, I can just add the above code or something similar.
Post Reply