- Posts: 22012
- Thank you received: 4
emcoturn 120 / 220 tool turret hal outputs
- tommylight
-
- Offline
- Administrator
-
That should be the line for 7i76E and that line must contain num_pwm = 1.
Do not change other stuff there if you already have a working machine.
Please Log in to join the conversation.
Also the rest of the hal file is setup for a software PWMGen so needs to be changed for the hardware pwmgen
Please Log in to join the conversation.
PCW wrote: num_pwmgens=1
Also the rest of the hal file is setup for a software PWMGen so needs to be changed for the hardware pwmgen
Yes, i got num_pwmgens=1 changded.
My apologize, i don't understand how to change it to hardware pwmgen....
i got some progress though.
Linuxcnc starts!
The encoder giving signals to the input pins!
So, hm2_7i76e.0.7i76.0.0.input-01 and 00 isnt right one for this of course.
could you show me how to wire and what to change?
Please Log in to join the conversation.
(except the num_pwmgens )
This is because those lines make sense only for software PWM
Then after you launch linuxcnc, list the available PWM pins and parameters
by typing this in a terminal:
halcmd show pin *pwm* (for pins)
and
halcmd show param *pwm*
Please Log in to join the conversation.
PCW wrote: First delete or commnt out all lines in the hal file that have "pwm" in them
(except the num_pwmgens )
This is because those lines make sense only for software PWM
Then after you launch linuxcnc, list the available PWM pins and parameters
by typing this in a terminal:
halcmd show pin *pwm* (for pins)
and
halcmd show param *pwm*
okey. i have done that.
in the terminal i saw at pin:
emcochanger.setpwm
owner= 46
type=float
DIR=out
Value=100
at show param *pwm* Nothing
Please Log in to join the conversation.
Is that still there in the loadrt-hm2_eth line?
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Please Log in to join the conversation.
if i only comment out two lines i got more parameter . but no num_pwmgen=1
i also found out that one of the four sensors are defected.
so i have to find a new IR photointerruptor. :dry:
Please Log in to join the conversation.
so, what am i doing wrong in the hal file?
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
Activate the
#addf pwmgen.make-pulses base-thread
and change it to servo-thread
That should do it.
Please Log in to join the conversation.
