7i76 Spindle Output Not working

More
17 Feb 2023 14:51 #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 or Create an account to join the conversation.

More
17 Feb 2023 17:57 #264706 by mloser
I attached them: 

File Attachment:

File Name: DynamiteMi...2-17.hal
File Size:19 KB
 

File Attachment:

File Name: DynamiteMi...2-17.ini
File Size:4 KB
Attachments:

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

More
17 Feb 2023 18:07 #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 or Create an account to join the conversation.

More
17 Feb 2023 18:14 #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 or Create an account to join the conversation.

More
17 Feb 2023 18:37 #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 or Create an account to join the conversation.

More
18 Feb 2023 01:11 #264735 by mloser
I ran
halcmd show all | grep spindle > spindle.txt

File "spindle.txt" is attached.

Thanks,
Mike

 

File Attachment:

File Name: spindle.txt
File Size:8 KB
Attachments:

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

More
18 Feb 2023 03:26 #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 or Create an account to join the conversation.

More
18 Feb 2023 13:50 #264748 by mloser
"halcmd show all | grep spin > spindle.txt"
 

File Attachment:

File Name: spindle_20...2-18.txt
File Size:9 KB
Attachments:

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

More
18 Feb 2023 15:57 #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 or Create an account to join the conversation.

More
01 Mar 2023 03:29 #265631 by mloser
Thanks so much.
It's working great now!

 

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

Moderators: PCWjmelson
Time to create page: 0.124 seconds
Powered by Kunena Forum