- Posts: 2
- Thank you received: 0
Request: Custom 7C80 bitfile - Replace StepGens 0, 1, 2 with PWMGens (TB7, TB8,
7 months 3 weeks ago #343906
by Tony123
Request: Custom 7C80 bitfile - Replace StepGens 0, 1, 2 with PWMGens (TB7, TB8, was created by Tony123
Hi LinuxCNC community,I am running a Mesa 7C80 via SPI on a Raspberry Pi 5. Because my main axes and spindle are handled over EtherCAT, I am not using the standard StepGens.I need to drive three linear coil motors that require a standard 5V hardware PWM signal. Could I please request a custom bitfile that replaces the first three StepGens with PWM Generators?Specific Routing Request:
- TB7 (Normally StepGen 0): Replace with a PWMGen.
- TB8 (Normally StepGen 1): Replace with a PWMGen.
- TB9 (Normally StepGen 2): Replace with a PWMGen.
Please Log in to join the conversation.
7 months 3 weeks ago #343927
by PCW
Replied by PCW on topic Request: Custom 7C80 bitfile - Replace StepGens 0, 1, 2 with PWMGens (TB7, TB8,
So you want the DIR pin to be GPIO rather than PWM direction?
( The PWM direction pin is controlled by the sign of the PWM value )
( The PWM direction pin is controlled by the sign of the PWM value )
Please Log in to join the conversation.
7 months 3 weeks ago #343931
by Tony123
Replied by Tony123 on topic Request: Custom 7C80 bitfile - Replace StepGens 0, 1, 2 with PWMGens (TB7, TB8,
Hi,
You are completely right. I took a step back and realized it makes much more sense to update my GUI to use a -100 to +100 slider so I can take advantage of the hardware direction.
So YES, please link the DIR pin to the PWM direction (your standard way).
Thank you for catching that and pointing me in the right direction!
You are completely right. I took a step back and realized it makes much more sense to update my GUI to use a -100 to +100 slider so I can take advantage of the hardware direction.
So YES, please link the DIR pin to the PWM direction (your standard way).
Thank you for catching that and pointing me in the right direction!
Please Log in to join the conversation.
7 months 3 weeks ago #343945
by PCW
Note that to get 0 PWM at startup or watchdog bite you may need to
1. Chose the output polarity that is 0 at startup ( I think this is the - pin )
2. Invert the PWM output in HAL
Replied by PCW on topic Request: Custom 7C80 bitfile - Replace StepGens 0, 1, 2 with PWMGens (TB7, TB8,
Attachment not found
Note that to get 0 PWM at startup or watchdog bite you may need to
1. Chose the output polarity that is 0 at startup ( I think this is the - pin )
2. Invert the PWM output in HAL
Please Log in to join the conversation.
Time to create page: 0.372 seconds
