- Posts: 10
- Thank you received: 1
Spindle soft start delay
9 years 2 months ago #97841
by justinj
Spindle soft start delay was created by justinj
For some reason my machine refuses to now get through POST with it's 2nd parallel port PCI card installed so I can no longer use the spindle at speed input on it (Card works fine in another machine so it's not the card). I've never done anything with HAL, and have used stepconf to generate the config files which was fine up until now. I know the ramp up and down time settings in the VFD so I'd like to fake the spindle speed and at speed settings in EMC.
I've tried putting the example in the docs ( linuxcnc.org/docs/html/examples/spindle....#_spindle_soft_start ) into my custom.hal but I get the following error:
I'm sure it's probably incredibly easy to someone who has done this before, but I can't make heads or tails of it and have spent ages playing with the custom.hal and stepconf generated .hal. Can anyone help me?
I've tried putting the example in the docs ( linuxcnc.org/docs/html/examples/spindle....#_spindle_soft_start ) into my custom.hal but I get the following error:
Code:
./custom.hal:14: Pin 'motion.spindle-speed-out' was already linked to signal 'spindle-cmd-rpm'
Please Log in or Create an account to join the conversation.
9 years 2 months ago #97899
by andypugh
Replied by andypugh on topic Spindle soft start delay
It is very simple, probably.
In line 14 of your custom.hal file change the signal name to be the already-defined "spindle-cmd-rpm" and that will already have the value of "motion.spindle-speed-out" in it.
In line 14 of your custom.hal file change the signal name to be the already-defined "spindle-cmd-rpm" and that will already have the value of "motion.spindle-speed-out" in it.
Please Log in or Create an account to join the conversation.
9 years 2 months ago #97903
by justinj
Replied by justinj on topic Spindle soft start delay
Unfortunately not that simple. I had tried changing that already (I have a programming background in other languages so I tried to use that to debug) but then I get an error
I tried copying that code to the main .hal file, thinking perhaps the signals didn't carry between the files but get the same error. I made sure I put the code after the line (and tried before just in case HAL acts differently) that had declared the spindle-cmd-rpm signal.
The signal is definitely declared in the main HAL file:
Code:
./custom.hal:14: Pin 'spindle-cmd-rpm' does not exist
The signal is definitely declared in the main HAL file:
Code:
29: net spindle-cmd-rpm => pwmgen.0.value
Please Log in or Create an account to join the conversation.
9 years 2 months ago #97904
by justinj
Replied by justinj on topic Spindle soft start delay
I think I may have been changing line 14 wrong as the error indicates a pin that doesn't exist. I changed the line to:
but now I get an error
. I don't see anywhere else calling a signal or pin scale.0.in either so I'm not sure how that figure comes to be in the example.
Code:
net spindle-cmd-rpm => spindle-ramp.in
Code:
./custom.hal:17: Pin 'scale.0.in' does not exist
Please Log in or Create an account to join the conversation.
9 years 2 months ago #97905
by rodw
Replied by rodw on topic Spindle soft start delay
I think you are missing the loadrt and addf commands listed further up the page here
linuxcnc.org/docs/html/examples/spindle...._0_10v_spindle_speed
linuxcnc.org/docs/html/examples/spindle...._0_10v_spindle_speed
The following user(s) said Thank You: justinj
Please Log in or Create an account to join the conversation.
9 years 2 months ago #97906
by justinj
Replied by justinj on topic Spindle soft start delay
Indeed I am :whistle:
I had read through that area, but assumed that part was already handled by stepconf so skipped it. I'm getting a pwmgen.ko file exists error when I add that, so I'm guessing I need to manually do the spindle part instead of stepconf. I'll give it a try later tonight when I get another chance! Thanks
I had read through that area, but assumed that part was already handled by stepconf so skipped it. I'm getting a pwmgen.ko file exists error when I add that, so I'm guessing I need to manually do the spindle part instead of stepconf. I'll give it a try later tonight when I get another chance! Thanks
The following user(s) said Thank You: rodw
Please Log in or Create an account to join the conversation.
Time to create page: 0.056 seconds