Mach Discussion > General Mach Discussion

Spindle at speed signal

(1/3) > >>

ewlsey:
I am trying to find a way to have mach3 read that the spindle is at the commanded speed before making a cutting move.

Currently I am using the timed pause feature (wait 5 second so you are sure that the spindle is up to speed). What I want is for the machine to proceed with rapid moves while the spindle is accelerating, then wait for the "spindle at speed" signal from the VFD before begining any feed moves. I had this working in EMC2. The current method is very slow. I have to wait the same amount of time whether I choose 200RPM or 8000RPM.

This is a very common feature on VMCs. I have never seen a "real" control that did not have this feature.

I cannot find an example online.

-Wes

BR549:
Create a brain to monitor true spindle speed vs programmed speed. then trun on an led when it is within a span.Then monitor the led from a macropump.

Seems we did this a while back. HUM?????

(;-)TP

ewlsey:
I don't really need to monitor true spindle speed. Most VFDs can output a signal when they are at the commanded speed. I want to use that signal to tell mach to proceed. I coud probably rig that up in a script some way.

The real trick would be to get mach3 to execute G0 moves while the spindle is accelerating. Then wait to do G1, G2, G3, et al. until it sees the "at speed" signal.

BR549:
YES we did it using a VFD speed good signal. We did it ALL in the M3 macro.JUST make sure you put in an EXSCAPE route in the event the loop gets stuck (;-)

Suedo code:

Dospin(cw)                        Start Spindle

While Inoput1 >< 1 OR  GetUserLed() = 1      Look for Input siignal ,run loop until it is seen, use the LED as the exscape route out of the loop
Loop

end                                   End macro releasing the M3

You can do it with a tach signal as well

DoSpin(cw)                                                      StartSpindle

While  (GetOemDro() / GetOemdro()) < .95  OR GetUserLed() = 1       Divide dro /dro does it equal at least the % spindle speed to start
Loop
End                                                                 End Macro Release M3

AS FAR as the G0 /G1 thing that will not be possible that I am aware of.

Hope that helps,(;-) TP
 

Hood:
I had a macropump a while back that looked at True spindle and Requested spindle speeds over a 5 second or so period and if it was out by a certain % it would fault Mach. Problem I had was it worked fine as long as ModBUS was not enabled but just wouldnt work if it was, because I needed Modbus it was no use to me and Brian never fixed the problem as far as I know.
Not sure if I still have it but if you think it would be of use I can do some searching of the old hard drives I have here.
Hood

Navigation

[0] Message Index

[#] Next page

Go to full version