5i25 + 7i85s +....
16 Nov 2016 16:55 #82867
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
I change the state from high to low and continues 0 V. From low to high and continues 0 V.
The Pin 14 ( non-TX7 ) is always 5 V.
When i set num_stepgens=4, the PIN13 is always 5 V. So i guess the PIN isnt damaged, but there is something that blocks me to control it.
Thank you.
The Pin 14 ( non-TX7 ) is always 5 V.
When i set num_stepgens=4, the PIN13 is always 5 V. So i guess the PIN isnt damaged, but there is something that blocks me to control it.
Thank you.
Please Log in or Create an account to join the conversation.
16 Nov 2016 17:10 #82868
by PCW
Replied by PCW on topic 5i25 + 7i85s +....
Very strange, maybe something wrong in the hal file
Please Log in or Create an account to join the conversation.
16 Nov 2016 17:31 #82870
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
Ok, tomorrow i will try with STX0, the outoput of SERIAL of the 7i85s. Is this PIN suitable for my needs??
Another question, when i will install the 5i25_7i85sspx2i.bit, will i be able to use TX7 for ENABLE and TX6 for PWM, or TX7 wont be able to do gpio??
Thank you!!
Another question, when i will install the 5i25_7i85sspx2i.bit, will i be able to use TX7 for ENABLE and TX6 for PWM, or TX7 wont be able to do gpio??
Thank you!!
Please Log in or Create an account to join the conversation.
16 Nov 2016 21:28 #82875
by PCW
Replied by PCW on topic 5i25 + 7i85s +....
Just tried this here:
LinuxCNC 2.7.7, Debian Wheezy
5I25 --> P3 --> 7I85S
5i25_7i85sx2.bit config, 3 stepgens enabled
setp hm2_5i25.0.gpio.002.is_output true
setp hm2_5i25.0.gpio.002.out true
setp hm2_5i25.0.gpio.002.out false
toggle 7I85S TB1 pins 13/14
setp hm2_5i25.0.gpio.003.is_output true
setp hm2_5i25.0.gpio.003.out true
setp hm2_5i25.0.gpio.003.out false
toggle 7I85S TB1 pins 11/12
LinuxCNC 2.7.7, Debian Wheezy
5I25 --> P3 --> 7I85S
5i25_7i85sx2.bit config, 3 stepgens enabled
setp hm2_5i25.0.gpio.002.is_output true
setp hm2_5i25.0.gpio.002.out true
setp hm2_5i25.0.gpio.002.out false
toggle 7I85S TB1 pins 13/14
setp hm2_5i25.0.gpio.003.is_output true
setp hm2_5i25.0.gpio.003.out true
setp hm2_5i25.0.gpio.003.out false
toggle 7I85S TB1 pins 11/12
Please Log in or Create an account to join the conversation.
17 Nov 2016 17:24 #82908
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
With STXO works.
I have flashed the 5i25 with mesaflash too.
Tomorow i will continue with the HAL file to set the pwmgen correctly.
Thank you for your support.
I have flashed the 5i25 with mesaflash too.
Tomorow i will continue with the HAL file to set the pwmgen correctly.
Thank you for your support.
Please Log in or Create an account to join the conversation.
21 Nov 2016 18:22 #83088
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
Hello again,
Im trying to make the HAL file to work.
I have wired the STX0 to ENABLE of SPIN1X and works nice.
I have wired TX7 to PWM and TX6 to DIR.
This is my lines of the HAL file:
setp hm2_5i25.0.gpio.001.is_output 1
net spindle-enable motion.spindle-on => hm2_5i25.0.gpio.001.out hm2_5i25.0.pwmgen.00.enable
net spindle-speed-cmd motion.spindle-speed-out => hm2_5i25.0.pwmgen.00.value
setp hm2_5i25.0.pwmgen.00.scale 17500
When i click in the clockwise button of linuxcnc, the SPIN1X lights the LED of ENABLE and SPEED.
When i click in the anti-clockwise button of linuxcnc, the SPIN1X just lights the ENABLE.
Can i use the TX6 for the direction?? My TX6 is always high no matter which button (anti or clockwise) i press.
Thank you.
Im trying to make the HAL file to work.
I have wired the STX0 to ENABLE of SPIN1X and works nice.
I have wired TX7 to PWM and TX6 to DIR.
This is my lines of the HAL file:
setp hm2_5i25.0.gpio.001.is_output 1
net spindle-enable motion.spindle-on => hm2_5i25.0.gpio.001.out hm2_5i25.0.pwmgen.00.enable
net spindle-speed-cmd motion.spindle-speed-out => hm2_5i25.0.pwmgen.00.value
setp hm2_5i25.0.pwmgen.00.scale 17500
When i click in the clockwise button of linuxcnc, the SPIN1X lights the LED of ENABLE and SPEED.
When i click in the anti-clockwise button of linuxcnc, the SPIN1X just lights the ENABLE.
Can i use the TX6 for the direction?? My TX6 is always high no matter which button (anti or clockwise) i press.
Thank you.
Please Log in or Create an account to join the conversation.
21 Nov 2016 20:05 #83093
by andypugh
Replied by andypugh on topic 5i25 + 7i85s +....
Which GPIO do TX6, TX7 and STX0 correspond to?
Perhaps your pwmgen is not set to PWM / DIR but instead is in UP / DOWN mode?
Perhaps your pwmgen is not set to PWM / DIR but instead is in UP / DOWN mode?
Please Log in or Create an account to join the conversation.
21 Nov 2016 20:44 #83096
by PCW
Replied by PCW on topic 5i25 + 7i85s +....
With the 7i85ssp config TX7 is PWM and TX6 is direction
Please Log in or Create an account to join the conversation.
22 Nov 2016 08:40 #83112
by casetero
Replied by casetero on topic 5i25 + 7i85s +....
The one who is GPIO is STXO, is used as ENABLE for SPIN1X.
The other two are part of pwmgen, TX7 is PWM and TX6 is DIR.
I´ve set the output_type = 1, being PWM and DIR.
But the thing is that TX6 is always HIGH no matter which button (clock or anti) i press.
The other two are part of pwmgen, TX7 is PWM and TX6 is DIR.
I´ve set the output_type = 1, being PWM and DIR.
But the thing is that TX6 is always HIGH no matter which button (clock or anti) i press.
Please Log in or Create an account to join the conversation.
22 Nov 2016 09:06 #83113
by andypugh
Can you check that the pwmgen sees a negative input value in the reverse direction?
Replied by andypugh on topic 5i25 + 7i85s +....
But the thing is that TX6 is always HIGH no matter which button (clock or anti) i press.
Can you check that the pwmgen sees a negative input value in the reverse direction?
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.108 seconds