PWM gen

More
7 years 10 months ago #121856 by Sytreca
PWM gen was created by Sytreca
Hi everybody

I'm trying to create a PWM. i try to do this on a 7i66 output.
Is this possible?
I encluded my hal en ini file. In the end i want to use this pwm to control a Spindle.

With kind regards

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

More
7 years 10 months ago - 7 years 10 months ago #121857 by Clive S
Replied by Clive S on topic PWM gen

Sytreca wrote: Hi everybody

I'm trying to create a PWM. i try to do this on a 7i66 output.
Is this possible?
I encluded my hal en ini file. In the end i want to use this pwm to control a Spindle.

With kind regards


I am still a novice this, but looking at the hal file you seem to have these two addf pwmgen.update servo-thread and
addf pwmgen.make-pulses base-thread

Do these need to go between the read and write at the top with the others?
Last edit: 7 years 10 months ago by Clive S.

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

More
7 years 10 months ago #121870 by PCW
Replied by PCW on topic PWM gen
If you are using a 7I66 output you will be limited to the servo thread as the PWM base frequency. This means that to get 1% resolution assumimg a 1 KHz servo thread, you would be limited to 10Hz.

To make filtering easier its probably better to chose PDM rather than PWM

Assuming 1 KHz servo thread, 50% duty cycle PWM at 10 HZ would be 50 ms on 50 ms off, 50% duty cycle PDM would be 1 ms on 1 ms off...

PDM is selected by setting the software pwmgen components frequency to 0

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

More
7 years 10 months ago - 7 years 10 months ago #121872 by Sytreca
Replied by Sytreca on topic PWM gen
Is it still possible to create a analog signal (0-10V) with this PDM signal?
Because my VFD only accepts 0-10V or 4-20mA.
Or do i need to look for another solution?
Last edit: 7 years 10 months ago by Sytreca.

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

More
7 years 10 months ago #121875 by andypugh
Replied by andypugh on topic PWM gen

Sytreca wrote: Is it still possible to create a analog signal (0-10V) with this PDM signal?
Because my VFD only accepts 0-10V or 4-20mA.
Or do i need to look for another solution?


Both PWM and PDM can be converted to analog voltage by the same low-pass (resistor + capacitor) converter.

(The VFD might well be happy to operate on PWM / PDM without a filter)

Is there any possibility of controlling the VFD with Modbus?

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

More
7 years 10 months ago #121877 by andypugh
Replied by andypugh on topic PWM gen
What is controlling the 7i66? Perhaps you could add another smart-serial card, or use another interface?

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

Time to create page: 0.145 seconds
Powered by Kunena Forum