Making 0-10V output work with spindle in HAL

More
6 years 1 week ago #187277 by sushantkurren
Hi there,

I currently have this breakout board wired up to my CNC: www.aliexpress.com/item/1801916509.html which seem to be ubiquitous over the internet.

My issue is I currently have the 0-10V + GND on the right side of the board attached to my VFD 0-10V/GND inputs.

I also have P17 connected as 'Spindle On' and have connected that to the "FWD" pin on the VFD. When I type M3 and M5 in LinuxCNC, the relay triggers (I can hear it), so that's working fine.

However when I read the documentation regarding 0-10V Spindle Control on: linuxcnc.org/docs/2.5/html/examples/spindle.html I am unable to figure out what the <your DAC pin name> would be. I am unsure what the name of the 0-10V pin would be called in the HAL and all P1-17 ports are accounted for.

Any ideas on how to wire this setup correctly or whether I should be using a different HAL setup?

Very appreciated, thank you.

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

More
6 years 1 week ago #187285 by Aciera
Can you post your HAL and INI files?

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

More
6 years 1 week ago #187286 by sushantkurren
Here you are. Thanks

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

More
6 years 1 week ago #187288 by Aciera
I would expect your board uses a PWM signal from one of the pins on the parallel port.

Then you would connect that pin in HAL as in the docs:
Code:
loadrt pwmgen output_type=0 addf pwmgen.update servo-thread addf pwmgen.make-pulses base-thread net spindle-speed-cmd motion.spindle-speed-out => pwmgen.0.value net spindle-on motion.spindle-on => pwmgen.0.enable net spindle-pwm pwmgen.0.pwm => parport.0.pin-09-out # Set the spindle's top speed in RPM setp pwmgen.0.scale 1800

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

More
6 years 1 week ago #187289 by sushantkurren
Oh great, that makes sense.

Where would the PWM then be wired into?

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

More
6 years 1 week ago #187298 by Aciera
Do you have any documentation for that board?

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

Time to create page: 0.070 seconds
Powered by Kunena Forum