Can't get Y2 motor axis to work. 5i25,7i76,g540

More
13 Oct 2014 23:46 #52047 by Imrtoy
I need your help guys.

I cannot get the Y2 axis to work. I wil problaby need one side inverted. I can get it to work using the stepper config and parport. But I want to use THC. So i bought the 5i25 with 7i76. I wired stepgen 00 to X axis, stepgen 01 to Y axis stepgen 02 to Y2, and Stepgen 03 to Z.

here are my files.

Plus I am reading Vol counts from the THCAD card, But getting no volts reading, so no THC. I used JT's files to create mine.

Any help will be greatly appreciated. Thanks!
Attachments:

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

More
14 Oct 2014 00:49 - 14 Oct 2014 01:16 #52055 by PCW
edit
Looks like the Y2 command is not connected in your hal file

the intention is there:

net y-pos-cmd => hm2_5i25.0.stepgen.02.position-cmd

but y-pos-cmd is not connected to anything
Last edit: 14 Oct 2014 01:16 by PCW.

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

More
14 Oct 2014 03:08 #52067 by Imrtoy
thats what pncconfig generated for me.

I dont know what else to put there. Everything I have tried has not worked yet.
Any Ideas?

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

More
14 Oct 2014 04:28 #52068 by PCW
Sure, you need to connect the Y2 stepgen's (stepgen2) position command input to motions y axis command output

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

More
14 Oct 2014 05:50 #52069 by Imrtoy
like this?

net y2-pos-fb <= hm2_5i25.0.stepgen.02.position-fb
net y-pos-cmd axis.1.motor-pos-cmd => hm2_5i25.0.stepgen.02.position-cmd
net y-enable axis.1.amp-enable-out => hm2_5i25.0.stepgen.02.enable

this still did not work.

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

More
14 Oct 2014 06:05 #52070 by PCW
probably more like

#net y2-pos-fb <= hm2_5i25.0.stepgen.02.position-fb ##commented out since this does nothing
net y-pos-cmd axis.1.motor-pos-cmd => hm2_5i25.0.stepgen.01.position-cmd hm2_5i25.0.stepgen.02.position-cmd
net y-enable axis.1.amp-enable-out => hm2_5i25.0.stepgen.01.enable hm2_5i25.0.stepgen.02.enable
The following user(s) said Thank You: Imrtoy

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

More
14 Oct 2014 19:47 #52089 by Imrtoy
That worked. But I had more problems. Took a while to figure them out.
1. Bad 5i25 out of the box. It would not output Stepgen 02 for nothing. Changed it and it worked.
(Going to try to re flash later)
2. Giop for y2 invert signal given by pncconfig, disables drive. Had to comment out to get it working.
3. Had to figure out how to invert drive by different way. Creating another axis_1 step_scale, renaming it and giving it a minus scale and assigning it to Y2 worked!

Now to tackle the THC not displaying volts, and try to understand the math from analog volts to encoder counts to back to volts and some how scale it right.

Thanks again PCW

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

More
14 Oct 2014 21:38 #52093 by PCW
Its more likely that the firmware on the 5I25 is not what you expected than a bad card

You can verify the cards firmware pinout with mesaflash:

sudo mesaflash --device 5i25 --readhmid

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

More
15 Oct 2014 07:19 #52110 by Imrtoy
the 5i25 card was originally installed with 7i78 softwae. i flashed it with 7i76. Maybe it didnt take very good. I will try to reflash it again later. Right now still trying to get the THC to work. I think I have not got the count to scale to voltage correct enough yet.

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

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