VMC related HAL questions.

More
11 years 5 months ago #58378 by thewho
My previous topic in "Driver Boards" went a little off topic with a lot of HAL related questions.
So I thought it was time to start a new in the correct (hopefully) section of the forum.
I'm slowly getting closer to knowing how hal is done. Not good enough to write anything myself yet though :(

Quick info:
Machine: Modig MD5000 -85
Spindle: SK40 5krpm max, Lenze 4902 DC spindle drive (+/-10V control)
Control: Mesa 5i25+7i77

My most prominent problem at the moment is spindle speed compensation. Or lack of.. As seen in the picture below.
image missing http://i1186.photobucket.com/albums/z361/thewho33/DSC01402.jpg

Andypugh pointed me to this wiki page:
wiki.linuxcnc.org/cgi-bin/wiki.pl?SpindleOrient

Witch sadly doesn't help me (and my limited hal knowledge) much :huh:
I've attached my .ini and -hal files if they are of any interest.

So can somebody help me? :dry:

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

More
11 years 5 months ago #58516 by thewho
Replied by thewho on topic VMC related HAL questions.
I've been reading up on the hal documentation and It's not that hard when you understand how it works.
But "spindle closed loop control" might be a little to advanced to start with :whistle:

The "Spindle Orientation" schematic makes a lot more sense now at least :)
Can the spindles two pid's be tuned via Linuxcnc? (cant remember what the tool is called) Or do I have to change the settings in the hal file?

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

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

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

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

thewho wrote: Can I modify and use this on my machine?
wiki.linuxcnc.org/cgi-bin/wiki.pl?Closed...pindle_Speed_Control


The Vismach model that I am playing with now has a closed-loop velocity spindle with orient (using M19)
so the HAL code to implement t this HAL diagram now exists as an example.

Unforunately it only exists on my machine at home.

If I get chance I will nip home at lunchtime and post it here. (as I am away all weekend)
Last edit: 11 years 5 months ago by andypugh.
The following user(s) said Thank You: akb1212

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

More
11 years 5 months ago - 11 years 3 months ago #58732 by andypugh
Replied by andypugh on topic VMC related HAL questions.
This is the complete simulated VMC (so far).

It will start up, home and run G-code.
It will also rotate the simulated spindle and respond to M19 commands.

Note that the orient component only updates outputs when motion.spindle-orient goes true from false, so to change orient angle you have to start the spindle and move it fractionally.

So,
M19 R45
M3 S10
M19 R180

Will work. (I might look at modifying "orient")

[strike]Tool changing is a work-in-progress. At the moment M6 is remapped to call an O-word subroutine, but the subroutine still does very little. [/strike]
The G-code routine now does a complete tool change cycle for the simulated machine, but anyone using this code should make absolutely sure that it does all the necessary things in the right sequence for their hardware. Errors could be costly, but I am not in a position to test this code on your actual machine.

Extract the VMC.zip file into the configs folder and you should get a new config to choose in the LinuxCNC config picker.

You will need to give the "vmcgui" file execute permissions for the config to work.
(right-click, properties, permissions, from the file manager)

(Update 18 July) The carousel component now supports position-pulse + index mode
Last edit: 11 years 3 months ago by andypugh.
The following user(s) said Thank You: akb1212

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

More
11 years 5 months ago #58832 by thewho
Replied by thewho on topic VMC related HAL questions.
I understand that Linuxcnc can "do it all" if you know what you are doing. But why isn't things like closed loop spindle control built in? Almost every machine controlled by Linuxcnc has a rotating spindle of some sort, yes I know that only a few have some sort of spindle position feedback but still..
Is it a time/prio thing?

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

Thanks again Andy for helping newbies like me :)

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

Time to create page: 0.905 seconds
Powered by Kunena Forum