Stuck configuring 5i25 to run G540
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 18563
- Thank you received: 6220
02 Jul 2020 12:10 #173404
by tommylight
Replied by tommylight on topic Stuck configuring 5i25 to run G540
Is the charge pump on the G540 switched off ?
If you want to use it, i think it will need another stepgen set as a charge pump.
For testing you can switch it off, that should cause the motors to lock when powered and should also move when jogging/working.
If you want to use it, i think it will need another stepgen set as a charge pump.
For testing you can switch it off, that should cause the motors to lock when powered and should also move when jogging/working.
Please Log in or Create an account to join the conversation.
06 Jul 2020 18:41 #173765
by naja452
Replied by naja452 on topic Stuck configuring 5i25 to run G540
I've had a feeling that the card might be damaged, but didn't want to assume that yet.
I was mistaken, it's actually pin 15 that isn't working.
I tested pins 13 through 16 using a jumper with the parallel cable disconnected. 13, 14, and 16 all worked perfectly, but 15 did not change.
I also started a minimal Hal configuration to check the gpio pull up in this is what I got, it seems off.
Hal commands:
loadrt hostmot2
loadrt hm2_pci
loadrt threads name2=test2 period2=1000000
addf hm2_5i25.0.write test2
addf hm2_5i25.0.read test2
loadusr halshow
Here's a screenshot of halshow
photos.app.goo.gl/GxyBye9QieFomEni8
I was mistaken, it's actually pin 15 that isn't working.
I tested pins 13 through 16 using a jumper with the parallel cable disconnected. 13, 14, and 16 all worked perfectly, but 15 did not change.
I also started a minimal Hal configuration to check the gpio pull up in this is what I got, it seems off.
Hal commands:
loadrt hostmot2
loadrt hm2_pci
loadrt threads name2=test2 period2=1000000
addf hm2_5i25.0.write test2
addf hm2_5i25.0.read test2
loadusr halshow
Here's a screenshot of halshow
photos.app.goo.gl/GxyBye9QieFomEni8
Please Log in or Create an account to join the conversation.
06 Jul 2020 18:44 #173766
by naja452
Replied by naja452 on topic Stuck configuring 5i25 to run G540
Is there a firmware I can flash to the 5i25 to check all the pin's function? Have them all generate a pulse or something like that?
Please Log in or Create an account to join the conversation.
07 Jul 2020 02:04 #173806
by PCW
Replied by PCW on topic Stuck configuring 5i25 to run G540
You would have to disable all the stepgens and pwmgens to guarantee that all I/O pins
are left as GPIO:
loadrt hm2_pci config = " num_stepgens=0 num_pwmgens=0"
are left as GPIO:
loadrt hm2_pci config = " num_stepgens=0 num_pwmgens=0"
Please Log in or Create an account to join the conversation.
07 Jul 2020 02:12 #173807
by naja452
Replied by naja452 on topic Stuck configuring 5i25 to run G540
Ok, big update.
I flashed the fallback bitfile to the 5i25, started up the Hal shell and tried flipping all the pin's on and off as well as driving them as inputs.
Every pin functioned as expected with the exception of gpio.015 (DB pin 12). That pin is stuck at 2 ish volts and doesn't respond to anything. It seems hosed, but all the rest seem good.
I also scoped DB pins 2 and 3 (x step+dir) to see what was going on.
The direction pin is acting really odd
I'll attach a video of the troubleshooting in a few minutes.
I flashed the fallback bitfile to the 5i25, started up the Hal shell and tried flipping all the pin's on and off as well as driving them as inputs.
Every pin functioned as expected with the exception of gpio.015 (DB pin 12). That pin is stuck at 2 ish volts and doesn't respond to anything. It seems hosed, but all the rest seem good.
I also scoped DB pins 2 and 3 (x step+dir) to see what was going on.
The direction pin is acting really odd
I'll attach a video of the troubleshooting in a few minutes.
Please Log in or Create an account to join the conversation.
07 Jul 2020 03:03 #173808
by naja452
Replied by naja452 on topic Stuck configuring 5i25 to run G540
Please Log in or Create an account to join the conversation.
07 Jul 2020 15:22 - 07 Jul 2020 15:57 #173853
by PCW
Replied by PCW on topic Stuck configuring 5i25 to run G540
Looks like some misconfiguration in the hal file
What is the servo thread period?
Can you post the hal/ini file set?
What is the servo thread period?
Can you post the hal/ini file set?
Last edit: 07 Jul 2020 15:57 by PCW.
Please Log in or Create an account to join the conversation.
07 Jul 2020 17:11 #173870
by naja452
Replied by naja452 on topic Stuck configuring 5i25 to run G540
They're already attached to the initial post, but here they are again.
Attachments:
Please Log in or Create an account to join the conversation.
07 Jul 2020 17:58 - 07 Jul 2020 18:00 #173877
by PCW
Replied by PCW on topic Stuck configuring 5i25 to run G540
I would try a standard 1 KHz servo thread
( note that this also means setting the P terms to 1000 )
( note that this also means setting the P terms to 1000 )
Last edit: 07 Jul 2020 18:00 by PCW.
Please Log in or Create an account to join the conversation.
07 Jul 2020 18:15 #173883
by naja452
Replied by naja452 on topic Stuck configuring 5i25 to run G540
I see that the servo period in the INI is 100 000 and the P terms are 10 000.
I'm guessing the servo period is in ns, so I would change the servo period to 1 000 000 for 1kHz?
I see that the P terms feed the pid gain setting in the hal file. so they need to be dropped by 10 as well. That makes sense.
Give me a few hours to get to the shop and test that.
I'm guessing the servo period is in ns, so I would change the servo period to 1 000 000 for 1kHz?
I see that the P terms feed the pid gain setting in the hal file. so they need to be dropped by 10 as well. That makes sense.
Give me a few hours to get to the shop and test that.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.093 seconds