[SOLVED]How to configure the PWM signal in a MESA 7i96 for a spindle?

More
07 Mar 2022 19:54 - 13 May 2022 19:48 #236597 by Nest
Hi, i have my CNC almost finished, in the absence of configuring  the spindle.
My spindle work with a PWM signal, the output pin of my MESA 7i96 go to imput pin of my electronic and my electronic makes it spin.
Which is the ping of my MESA for a signal PWM and how to configure it?
Thanks you so much
Last edit: 13 May 2022 19:48 by Nest.

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

More
07 Mar 2022 20:16 #236600 by PCW
There is 7I96 firmware that replaces stepgen4's Step/Dir signals
with a PWMGens PWM/Dir : 7i96d_1pwm.bit

JTs 7i96 configuration utility knows how to setup the PWMGen

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

More
07 Mar 2022 21:17 #236603 by Nest
in port 4 there are 6 pins, do you know which are the two pins where I have to place the positive and negative cable?

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

More
07 Mar 2022 22:51 #236610 by PCW
It depends on what your spindle drive expects.

7I96 connections are:

TB2:

1 GND
2 PWM-
3 PWM+
4 DIR-
5 DIR+
6 5V

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

More
07 Mar 2022 23:25 #236616 by Nest
ok, my electronic of spindle work with two cables, i think i have to connect the cable red in the PIN 3 (PWM+) and the cable black in PIN 1 (GND) or PIN 2 (PWM-)
what you you think?

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

More
08 Mar 2022 00:23 #236619 by PCW
Do you have a link to the spindle drive manual?

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

More
09 Mar 2022 20:43 #236781 by Nest
Hi, no, i don't have the manual and I can't find anything on the internet but i have the picture

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

More
09 Mar 2022 21:59 - 09 Mar 2022 22:03 #236787 by PCW
OK so its a simple OPTOCoupler input so I would wire it:

7I96        Spindle PWM
1 GND    PWM-
2 PWM-  PWM+

And then invert the PWM output on the 7I96:

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

(The reason for using the 7I96's PWM- is so PWM is 0V at startup and LinuxCNC stop)
Last edit: 09 Mar 2022 22:03 by PCW.

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

More
14 Mar 2022 18:56 #237224 by Nest
hi. I have connected the cables as you say but it does not work, when I run LinuxCNC the spindle is activated and does not stop
how do I have to configure PncConf?

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

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