[Resolved] adding control of the spindle with 7i96 tools
- RotarySMP
- Offline
- Platinum Member
Less
More
- Posts: 1454
- Thank you received: 527
19 Mar 2021 09:55 #202818
by RotarySMP
Replied by RotarySMP on topic adding control of the spindle with 7i96 tools
The PWM output is on +5v.
Mark
Mark
Please Log in or Create an account to join the conversation.
- Ewok2
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 0
19 Mar 2021 09:56 #202819
by Ewok2
Replied by Ewok2 on topic adding control of the spindle with 7i96 tools
Ok thanks
Please Log in or Create an account to join the conversation.
- Ewok2
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 0
19 Mar 2021 13:42 #202833
by Ewok2
Replied by Ewok2 on topic adding control of the spindle with 7i96 tools
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?
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.
- RotarySMP
- Offline
- Platinum Member
Less
More
- Posts: 1454
- Thank you received: 527
19 Mar 2021 14:08 #202835
by RotarySMP
Replied by RotarySMP on topic adding control of the spindle with 7i96 tools
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
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.
- PCW
- Away
- Moderator
Less
More
- Posts: 17973
- Thank you received: 4830
19 Mar 2021 14:32 #202838
by PCW
Replied by PCW on topic adding control of the spindle with 7i96 tools
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
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.
- Ewok2
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 0
19 Mar 2021 14:35 #202840
by Ewok2
Replied by Ewok2 on topic adding control of the spindle with 7i96 tools
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?
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.
- Ewok2
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 0
19 Mar 2021 14:37 #202841
by Ewok2
Replied by Ewok2 on topic adding control of the spindle with 7i96 tools
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
Only 0-10V for the seed
and a On / Off
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17973
- Thank you received: 4830
19 Mar 2021 14:38 #202842
by PCW
Replied by PCW on topic adding control of the spindle with 7i96 tools
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)
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.
- Ewok2
- Offline
- Senior Member
Less
More
- Posts: 60
- Thank you received: 0
19 Mar 2021 15:31 #202851
by Ewok2
Replied by Ewok2 on topic adding control of the spindle with 7i96 tools
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
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: PCW, jmelson
Time to create page: 0.073 seconds