spindle doesn’t work
10 Jul 2024 16:35 #304830
by mnikulski
Replied by mnikulski on topic spindle doesn’t work
I tried your recommendation, but wasn't working. After several try and error I'm now able to turn on/off the spindle by LINUXCNC. The wiring looks like this
Mesa <=> VFD
Dir + +12V
Dir - FWD
En +
En -
nc
SPI + +10V
SPI OP AVI
SPI - COM
The next challenge is the spindle speed adaption. At the moment is only full speed possible. I've added the following to my INI and HAL files (not sure if it makes sense)
INI
MAX_OUTPUT = 20000
OUTPUT_MIN_LIMIT = 6000
OUTPUT_MAX_LIMIT = 20000
OUTPUT_SCALE = 100
HAL
net spindle-cw => hm2_7i76e.0.7i76.0.0.spindir
#net spindle-ccw => hm2_7i96s.0.ssr.00.out-01
net spindle-enable => hm2_7i76e.0.7i76.0.0.spinena
net spindle-vel-cmd-rpm => hm2_7i76e.0.7i76.0.0.spinout
setp hm2_7i76e.0.7i76.0.0.spinout-scalemax [SPINDLE_0]MAX_OUTPUT
sets spindle-at-speed true
setp hm2_7i76e.0.7i76.0.0.spinout-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_7i76e.0.7i76.0.0.spinout-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
setp hm2_7i76e.0.7i76.0.0.spinout-scalemax [SPINDLE_0]OUTPUT_SCALE
Mesa <=> VFD
Dir + +12V
Dir - FWD
En +
En -
nc
SPI + +10V
SPI OP AVI
SPI - COM
The next challenge is the spindle speed adaption. At the moment is only full speed possible. I've added the following to my INI and HAL files (not sure if it makes sense)
INI
MAX_OUTPUT = 20000
OUTPUT_MIN_LIMIT = 6000
OUTPUT_MAX_LIMIT = 20000
OUTPUT_SCALE = 100
HAL
net spindle-cw => hm2_7i76e.0.7i76.0.0.spindir
#net spindle-ccw => hm2_7i96s.0.ssr.00.out-01
net spindle-enable => hm2_7i76e.0.7i76.0.0.spinena
net spindle-vel-cmd-rpm => hm2_7i76e.0.7i76.0.0.spinout
setp hm2_7i76e.0.7i76.0.0.spinout-scalemax [SPINDLE_0]MAX_OUTPUT
sets spindle-at-speed true
setp hm2_7i76e.0.7i76.0.0.spinout-minlim [SPINDLE_0]OUTPUT_MIN_LIMIT
setp hm2_7i76e.0.7i76.0.0.spinout-maxlim [SPINDLE_0]OUTPUT_MAX_LIMIT
setp hm2_7i76e.0.7i76.0.0.spinout-scalemax [SPINDLE_0]OUTPUT_SCALE
Please Log in or Create an account to join the conversation.
10 Jul 2024 16:44 #304832
by Aciera
Replied by Aciera on topic spindle doesn’t work
have you checked if 'hm2_7i76e.0.7i76.0.0.spinout' changes it's value when the spindle speed is changed with hm2_7i76e.0.7i76.0.0.spinout = true?
If that is the case then you would need a voltmeter to check the voltage on the VFD 'AVI' input.
If that is the case then you would need a voltmeter to check the voltage on the VFD 'AVI' input.
Please Log in or Create an account to join the conversation.
10 Jul 2024 18:06 #304839
by mnikulski
Replied by mnikulski on topic spindle doesn’t work
good news. It works as it should. I had the swap the REV with FWD to have the right spindle rotation. The speed control was fixed since I removed a miss misconfigured value in the HAL.
Many thanks for the quick and professional support.
Many thanks for the quick and professional support.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.072 seconds