7i80-DB + 7I76 - PWM Spindle ?

More
7 years 3 months ago #139955 by mjoconr
I'm using 7i80db_16_7i76x3d.bit

Would I change
"num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=00xxxx"
to
"num_encoders=1 num_pwmgens=1 num_stepgens=5 sserial_port_0=00xxxx"

Thanks

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

More
7 years 3 months ago #139956 by PCW
Replied by PCW on topic 7i80-DB + 7I76 - PWM Spindle ?
Probably:
"num_encoders=1 num_pwmgens=0 num_stepgens=5 sserial_port_0=00xxxx"
to
"num_encoders=1 num_pwmgens=1 num_stepgens=4 sserial_port_0=00xxxx"

(assuming you are only using the stepgens on the first 7I76)

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

More
7 years 3 months ago #139957 by mjoconr
So this changes the step4 on TM3 to be a PWM interface ? What should the config look like in the HAL ?

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

More
7 years 3 months ago #139959 by PCW
Replied by PCW on topic 7i80-DB + 7I76 - PWM Spindle ?
No, you need different firmware for that.

Hardware like stepgens and pwmgens needs to be compiled into the firmware
so you would need a bitfile that has the PWMGen built in

Once its present you can enable 0 to all available instances of the hardware
modules in the hal file

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

More
7 years 3 months ago #139960 by mjoconr
So what is the best way of getting a PWM output ?

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

More
7 years 3 months ago - 7 years 3 months ago #139961 by PCW
Replied by PCW on topic 7i80-DB + 7I76 - PWM Spindle ?
If slow PWM is OK (say 20 Hz), you could us software PWM, as pl7i92 suggested
and direct it to a field output or a unused stepgen output.

If you need faster (hardware ) PWM you would need a new 7I80DB-16 bitfile that
includes a PWMgen, probably on the last 7I76 step/dir pin set

I did find a manual for the BD1100 but its in Chinese and
doesnt seem to have much in the way of interface details
(if google translate did a decent job)
Last edit: 7 years 3 months ago by PCW.

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

Time to create page: 0.254 seconds
Powered by Kunena Forum