- Posts: 13
- Thank you received: 0
PWM gen
- Sytreca
- Topic Author
- Offline
- New Member
-
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.
- Clive S
- Offline
- Platinum Member
-
- Posts: 2203
- Thank you received: 486
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?
Please Log in or Create an account to join the conversation.
- PCW
- Offline
- Moderator
-
- Posts: 17533
- Thank you received: 5334
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.
- Sytreca
- Topic Author
- Offline
- New Member
-
- Posts: 13
- Thank you received: 0
Because my VFD only accepts 0-10V or 4-20mA.
Or do i need to look for another solution?
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
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.
- andypugh
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
Please Log in or Create an account to join the conversation.
- Sytreca
- Topic Author
- Offline
- New Member
-
- Posts: 13
- Thank you received: 0
The 7i66 is connected to 7i44 and this is connected to 5i23.
But all the ports on 7i44 are most likely gonna be used up.
On the 5i23 P3 is still available.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
linuxcnc.org/docs/devel/html/man/man1/gs2.1.html
linuxcnc.org/docs/devel/html/man/man1/hy_gt_vfd.1.html
linuxcnc.org/docs/devel/html/man/man1/hy_vfd.1.html
linuxcnc.org/docs/devel/html/man/man1/mitsub_vfd.1.html
linuxcnc.org/docs/devel/html/man/man1/vfdb_vfd.1.html
linuxcnc.org/docs/devel/html/man/man1/vfs11_vfd.1.html
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
-
- Posts: 19311
- Thank you received: 4655
Alternatively the 7i83 would do what you want, but seems overkill for an individual analogue output: store.mesanet.com/index.php?route=produc...83_88&product_id=122
It's a pity there isn't a single-channel smart-serial version of the Spinx1
store.mesanet.com/index.php?route=produc...t_id=205&search=spin
Please Log in or Create an account to join the conversation.
- Sytreca
- Topic Author
- Offline
- New Member
-
- Posts: 13
- Thank you received: 0
Please Log in or Create an account to join the conversation.