[Resolved] adding control of the spindle with 7i96 tools

More
19 Mar 2021 09:55 #202818 by RotarySMP
The PWM output is on +5v.
Mark

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

More
19 Mar 2021 09:56 #202819 by Ewok2

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

More
19 Mar 2021 13:42 #202833 by Ewok2
Many Thanks it works fine, the spindle is know control by linuxcnc...

The last question...
When I power up the CNC (Mesa card + all the electronics part) befor linuxcnc is start and connect to the Mesa, the spindle it turning to max...
Is there a way to set by default to stop in Mesa card?

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

More
19 Mar 2021 14:08 #202835 by RotarySMP
Do you have separate "spindle start FWD" and "Spindle start REV" wired into you VFD, or just the speed command? I like have the functions of speed and start separate.
You can see my wiring and HAL in the first posting of this thread...
forum.linuxcnc.org/26-turning/38280-pimp...e-mini-lathe?start=0
Mark

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

More
19 Mar 2021 14:32 #202838 by PCW
As RotarySMP says, the spindle should be controlled by FWD and REV not just the
analog voltage. That said, you can get the analog voltage to be 0 at start-up by
inverting the PWM pin and using the STEP4- pin rather than the STEP4+ pin.

To invert the PWM pin, you:

setp hm2_7i96.0.pwmgen.00.out0.invert_output true

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

More
19 Mar 2021 14:35 #202840 by Ewok2
I have already look a your wiring and hal fiel :-)
My spindle has the 0-10V input wire to the smal 0-10V / PMW card
the smal card is connected to the MESA card
And there is also 2 connectors when shortcuircuit that enable the spindle to run.
I have wire this 2 connectors to the Out0 +/- of the mesa.

But it seems that Mesa connect by default Out +/- when not control by the linuxCnC.
I was wondering if it was possible to set "Open" as default?

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

More
19 Mar 2021 14:37 #202841 by Ewok2
Thanks PCW, I will try. But as said just above I do not have a direction control on the spindle.
Only 0-10V for the seed
and a On / Off

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

More
19 Mar 2021 14:38 #202842 by PCW
OUT+ and OUT- are disconnected until explicitly enabled by LinuxCNC
Is it possible you have the OUT+ and OUT- polarity wrong?
(The outputs will appear to be stuck-on if reversed)

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

More
19 Mar 2021 15:31 #202851 by Ewok2
My mistake
as there where initialy only a wire to allow the spindle to run I did not pay attention on the polarity.
I switch Out+ ans out- and it works perfectly!

Many Thanks

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

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