Spindle-on output not doing what I say it should ;)

More
29 Dec 2019 06:56 - 30 Dec 2019 03:44 #153416 by Antman
Hi All

I'm trying to have my spindle coolant pump only run when the spindle is on.

I'm using a 7i76e board with output01 to a solid state relay to control the pump. When in PnCConf I select that pin to be;
'Control>Machine Is Enabled'
the pump starts as soon as I enable the machine.

But if I change it to;
Spindle>Spindle ON
the pump doesn't run when I start the spindle in AXIS.

Am I misunderstanding what Spindle ON should do?

If I'm barking up the wrong tree, can someone give me some help on what I should have in my HAL file. (I'm still very new).

Thanks everyone,
Anthony
Last edit: 30 Dec 2019 03:44 by Antman. Reason: just added solved to heading

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

More
29 Dec 2019 12:49 #153431 by bevins
spindle-on hm2_7i92.0.7i76.0.0.output-01

That would tun on that output when the spindle runs depending on what is connected to spindle-on.

Post your hal file and what version you are running..
The following user(s) said Thank You: Antman

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

More
29 Dec 2019 13:13 #153434 by 0x2102
spindle-on is not connected to anything by default - besides your output. In your machine.hal you could change

net spindle-on => hm2_7i76e.0.7i76.0.0.output-00

to

net spindle-enable => hm2_7i76e.0.7i76.0.0.output-00

Spindle-enable is usually already connected like this:

LinuxCNC 2.7:
net spindle-enable <= motion.spindle-on

LinuxCNC 2.8:
net spindle-enable <= spindel.0.on
The following user(s) said Thank You: Antman

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

More
29 Dec 2019 15:43 #153442 by cmorley
What version of linuxcnc are you using?
Yes it seems a typo in the pncconf code.

As a work around in Pncconf you can just typo 'spindle-enable' in the output combo box for the coolant pump output.

Chris
The following user(s) said Thank You: Antman

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

More
30 Dec 2019 03:42 #153538 by Antman
Hi everyone. Thanks for all your replies, really appreciate them all. I should have said I'm using 2.8 in the first post :unsure:

I followed CMORLEY's advice (as it was the easiest thing to do);

As a work around in Pncconf you can just typo 'spindle-enable' in the output combo box for the coolant pump output.

and it works perfectly, as I say it should :angry:

If it is a typo in Pncconf, shall I report it to someone? who? Just looking at 0x2102's post, and looks like it might be a carry over from previous versions?

Thanks for everyone's help and advice, great forum here.

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

More
30 Dec 2019 11:19 #153546 by cmorley
I do the major work on pncconf so consider it reported - thanks for the info!

Chris
The following user(s) said Thank You: tommylight

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

More
30 Dec 2019 18:43 #153558 by cmorley
I pushed a fix for this - next time you update it should be fixed.

Chris

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

More
31 Dec 2019 02:37 #153583 by Antman
You're awesome, thanks Chris.

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

Moderators: cmorley
Time to create page: 0.090 seconds
Powered by Kunena Forum