5i25 + 7i85s +....

More
9 years 11 months ago #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.

Please Log in to join the conversation.

More
9 years 11 months ago #82868 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
Very strange, maybe something wrong in the hal file

Please Log in to join the conversation.

More
9 years 11 months ago #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!!

Please Log in to join the conversation.

More
9 years 11 months ago #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

Please Log in to join the conversation.

More
9 years 11 months ago #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.

Please Log in to join the conversation.

More
9 years 11 months ago #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.

Please Log in to join the conversation.

More
9 years 11 months ago #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?

Please Log in to join the conversation.

More
9 years 11 months ago #83096 by PCW
Replied by PCW on topic 5i25 + 7i85s +....
With the 7i85ssp config TX7 is PWM and TX6 is direction

Please Log in to join the conversation.

More
9 years 11 months ago #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.

Please Log in to join the conversation.

More
9 years 11 months ago #83113 by andypugh
Replied by andypugh on topic 5i25 + 7i85s +....

casetero wrote: 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 to join the conversation.

Time to create page: 0.505 seconds
Powered by Kunena Forum