VMC related HAL questions.

More
11 years 5 months ago #58835 by andypugh
Replied by andypugh on topic VMC related HAL questions.

thewho wrote: But why isn't things like closed loop spindle control built in?


It isn't generally necessary, for one thing. Exact spindle speed isn't that important. Before VFDs machines would only run at 6 or 8 fixed speeds, and nobody worried about it too much.

Even now, you don't particularly care about exact speed, just too fast and too slow.

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #58856 by BigJohnT
Replied by BigJohnT on topic VMC related HAL questions.

thewho wrote: Is it a time/prio thing?

Same with Pncconf, it's a great tool but I feel it could do so much more.


If only you knew how complex Pncconf is and how many thousands of hours the author spent writing it.

Spindle feedback is in the manual.

JT

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #58862 by andypugh
Replied by andypugh on topic VMC related HAL questions.

BigJohnT wrote: Spindle feedback is in the manual.


Some of it is in that zip file too :-)

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #58879 by andypugh
Replied by andypugh on topic VMC related HAL questions.
OK, I now have the whole thing working. In the end I settled on a G-code subroutine for the tool-change sequence after finding a serious design flaw in my sequencer component.

This is a video of the tool change in action:


And here is the G-code that does the change.
Code:
o<toolchange> sub M19 R0 ;align the spindle ; only unload the tool if there is a tool in the spindle ; This assumes that the carousel is already aligned correctly. ; It is important to unload the tool before shutting down the machine. O100 IF [#<tool_in_spindle> GT 0] G53 G0 Z -100 M64 P2 ; move arm in M66 P2 L3 Q5 ; wait for arm-in = true O104 if [#5399 LT 0] (abort, failed to move arm in) O104 endif M64 P3 ; release tool M66 P3 L3 Q2 ; wait for tool-released = true O105 if [#5399 LT 0] (abort, failed to release tool) O105 endif O100 ENDIF G53 G0 Z0 O200 IF [#<selected_tool> GT 0] M65 P1 ; unlock carousel M66 P1 L4 Q1 ; wait for locked=false O106 if [#5399 LT 0] (abort, failed to unlock carousel) O106 endif M68 E0 Q#<selected_pocket> ;set the carousel to move to the right pocket M64 P0 ; start carousel G4 P2 M66 P0 L3 Q60 ; wait for carousel finished O107 if [#5399 LT 0] (abort, failed to align carousel) O107 endif M65 P0; stop carousel M64 P1 ; lock carousel M66 P1 L3 Q1 ; wait for locked=true O108 if [#5399 LT 0] (abort, failed to lock carousel) O108 endif M64 P2 ; move arm in (might already be in) M66 P2 L3 Q5 ; wait for arm-in = true O109 if [#5399 LT 0] (abort, failed to move arm in) O109 endif G53 G0 Z-100 ; pick up the tool O200 ENDIF M65 P3 ; clamp tool M66 P3 L4 Q2 ; wait for tool-released = false O110 if [#5399 LT 0] (abort, failed to clamp tool) O110 endif M65 P2 ; move arm back out M66 P4 L3 Q5 ; wait for arm-out = true O111 if [#5399 LT 0] (abort, failed to move arm in) O111 endif o<toolchange> endsub [1] M2
The following user(s) said Thank You: akb1212, sspeed33317, SRDC

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #58886 by andypugh
Replied by andypugh on topic VMC related HAL questions.
I updated the zip file in post 58732 to include the latest changes.

Please Log in or Create an account to join the conversation.

More
11 years 5 months ago #58901 by thewho
Replied by thewho on topic VMC related HAL questions.
Had a look in your "spindle.hal" and I somewhat understand what's happening. Not enough to adapt it to my machine though :dry:
I'm at the stage that I might get a physical button to do something :lol:

Please Log in or Create an account to join the conversation.

Time to create page: 0.107 seconds
Powered by Kunena Forum