Page 1 of 1

Spindle and program Inhibit

Posted: Thu May 20, 2021 4:17 pm
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.

Re: Spindle and program Inhibit

Posted: Thu May 20, 2021 10:52 pm
by tblough
I added my spindle lock switch to my spindle fault circuit.

Re: Spindle and program Inhibit

Posted: Fri May 21, 2021 2:48 pm
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.

Re: Spindle and program Inhibit

Posted: Fri May 21, 2021 3:41 pm
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.

Re: Spindle and program Inhibit

Posted: Fri May 21, 2021 6:34 pm
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.

Re: Spindle and program Inhibit

Posted: Fri May 21, 2021 7:14 pm
by Gary Campbell
Check out the M100/M101 commands. You can monitor inputs or outputs, active or inactive

Re: Spindle and program Inhibit

Posted: Sun May 23, 2021 3:53 am
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

Re: Spindle and program Inhibit

Posted: Wed May 26, 2021 11:53 am
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.

Re: Spindle and program Inhibit

Posted: Wed May 26, 2021 1:27 pm
by cnckeith

Re: Spindle and program Inhibit

Posted: Thu May 27, 2021 2:47 pm
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.