emcoturn 120 / 220 tool turret hal outputs
29 Jul 2019 16:45 - 29 Jul 2019 18:26 #140894
by Erikcnc
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?
Replied by Erikcnc on topic emcoturn 120 / 220 tool turret hal outputs
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?
Last edit: 29 Jul 2019 18:26 by Erikcnc.
Please Log in or Create an account to join the conversation.
- tommylight
- Away
- Moderator
Less
More
- Posts: 19200
- Thank you received: 6436
29 Jul 2019 16:50 #140895
by tommylight
Replied by tommylight on topic emcoturn 120 / 220 tool turret hal outputs
Might be better to wait fro PCW to answer that.
IIRC, it should be on step/dir pins for the 5'th stepgen, but i might be mistaken.
IIRC, it should be on step/dir pins for the 5'th stepgen, but i might be mistaken.
The following user(s) said Thank You: Erikcnc
Please Log in or Create an account to join the conversation.
29 Jul 2019 17:11 - 29 Jul 2019 17:15 #140898
by PCW
Replied by PCW on topic emcoturn 120 / 220 tool turret hal outputs
You do not want to loadrt pwmgen at all, because you are going to be using the hardware pwmgen, not a software pwmgen
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
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
Last edit: 29 Jul 2019 17:15 by PCW.
The following user(s) said Thank You: tommylight, Erikcnc
Please Log in or Create an account to join the conversation.
29 Jul 2019 18:37 - 29 Jul 2019 18:38 #140910
by Erikcnc
Replied by Erikcnc on topic emcoturn 120 / 220 tool turret hal outputs
i get the error: hm2_7i76e.0.pwm_frequency does not exist
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?
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?
Last edit: 29 Jul 2019 18:38 by Erikcnc.
Please Log in or Create an account to join the conversation.
29 Jul 2019 18:44 #140912
by PCW
Replied by PCW on topic emcoturn 120 / 220 tool turret hal outputs
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?
The following user(s) said Thank You: Erikcnc
Please Log in or Create an account to join the conversation.
29 Jul 2019 19:18 - 29 Jul 2019 19:19 #140915
by PCW
Replied by PCW on topic emcoturn 120 / 220 tool turret hal outputs
Here are the 7i76e PWM related pin and parameter names I get:via halcmd
I did have to change the search for pwm to pwmgen since halcmds
wildcard search apparently does not work with partial words
I did have to change the search for pwm to pwmgen since halcmds
wildcard search apparently does not work with partial words
pcw@HP-8300 ~/linuxcnc/configs $ halcmd show pin *pwmgen*
Component Pins:
Owner Type Dir Value Name
23 bit IN FALSE hm2_7i76e.0.pwmgen.00.enable
23 float IN 0 hm2_7i76e.0.pwmgen.00.value
pcw@HP-8300 ~/linuxcnc/configs $ halcmd show param *pwmgen*
Parameters:
Owner Type Dir Value Name
23 bit RW FALSE hm2_7i76e.0.pwmgen.00.out0.invert_output
23 bit RW FALSE hm2_7i76e.0.pwmgen.00.out0.is_opendrain
23 bit RW FALSE hm2_7i76e.0.pwmgen.00.out1.invert_output
23 bit RW FALSE hm2_7i76e.0.pwmgen.00.out1.is_opendrain
23 s32 RW 1 hm2_7i76e.0.pwmgen.00.output-type
23 float RW 1 hm2_7i76e.0.pwmgen.00.scale
23 u32 RW 0x00004E20 hm2_7i76e.0.pwmgen.pdm_frequency
23 u32 RW 0x00004E20 hm2_7i76e.0.pwmgen.pwm_frequency
Last edit: 29 Jul 2019 19:19 by PCW.
The following user(s) said Thank You: Erikcnc
Please Log in or Create an account to join the conversation.
30 Jul 2019 18:17 - 30 Jul 2019 18:18 #140966
by Erikcnc
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
Replied by Erikcnc on topic emcoturn 120 / 220 tool turret hal outputs
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
Last edit: 30 Jul 2019 18:18 by Erikcnc.
Please Log in or Create an account to join the conversation.
30 Jul 2019 19:07 #140969
by PCW
Replied by PCW on topic emcoturn 120 / 220 tool turret hal outputs
its in the current 7i80.zip file:
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
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
The following user(s) said Thank You: Erikcnc
Please Log in or Create an account to join the conversation.
31 Jul 2019 15:58 - 31 Jul 2019 16:07 #141011
by Erikcnc
Replied by Erikcnc on topic emcoturn 120 / 220 tool turret hal outputs
this part is DONE.
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
hm2_7i76e.0.pwm_frequency stil does not exist.
So,
i changed:
hm2_7i76e.0.pwm_frequency
to
hm2_7i76e.0.pwmgen.pwm_frequency
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
Last edit: 31 Jul 2019 16:07 by Erikcnc.
Please Log in or Create an account to join the conversation.
31 Jul 2019 17:33 - 31 Jul 2019 17:36 #141018
by PCW
Replied by PCW on topic emcoturn 120 / 220 tool turret hal outputs
Did you look at the pin and parameter list from my previous post?
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)
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)
Last edit: 31 Jul 2019 17:36 by PCW.
The following user(s) said Thank You: Erikcnc
Please Log in or Create an account to join the conversation.
Time to create page: 0.121 seconds