Flipping Spindle Signal

More
28 May 2021 18:35 #210548 by Sadlers
I discovered that my spindle driver has a reversed speed signal. I.e. 10 volts = 0 speed, 0 volts = full speed.
In a programming language the fix could be as simple as: Required Output = 10 - Normal Output.

Is there a way to do this in Hal?
My other alternative is to use an inverting opamp but to get full range I will need a single supply rail to rail opamp capable of running at the required voltage range.

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

More
28 May 2021 19:04 #210550 by chris@cnc
Replied by chris@cnc on topic Flipping Spindle Signal
Hi Sadlers,
I don't know how to do that in hal. But I'm sure you can adjust it on your amplifier. Paramter called maybe
Frequency command resource setting
or
Running command resource setting

Do you have a manual for your amplifier?
Chris

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

More
28 May 2021 19:55 #210555 by PCW
Replied by PCW on topic Flipping Spindle Signal
You can certainly do this in hal (say with the scale component)
But as crhis@cnc said it would be better to setup the drive to act
in a standard way.

Are you sure the drive is really running at full speed with 0V applied?

A hal or hardware setup error could cause this kind of behaviour:
0 commanded RPM = maximum VFD RPM

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

More
28 May 2021 20:19 #210557 by Sadlers
Replied by Sadlers on topic Flipping Spindle Signal
It definitely works this way. I connected a pot and measured the voltage. Not too much I can do about the drive settings. The controller (and motor) were salvaged from a treadmill. It replaces the original lathe single speed motor with more power (and variable speed), at the great price of free.

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

More
28 May 2021 20:47 #210561 by Sadlers
Replied by Sadlers on topic Flipping Spindle Signal
Some more information: This is a DC drive/motor combo with a 90 V dc motor and PWM controller.. I have speed control from near zero to just under 6000 rpm with pretty good torque right down to the low end. When I need more torque, I can move the pulleys around. Bottom line, the arrangement serves me well (other than the quirky control voltage)

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

More
29 May 2021 14:59 #210625 by Sadlers
Replied by Sadlers on topic Flipping Spindle Signal
So the way I see this working is adding the following lines to my Hal file:
Loadrt scale count =1
addf scale.0 servo-thread
setp scale.0.gain -1
setp scale.0.offset=10
net spindle-speed-scale spindle.0.speed-out => scale.0.in
net spindle-speed-DAC scale.0.out => ??

Is this the right way to do this? Where should the out go to?

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

More
29 May 2021 15:02 #210626 by tommylight
Replied by tommylight on topic Flipping Spindle Signal
Just a stab in the dark, but what about inverting the PWM pin?

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

More
29 May 2021 18:54 #210641 by Sadlers
Replied by Sadlers on topic Flipping Spindle Signal
Yeah, I tried that. I doesn’t do what is needed.

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

More
29 May 2021 19:19 #210645 by tommylight
Replied by tommylight on topic Flipping Spindle Signal
What board/controller?

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

More
29 May 2021 19:35 #210646 by Sadlers
Replied by Sadlers on topic Flipping Spindle Signal
I am using a mesa 5i25/7i76

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

Time to create page: 0.157 seconds
Powered by Kunena Forum