× Forum Header

Using PDM mode for Spindle Control

More
31 Oct 2014 22:44 #52622 by sgsracing
Hello,

I have a Sound Logic Combo Board, it does the break out and spindle speed control.






It uses a circuit that converts 0 to 20,000 Hz to 0-10Vdc .

I need to configure Linuxcnc to produce 0 to 20,000hz on pin 1 which I have configured in StepConf to be PWM and have set it to PDM mode ( photos attached.) Im not sure if this is the correct step.







I have had some limited results, I can change the settings for RPM span in the Spindle Config menu but it only ever gives me a range of 0- 4.18VDC on my board, this leads me to think that linuxcnc is not putting out a 0-20,000Hz frequency. Im guessing I have to change the HAL but I have no where to start. Any help is greatly appreciated.

Noah
Attachments:

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

More
31 Oct 2014 23:27 - 31 Oct 2014 23:29 #52623 by newbynobi
Hallo Noah,

you have not entered a PWM Rate, so it is using PDM.

I Do not know if you can enter 20.000 for the PWM Value, on one of my controls I used 100 Hz.

The spindle values represents a rpm value and a % value of the output.

Norbert
Attachments:
Last edit: 31 Oct 2014 23:29 by newbynobi.

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

More
31 Oct 2014 23:36 #52625 by sgsracing
Norbert,


I am using PDM on purpose. My understanding..(correct me if I am wrong) is that PWM is a given frequency (e.g. 100Hz) and the duty cycle is modulated. In PDM mode, it is changing the frequency. This is my understanding.

I would lke to use the change in frequency. 0- 20,000Hz. to represent 0-20,000RPM which my board converts to 0-10VDC.

Noah

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

More
01 Nov 2014 00:42 #52629 by PCW
For a spindle 0 to 10V interface that uses frequency instead of pulse duty cycle to set the output voltage
neither PWM or PDM are appropriate.

You will need to either use the siggen component or a stepgen running in velocity mode to generate
the variable frequency.

I dont think stepconf knows how to do this so this needs to be done by editing your hal file
The following user(s) said Thank You: sgsracing

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

More
01 Nov 2014 01:34 #52632 by sgsracing
Ok! Thank you!

That's what I was dreading but I guess that means I get to learn more!

Noah

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

Time to create page: 0.155 seconds
Powered by Kunena Forum