Page 2 of 2

Re: 4th axis motor trying to turn before brake is actually released

Posted: Fri Dec 08, 2023 2:28 pm
by Allin1Chris
dbensavage wrote: Fri Dec 08, 2023 12:23 pm I tried adding G4 P1.5 to the next line under the M95 /4 and get no pause.
Hello, Can you create a new fresh report and send it so we can see the modifications you made. Adding a G4 should cause a small pause.

Taking your earlier provided report, i modified both your M10 and M11 with a G4 of 1.5 seconds and are attached here. Place them into your C:\cncm directory and that should work. If not then please send a fresh report.

Re: 4th axis motor trying to turn before brake is actually released

Posted: Mon Dec 11, 2023 11:53 am
by dbensavage
I tried the macros this morning and still no pause. Attached is a new report.

To test this i have been going to MIDI and typing in: M10 then cycle start to apply the brake. Then Typing in M11 A180 then cycle start and I get an "instant" stall with no pause before the stall. I even entered P3.5 into the macro and no pause.

Re: 4th axis motor trying to turn before brake is actually released

Posted: Mon Dec 11, 2023 12:39 pm
by tblough
Your mfunc11.mac file turns off output #4, but your PLC defines out6 as clamp. Which output is the clamp solenoid connected to?

Re: 4th axis motor trying to turn before brake is actually released

Posted: Mon Dec 11, 2023 3:40 pm
by dbensavage
My machine is setup so M10 turns on the brake (closes output 6) and M11 Releases the Brake (Opens output 6).

Re: 4th axis motor trying to turn before brake is actually released

Posted: Mon Dec 11, 2023 4:10 pm
by cncsnw
M11 A180 then cycle start and I get an "instant" stall with no pause before the stall. I even entered P3.5 into the macro and no pause.
If you enter

Code: Select all

M11 A180
on one line, then the axis motion (A180) is performed before the M function (M11).

To do what you intend, you have to run the M function, then run the axis motion on a subsequent line:

Code: Select all

M11
A180

Re: 4th axis motor trying to turn before brake is actually released

Posted: Mon Dec 11, 2023 4:12 pm
by dbensavage
It sounds like the PLC program is wrong then. The "board" has output 6 labeled as the clamp so that's what its hooked up to. How do I go about changing the PLC program? and, why does the brake lock and release if the macro's both say output 4?? Now I'm really confused.

Re: 4th axis motor trying to turn before brake is actually released

Posted: Mon Dec 11, 2023 4:33 pm
by dbensavage
CNCSNW,
You were correct, after doing it on the second line the pause is there. THANK YOU!! I just ran a test program center drilling on 3 sides of a part and it worked great!

Re: 4th axis motor trying to turn before brake is actually released

Posted: Mon Dec 11, 2023 6:45 pm
by cncsnw
Your mfunc11.mac file turns off output #4, but your PLC defines out6 as clamp. Which output is the clamp solenoid connected to?
This is not correct. The M10/M11 macros and the PLC program use M function request #4 (SV_M94_M95_4) to control a "Clamp" output on OUT6.

M function request numbers do not have to match either the M function number or the affected output. They are just a bucket of available bits, that can be used for any purpose in any order.