Understaning PWM

More
5 years 3 months ago #214146 by PCW
Replied by PCW on topic Understaning PWM

Thanks PCW,
When I find the listed bit file, is it just a matter of flashing the 7i96?
And, would this overwrite my current setups for the other steppers & switches?
 
No, but you will lose one Stepgen and gain one PWMGen so if your hal file has a num_stepgens=5
statement, it will need to be changed or you will get a LinuxcNC error

++ on using Johns configuration utility. it knows how to setup PWM. Even if you don't want to
start a new configuration from scratch, you can use the utility to make an example PWM setup
hal file section

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

More
5 years 3 months ago #214151 by hairyMug
Replied by hairyMug on topic Understaning PWM
Yes, I used John's tool and copied the spindle info to the HAL created by the pncconfg tool...
Now, the spindle runs at full speed only... no matter what setting I use...

BTW: I did try using John's tool alone, but I always had to edit the HAL file to fix code that threw errors... >> The "config" line was incorrect. and the "E-stop" code also threw an error...

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

More
5 years 3 months ago - 5 years 3 months ago #214152 by PCW
Replied by PCW on topic Understaning PWM
Can you post your hal/ini files, and also show how the PWM is connected?
Last edit: 5 years 3 months ago by PCW.

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

More
5 years 3 months ago #214179 by hairyMug
Replied by hairyMug on topic Understaning PWM
Thanks!

File Attachment:

File Name: 7i96.hal
File Size:8.99 KB

File Attachment:

File Name: 7i96.ini
File Size:3.98 KB

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

More
5 years 3 months ago #214183 by PCW
Replied by PCW on topic Understaning PWM
The PWM scale should be set for the spindle RPM at 100% PWM duty cycle

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

More
5 years 3 months ago #214187 by hairyMug
Replied by hairyMug on topic Understaning PWM
changed the settings but still goes to max speed when enabled...

> I'm going to try using the "halscope" (another thing to figger out ) to verify correct PWM output as it might be the "spinx" board reference voltage hookup...

Thanks!

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

Time to create page: 0.101 seconds
Powered by Kunena Forum