Hello Guest it is April 19, 2024, 04:17:00 PM

Author Topic: Spindle Accel/Decel wait times scale??  (Read 2560 times)

0 Members and 1 Guest are viewing this topic.

Spindle Accel/Decel wait times scale??
« on: November 18, 2018, 01:47:17 PM »
So I think I stumbled across something that is a touch confusing  the spindle settings for wait times for speed scale from 0 to 100% of the inputted time based on the commanded speed?  I have a VFD that has an acceleration time set that it will meet, wither its 2000 RPM or 24000 RPM it will get there in X seconds (or back to zero).. How can I tell Mach 4 not to scale the time.. when I say wait 15 seconds I don't mean 15 seconds at 24000 rpm but only 1.25 seconds at 2000 RPM, I really mean 15 seconds in all instiances where an M3 or M5 are happening..

Thanks
Re: Spindle Accel/Decel wait times scale??
« Reply #1 on: November 18, 2018, 02:18:49 PM »
Hi,
could you not just tell Mach to accelerate at a very high level, effectively infinite, your spindle would accelerate at the rate determined
by those settings you have programmed in to the VFD?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Spindle Accel/Decel wait times scale??
« Reply #2 on: November 18, 2018, 02:56:51 PM »
I am trying to avoid having to hand code dwells (G04) into all of my projects every time I command an M03 or M05..  (considering I am working on an ATC, having the spindle really not moving when I go to put a tool back is kind of important ;-)..

The problem is with the assumption in Mach4 that if I tell Mach to wait 15 seconds to get to 24k on the spindle page, then I want it to wait 1.5 seconds if I command 2.4k RPM.. Its a faulty assumption I just want a blanket 15 second wait..
Re: Spindle Accel/Decel wait times scale??
« Reply #3 on: November 18, 2018, 03:06:32 PM »
As far as waiting for the spindle to stop for your ATC... does your VFD have an output for Spindle at Zero Speed?  If so, you can add an mc call (I don't remember exactly what it is, mc.mcSignalWait or similar) that waits for a signal before moving on in your m6.
Chad Byrd
Re: Spindle Accel/Decel wait times scale??
« Reply #4 on: November 18, 2018, 03:14:09 PM »
Spindle has 1 "intelligent" output and one alarm output.  I have the spindle breaking at 15 seconds and alarming so if it can't break in time I'll know..

I was looking at configuring the "intelligent" output as Spindle at Speed, as that seemed more useful given the resistive break in the VFD but I also get a weird bounce of that signal due to the Spindle forward happening for a tiny fraction of a moment before the PWM commanding a speed.. The result is that for a split second the VFD is at its commanded speed of Zero, then its not...   

All the little things..  If the time were a fixed value (always wait 15 seconds or something) then all of this would be mute and I would just live with the loss of 10 or 20 seconds per tool change.. Its a big table so its going to take time to get to the wine rack anyways..
Re: Spindle Accel/Decel wait times scale??
« Reply #5 on: November 18, 2018, 03:24:25 PM »
Hi,
do you have a spindle index signal or could you fit one?

The reason I ask is that there is a convenient feature that you could use....'Wait for Spindle Speed to Stabliize' found in
the Configure/Control/Spindle tab. If it is checked the Gcode will pause until Mach detects that the spindle speed is up to your nominated
percentage of its final speed. It has the advantage of 'minimum wait'. That is if you specify a delay of 15 secs to 24000 rpm which may be
adequate for a moderate diameter tool of moderate inertia but the delay is more than required if you were using a very low interia
small diameter endmill say. This feature waits only until such times as the spindle is up to speed and then continues processing GCode.

As Chas has pointed out there is are two signals defined in Mach4; ISIG_SPINDLE_AT_SPEED and ISIG_SPINDLE_AT_ZERO.
Note the signals are defined but they have no standarised action, you have to code how you wish your machine to operate in
there presence. Also the signals are supplied by your VFD. They are very common, maybe even standard, on all VFD's I have come across.

This last fact separates the two approaches:
1)Wait for Spindle to Stabilize.....Mach measures the actual speed from an index signal
2)ISIS_SPINDLE_AT_SPEED etc is supplied by the VFD.

Option 2) requires you to code the response of your machine whereas 1) does not....Mach's response is standardized.

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Spindle Accel/Decel wait times scale??
« Reply #6 on: November 18, 2018, 04:03:41 PM »
Sadly there is no good place to read RPM off of my spindle.. (Its a CNCDepot S30C).. And my VFD doesn't provide RPM either.

I am not so worries about tool mass given the weight of an ISO30 ER32 collet Not much I put in there is going to make a very big difference on total inertia of the tool/tool holder..

As I mentioned above Spindle at speed is flacky at best.. I guess I'll use my output pin as Zero Hz from the VFD.. .still not sure what do do about the wait because a scaled wait based on some max wait is not accurate or safe either.

Re: Spindle Accel/Decel wait times scale??
« Reply #7 on: November 18, 2018, 04:15:33 PM »
Hi,
looking at the S30 website suggests there is s version with a 200 line encoder. Does your spindle have it fitted or can you do so?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'
Re: Spindle Accel/Decel wait times scale??
« Reply #8 on: November 18, 2018, 07:23:56 PM »
I did not because I don't do anything that needs encoding and I got the "starter kit" which didn't have that option (so I didn't know to ask for it).. Either which way, I am just updating my Fusion Post Processor to add a Dwell for 15 seconds after an M3 or M5 and I am going to add a wait in the M6 macro when I write it to look for the 0hz command.

Still think its odd that there isn't a mach level setting for spindle dwell.. Seems like the use case for the spindle acceleration and deceleration settings are a bit too specific and pre-optimized.
Re: Spindle Accel/Decel wait times scale??
« Reply #9 on: November 18, 2018, 07:40:27 PM »
Hi,
so whats wrong with the Accel Time and Deccel Time that Mach provides for?

Craig
'I enjoy sex at 73.....I live at 71 so its not too far to walk.'