7i76 Spindle Output Not working

More
3 years 8 months ago #264695 by PCW
Replied by PCW on topic 7i76 Spindle Output Not working
OK so the output circuit is working
Note that negative spinout values are not legal

Can you post you hal/ini files?

Please Log in to join the conversation.

More
3 years 8 months ago #264706 by mloser
I attached them: 

Attachment not found

 

Attachment not found

Please Log in to join the conversation.

More
3 years 8 months ago #264708 by PCW
Replied by PCW on topic 7i76 Spindle Output Not working
OK so the spindle command speed path is pretty complex
can you post the results of:

halcmd show all | grep spindle > spindle.txt

running that hal/ini configuration when you get an incorrect full scale output?

Please Log in to join the conversation.

More
3 years 8 months ago #264709 by mloser
My spindle controller supplies -12 volts and +12 volts.
Negative voltages turn the spindle CW.
Positive voltages turn the spindle CCW.
The more negative value is always fed to TB4 pin1 through a relay.
The more positive value is fed to TB4 pin3 through a relay.
(In case you are wondering about scale.spindle.Cw and scale.spindle.Ccw)
The gain of .004 is because 12 volts to spindle == 3000 rpm on motor

Thanks,
Mike

Please Log in to join the conversation.

More
3 years 8 months ago #264712 by PCW
Replied by PCW on topic 7i76 Spindle Output Not working
Normally you would just do this scaling with the output scale value
(that is set the spindle output scale to 3000 so a spinout value of 3000
results in 12V or full scale)

I don't think its safe to switch TB4 PIN 1 and 3 unless you can guarantee
relay timing so you don't get a 24V transient across the pins.

A safer way is to use an isolated 12Vsupply always connected to TB4 pins 1,3
and switch the output polarity with a DPDT relay

Please Log in to join the conversation.

More
3 years 8 months ago #264735 by mloser
I ran
halcmd show all | grep spindle > spindle.txt

File "spindle.txt" is attached.

Thanks,
Mike

 

Attachment not found

Please Log in to join the conversation.

More
3 years 8 months ago #264737 by PCW
Replied by PCW on topic 7i76 Spindle Output Not working
Oops that's missing the parameters

halcmd show all | grep spin > spindle.txt

Should get everything

Please Log in to join the conversation.

More
3 years 8 months ago #264748 by mloser
"halcmd show all | grep spin > spindle.txt"
 

Attachment not found

Please Log in to join the conversation.

More
3 years 8 months ago #264755 by PCW
Replied by PCW on topic 7i76 Spindle Output Not working
These are reversed
26 float RW 0 hm2_5i25.0.7i76.0.3.spinout-maxlim
26 float RW 1800 hm2_5i25.0.7i76.0.3.spinout-minlim

With this setting:
26 float RW 1800 hm2_5i25.0.7i76.0.3.spinout-scalemax

You should get full output at when spinout is 1800
(you don't need the scale component)

Spinout should be fed from the absolute spindle speed in RPM (negative values are illegal)
(and any polarity reversing should only affect external connections)

Please Log in to join the conversation.

More
3 years 7 months ago #265631 by mloser
Thanks so much.
It's working great now!

 

Please Log in to join the conversation.

Time to create page: 0.064 seconds
Powered by Kunena Forum