Trying to set up position control mode

More
8 months 4 days ago #343538 by jblanscett
Hi all,

We are working on a retrofit of an older Fryer lathe. We are using a Mesa 7i95 board and are trying to connect our SGDH-10AE Yaskawa drivers to the board in position control mode. We have managed to make the axes move in what seems like position control, but when changing the jog speed in AXIS, it also changes where the motion stops. I believe that I have made a mistake, or many, in trying to set up our HAL code. We generated the HAL code from Pnfconf and then made adjustments to try to change the Stepgen to position control mode. I was hoping that we could get some help in looking at our Hal and Ini files to see where we may have gone wrong. Or if someone has successfully implemented it, we could look at their files to see if we can figure it out. 

Thanks!

Jblanscett

Please Log in to join the conversation.

More
8 months 4 days ago #343543 by tommylight
I suspect interference, so pictures of the wiring from Mesa to drives might help.
-
Why are there two posts with the same hardware and same issues by two members?
Are you the same team?
If yes, continue here.
Thank you.

Please Log in to join the conversation.

More
8 months 4 days ago #343548 by jblanscett
Yes, we are the same team. I have attached photos. We have also looked at the signals from an oscilloscope and are getting nice clear step waves.

Thanks for the quick reply!

Please Log in to join the conversation.

More
8 months 4 days ago #343553 by tommylight

We have also looked at the signals from an oscilloscope and are getting nice clear step waves.
Check at the drive side.

Please Log in to join the conversation.

More
8 months 4 days ago #343558 by jblanscett
I checked on the drive side and it looks clean as well.

Please Log in to join the conversation.

More
8 months 4 days ago #343560 by PCW
The wiring does not look right to me, Don't those drives have differential inputs?

If they are differential, the 7I95 Step/Dir connections are wrong.

Please Log in to join the conversation.

More
8 months 3 days ago #343596 by jblanscett
Hi PCW,

I hope this is what you are talking about. We have our pn200 setting set at 5. Let me know if there is anything else I'm missing. Thank you for your time.

 

Please Log in to join the conversation.

More
8 months 3 days ago #343605 by PCW
Do you have the step/dir pinout information for the drive?

It does look like it may be single ended from the pictures of the
step/dir modes.

Also in your .ini file, you have the PID P term set to 0.
This should be 1000 (for a 1 ms servo thread period)
A 0 P term will cause position drift

Please Log in to join the conversation.

More
8 months 3 days ago #343616 by jblanscett
Here is the connector layout. We have the P value set to 0 because we aren't able to get the axis to move when it is set at 1000. I thought we would try to get the motion working better before worrying about it. If we need to figure that out first, I can work on that first. 

Thanks,

-jblanscett

Please Log in to join the conversation.

More
8 months 3 days ago #343621 by PCW
1. A 0 P term will not work as it will drift it must be 1/servo_period
(1000 for a 1 ms servo thread period)

2. It looks like the step/dir inputs are differential so:

Drive        7I95
7   PULS    Step+
8  /PULS    Step-
11 SIGN     Dir
12 /SIGN    Dir-
 

Please Log in to join the conversation.

Time to create page: 0.057 seconds
Powered by Kunena Forum