- Posts: 153
- Thank you received: 0
emcoturn 120 / 220 tool turret hal outputs
tommylight wrote: Change num_stepgens to 4.
Activate the
#addf pwmgen.make-pulses base-thread
and change it to servo-thread
That should do it.
super. linuxcnc is accepting it.
i did the halcmd show pin and param again for pwm. see file.
now how do i know which physical pin i have to use on the mesa for this?
Please Log in to join the conversation.
- tommylight
-
- Offline
- Administrator
-
- Posts: 22012
- Thank you received: 4
IIRC, it should be on step/dir pins for the 5'th stepgen, but i might be mistaken.
Please Log in to join the conversation.
At the minimum you need these setup changes
#load pwmgen for run pwm delete
loadrt pwmgen output_type=0 delete
addf pwmgen.update servo-thread delete
#addf pwmgen.make-pulses base-thread delete
setp pwmgen.0.pwm-freq 500.0 change to
setp hm2_7i76e.0.pwm_frequency 10000
setp pwmgen.0.scale 100.0 change to
setp hm2_7i76e.0.pwmgen.00.scale 100
setp pwmgen.0.offset 0.0 delete
add
setp hm2_7i76e.0.pwmgen.00.output_mode 2 (this is up/down mode)
And then the connection changes:
net Xen => pwmgen.0.enable change to
net Xen => hm2_7i76e.0.pwmgen.00.enable
net pwmgen_value pwmgen.0.value <= emcochanger.setpwm change to
net pwmgen_value hm2_7i76e.0.pwmgen.00.enable <= emcochanger.setpwm
net pwmgen_out pwmgen.0.pwm => hm2_7i76e.0.7i76.0.0.output-01 delete
Please Log in to join the conversation.
what does hm2_7i76e.0.pwmgen.00.enable meen? lets say that i want to use the 4th (step dir 3) in row of the stepper terminal screws?
what about:
sig-forward emcochanger.forward ==> ?
in1 goes to 3 dir +
in2 goed to 3 step +
?
and the pwm pin of the ln298n module? apply 5v?
Please Log in to join the conversation.
Erikcnc wrote: i get the error: hm2_7i76e.0.pwm_frequency does not exist
This likely means you are not using the correct firmware or do no have the hardware pwmgen enabled
what does hm2_7i76e.0.pwmgen.00.enable meen? lets say that i want to use the 4th (step dir 3) in row of the stepper terminal screws?
You cannot, the PWM outputs replace stepgen 4 on the firmware i supplied
what about:
sig-forward emcochanger.forward ==> ?
in1 goes to 3 dir +
in2 goed to 3 step +
Not sure but with the hardware PWMgen set to up down mode
you will get PWM on Step4 Step in one direction and Step4 DIr in the other direction
and the pwm pin of the ln298n module? apply 5v?
Please Log in to join the conversation.
I did have to change the search for pwm to pwmgen since halcmds
wildcard search apparently does not work with partial words
Please Log in to join the conversation.
PCW wrote:
This likely means you are not using the correct firmware or do no have the hardware pwmgen enabled
I see.
i thought i had the right one.
i installed 7i76e_7i76x1D.bit.
i cannot find the 7i76e_7i76x1pD.bit you mentioned,
i did find 7i76e_7i76x1_PktD.bit though
Please Log in to join the conversation.
09/12/2014 03:22 PM 464,302 7i76e_7i76x1_7i74x1D.bit
09/12/2014 02:43 PM 464,302 7i76e_7i76x1D.bit
09/12/2014 03:10 PM 464,302 7i76e_7i76x1_7i77x1D.bit
09/12/2014 03:26 PM 464,302 7i76e_JUSTIO.bit
09/12/2014 02:59 PM 464,302 7i76e_7i76x3D.bit
12/04/2014 03:33 PM 464,301 7i76e_fallback.bit
06/30/2016 12:21 PM 464,301 7i76e_7i76x1_7i85x1_7i85sx1D.bit
12/13/2016 04:44 PM 464,301 7i76e_7i76x1_7i85x1D.bit
12/14/2016 03:43 PM 464,301 7i76e_7i76x1_7i85sx1D.bit
05/18/2017 11:19 AM 464,301 7i76e_7i76x1_bstechx2d.bit
06/29/2018 10:14 AM 464,301 7i76e_7i76x1_7i74x1SSID.bit
07/18/2018 04:48 PM 464,301 7i76e_7i76x1pD.bit
07/26/2019 05:02 PM 464,301 7i76e_7i76x1_7i78x1D.bit
07/02/2019 04:33 PM 464,301 7i76e_7i76x1_7i77x1_7i85sx1d.bit
Please Log in to join the conversation.
hm2_7i76e.0.pwm_frequency stil does not exist.
So,
i changed:
to
Its accepting it.
now.
parameter or pin hm2_7i76e.0.pwmgen.00.output_mode 2 not found.
also hm2_7i76e.0.pwmgen.00.output-type does not work here.
see more in Hal file
Please Log in to join the conversation.
That has the correct names
(its much easier to list the actual names and copy/paste them into the hal file rather than attempt to type them in correctly)
Please Log in to join the conversation.
