Stuck configuring 5i25 to run G540

More
6 years 3 months ago #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.

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #173808 by naja452

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago - 6 years 3 months ago #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?
Last edit: 6 years 3 months ago by PCW.

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #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.

File Attachment:

File Name: Platform_5...07-3.hal
File Size:12 KB

File Attachment:

File Name: Platform_5...07-3.ini
File Size:5 KB

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago - 6 years 3 months ago #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 )
Last edit: 6 years 3 months ago by PCW.

Please Log in or Create an account to join the conversation.

More
6 years 3 months ago #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.

Please Log in or Create an account to join the conversation.

Moderators: cmorley
Time to create page: 0.147 seconds
Powered by Kunena Forum