Mesa 5i20 with 7i40

More
11 Dec 2014 08:15 #53903 by fgauder
Mesa 5i20 with 7i40 was created by fgauder
Hello Gentlemen,

Once again, I show up as a lost ball in the high weeds seeking help. I have a new 2 axis controller set up using the Debian Live+Install with Mesa 5i20, 7i40H, and 7i37-TA boards. I used Pncconf to get going. All the I/O and the encoders work correctly. The 7i40 has a green (CR6) and a yellow (CR1) LED that are lit. It's also connected to a 60V power supply. If I tell either axis to Home of try to jog them, I get a joint following error. However, it doesn't appear that anything trys to move, and I don't get any kind of blip on my voltage meter across the motor leads.

Frank

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

More
11 Dec 2014 19:07 #53911 by andypugh
Replied by andypugh on topic Mesa 5i20 with 7i40
Can you attach the HAL file?

It might be instructive to halscope hm2_5i20.0.pwmgen.00.enable and hm2_5i20.0.pwmgen.00.value

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

More
11 Dec 2014 21:09 #53918 by fgauder
Replied by fgauder on topic Mesa 5i20 with 7i40
Andy,

I've attached the HAL file. The enable pins are true when the machine is reset and switch with the following errors. The values never change from 0.
Attachments:

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

More
11 Dec 2014 21:16 #53919 by andypugh
Replied by andypugh on topic Mesa 5i20 with 7i40

The values never change from 0.


One possibility is zeros in the INI for
[AXIS_0]OUTPUT_SCALE
[AXIS_0]ENCODER_SCALE
[AXIS_0]P
[AXIS_0]MAX_OUTPUT

(Does "P" match the name of the INI file entry?)

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

More
11 Dec 2014 22:16 #53923 by fgauder
Replied by fgauder on topic Mesa 5i20 with 7i40
[AXIS_0]OUTPUT_SCALE --- 10
[AXIS_0]ENCODER_SCALE --- Correct
[AXIS_0]P --- 5
[AXIS_0]MAX_OUTPUT --- 10

I set my following errors to .5" to have more time before an error and the pwmgen values do change but they never go over .2. I still don't get a reading on the motor leads, even on the 200mv range.

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

More
11 Dec 2014 22:19 #53924 by andypugh
Replied by andypugh on topic Mesa 5i20 with 7i40
Which firmware are you using?
Can you paste the FPGA-card pinout listing from dmesg? (it will be near the end)

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

More
11 Dec 2014 23:42 #53930 by fgauder
Replied by fgauder on topic Mesa 5i20 with 7i40
firmware=hm2/5i20/SVST2_8.bit

By moving the P factor up to 15 I got the motors running.

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

More
11 Dec 2014 23:50 #53931 by andypugh
Replied by andypugh on topic Mesa 5i20 with 7i40

By moving the P factor up to 15 I got the motors running.


With a following error of 0.2" and a PGain of 10 you would expect an output of 2V from the pwmgen (assumuing a pwmgen scale of 10) at the f-error limit.

But that simple calculation also seems to indicate that 15 is much too low too. If you are 0.2" from setpoint you probably want to be well into max motor power.

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

More
12 Dec 2014 01:56 #53934 by fgauder
Replied by fgauder on topic Mesa 5i20 with 7i40
Andy,

Thanks for your insight and help. I ended up with P=400 and all seems to be well. I've only tuned analog controllers before and anything above P=20 got unstable.

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

More
12 Dec 2014 02:51 #53935 by PCW
Replied by PCW on topic Mesa 5i20 with 7i40
For bare Hbridge drives you typically need FF1 to compensate for the motors back-EMF
You adjust FF1 by doing long, high speed slews and zeroing the position lead/lag during
constant speed motion (I term must be 0 for this adjustment)

You will want as much D as you can get away with.
Once tuning is really close, you can add I term to eliminate static errors and reduce errors
at constant speeds.

You can typically get better performance (higher stable D and P terms) with Hbridges if you
increase the servo thread rate to 2 or 4 KHz (how high you can go depends on your CPU)

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

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