7i76e pwmgen setup

More
11 Dec 2019 21:10 #152494 by prcdslnc13
sorry for the basic question here, but I am trying to figure out the right steps to setup pwmgen with the mesa cards. I am moving from a parallel setup where I had pwm to drive a motor vfd. We basically treated it like a spindle but its a pump. I just need to get the 5v pwm back.

I used the configuration tool here: github.com/jethornton/7i76e to make my config and flash a bit file for 4 stepgens and 1 pwmgen and got all the motors moving and the pwm is the last step. I have also made a config using the PNCconf (I know this will not add the pwmgen's either) that moves all my motors after a little bit of editing the hal.

Is there a doc somewhere that I am missing? I have been digging through the docs for a couple days now. I feel like this: linuxcnc.org/docs/html/man/man9/pwmgen.9.html gets me close but I could really just use a simple example of how the hal should look.
Attachments:

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

More
11 Dec 2019 21:25 - 11 Dec 2019 21:25 #152496 by PCW
Replied by PCW on topic 7i76e pwmgen setup
You would normally not use a software PWMgen with a 7I76e
(since a hardware PWMgen is built in)

To use the hardware PWMgen with the 7I76E, you would enable the
PWMGen ( add a pwmgens=1 in the driver command line)
set the PWM frequency and scaling (these parameters can be
determined via the hostmot2 manual page or via halcmd)
for example (with linuxCNC running):

halcmd show param *pwmgen*

Then you would need to connect the PWMgen value and enable
pins to the appropriate LinuxCNC pins via net commands

halcmd show pin *pwmgen*

Will show the actual names of these pins
Last edit: 11 Dec 2019 21:25 by PCW.
The following user(s) said Thank You: prcdslnc13

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

More
16 Jan 2020 12:35 - 16 Jan 2020 13:07 #155019 by hurga88
Replied by hurga88 on topic 7i76e pwmgen setup
Does 7i76e really provide a HW pwmgen?
What do I have to do to enable it?
(Which firmware/bitfile must be loaded?)

Thanks
Last edit: 16 Jan 2020 13:07 by hurga88.

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

More
16 Jan 2020 14:25 #155024 by PCW
Replied by PCW on topic 7i76e pwmgen setup
7i76e_7i76x1pD.bit is a configuration with PWM/DIR replacing STEP4/DIR4
It is enabled by default ( unless the driver command line has a "pwmgens=0" statement )

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

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