Converting CNC-STEP HighZ-1000T to LinuxCNC with Mesa

More
07 Jun 2020 13:10 #170474 by PCW
The general pin names and functions are described in the hosmot2 manual page

man hostmot2

You can also list all the available* 7I96 hardware pins and parameters with:

halcmd show all hm2_7i96

available* = present in firmware and enabled by driver command line

Setting the PWM frequency would be something like:

setp hm2_7i96.0.pwmgen.pwm_frequency 5000

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

More
07 Jun 2020 13:59 - 07 Jun 2020 13:59 #170481 by msageryd
Thanks.
I already have the following set in the hal file (created by 7i96 config tool).
# Spindle
setp hm2_7i96.0.pwmgen.00.output-type 0
setp hm2_7i96.0.pwmgen.00.scale [SPINDLE]MAX_RPM
setp hm2_7i96.0.pwmgen.pwm_frequency [SPINDLE]PWM_FREQUENCY

What I'm missing is a signal to control hm2_7i96.0.pwmgen.00.value and hm2_7i96.0.pwmgen.00.enabled.
Last edit: 07 Jun 2020 13:59 by msageryd.

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

More
07 Jun 2020 14:42 - 07 Jun 2020 15:03 #170488 by PCW
man motion

( I dont mean to be flip but the actual pin names for spindle control
depend on your specific version of LinuxCNC, and the man page will reflect this. )
Last edit: 07 Jun 2020 15:03 by PCW.
The following user(s) said Thank You: msageryd

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

More
07 Jun 2020 15:14 #170493 by bbsr_5a
like that
#spindel vfd 
setp     hm2_7i96.0.pwmgen.pwm_frequency 400
setp hm2_7i96.0.pwmgen.00.scale 24000
setp hm2_7i96.0.pwmgen.00.out0.invert_output True
setp     hm2_7i96.0.pwmgen.pdm_frequency 6000000
net spindle-speed-cmd spindle.0.speed-out => hm2_7i96.0.pwmgen.00.value
net spindle-on spindle.0.on => hm2_7i96.0.pwmgen.00.enable
The following user(s) said Thank You: msageryd

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

More
07 Jun 2020 15:47 #170499 by msageryd
@PWC it didn't sound "flip" to me. I appreciate every second people spend to answer my newbie questions. I tried to find my way through the pdf documentation, but it's kind of hard to navigate.

man motion seems to be a better information source.

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

More
07 Jun 2020 17:42 #170507 by msageryd
I measured my spindle speeds. It's about 10-20% more than commanded. Is there any easy way to calibrate this? It's not that bad for my hobby usage, but it would be nice if it were more correct.

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

More
07 Jun 2020 17:55 #170508 by PCW
Simple:
set the PWM scale 10-20% higher

Bit more complex:
use the scale component to add an offset and scale for best line fit

Fancy:
use the lincurve component to correct the speed at many points

Closed_loop:
use the spindle encoder for velocity feedback with PID to get closed loop
speed control

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

More
07 Jun 2020 18:47 #170512 by msageryd
Thanks, I'll go with "simple" for now.

"the spindle encoder".. sounds like everyone has one. My spindle has four connections. I'm not sure what they are, but I'm guessing Ground, A, B, Index. If I had a spindle encoder I would have more connections, wouldn't I?

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

More
07 Jun 2020 19:04 #170513 by PCW
A spindle encoder is not terribly useful on a router, its pretty much
necessary on a Lathe (unless you have a servo/stepper driven spindle)
and allows you to do things like rigid tapping on a mill.
The following user(s) said Thank You: msageryd

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

Moderators: cncbasher
Time to create page: 0.087 seconds
Powered by Kunena Forum