5i25 with 7i77
- tommylight
- Away
- Moderator
Less
More
- Posts: 19219
- Thank you received: 6440
29 Mar 2019 01:57 #129877
by tommylight
Replied by tommylight on topic 5i25 with 7i77
forum.linuxcnc.org/10-advanced-configura...ning-detailed-how-to
All the info on 7i77 servo wiring and testing and tuning.
All the info on 7i77 servo wiring and testing and tuning.
Please Log in or Create an account to join the conversation.
29 Mar 2019 03:13 #129878
by cmorley
To relate this to pncconf's 'open loop' test - it will drift because there is no PID connected.
The open loop test to to test/conform the feedback and command direction.
When you press the positive button the the feedback should count positively and the axis should move positively.
You can also confirm the scaling is right.
Once you confirm this then you should tune PID in AXIS.
Chris M
Replied by cmorley on topic 5i25 with 7i77
A couple things:
1. Expect analog drives to drift somewhat if the loop is not closed
This should not be an issue since the drives should not be enabled
until linuxCNC is running and the position feedback loop is closed.
(actually getting the drive enables working is the first thing to do)
2. When you first connect the drives and enable feedback, you may have the feedback reversed so the drives runaway (till you get a following error)
You should follow setup/tuning instructions like JTs here:
gnipsel.com/linuxcnc/tuning/servo.html
To relate this to pncconf's 'open loop' test - it will drift because there is no PID connected.
The open loop test to to test/conform the feedback and command direction.
When you press the positive button the the feedback should count positively and the axis should move positively.
You can also confirm the scaling is right.
Once you confirm this then you should tune PID in AXIS.
Chris M
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
29 Mar 2019 14:06 - 29 Mar 2019 14:10 #129896
by Todd Zuercher
Replied by Todd Zuercher on topic 5i25 with 7i77
To change the sign of the analog outputs, change the sign of the output scale in the ini file, this reverses the direction that the servo is commanded. The output scale in the ini file sets the value for the hal pin hm2_5i25.0.7i77.0.1.analogoutN-scalemax
Last edit: 29 Mar 2019 14:10 by Todd Zuercher.
Please Log in or Create an account to join the conversation.
30 Mar 2019 00:00 #129934
by andypugh
It means to do it in software. Specifically by using a negative number for the analogue output scale or for the encoder position scale.
(Change the encoder scale if the encoder counts backwards, ie if turning the screw by hand has he position counting in the wrong direction. Tool-Right / Table left should count up in X, for example.
Replied by andypugh on topic 5i25 with 7i77
Can you elaborate on what he means by "change the sign of the analog outputs." The first thing that comes to my mind is the +-10v analog output and the associated 0v com wire.
It means to do it in software. Specifically by using a negative number for the analogue output scale or for the encoder position scale.
(Change the encoder scale if the encoder counts backwards, ie if turning the screw by hand has he position counting in the wrong direction. Tool-Right / Table left should count up in X, for example.
Please Log in or Create an account to join the conversation.
- NauticalMachinest
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
05 Apr 2019 01:25 #130323
by NauticalMachinest
Replied by NauticalMachinest on topic 5i25 with 7i77
After working with the machine a bit more I have been unable to find any error in the wiring. When I inverted either the motor or encoder signals, I get an actual runaway servo with the classic characteristics. What I am experiencing does not appear a runaway servo. I am a bit perplexed as to what is going on at this point so I will have to spend the weekend troubleshooting a bit deeper. I will check for stray electrical signals and EMI to the best of my abilities. I have an old analog oscilloscope that I will try my best to examine the waveform coming out of the encoders with. Any suggestions on other things to check for or any pertinent information in general? All help is greatly appreciated
Please Log in or Create an account to join the conversation.
05 Apr 2019 02:16 #130325
by PCW
Replied by PCW on topic 5i25 with 7i77
I would verify that the encoders are scaled properly and do not have a noise problem or lose/gain counts.
You can check this even without the linear axis connected by checking the rawcounts pin in hal after multiple turns of the shaft (with an alignment mark/tape on the shaft) every rotation should end up being different by the number of encoder counts/turn
(4X the encoder PPR)
Also you must change the sign of the output scale in the ini file to reverse the outputs
_DO NOT_ swap the drive leads since if the drive has a common input and you wire AOUTx to that pin you will short out the 7I77 analog output.
Setting the following error quite large will help diagnose feedback issues
For initial PID values, I would use a small P (say .1) and everything else 0
Then a halscope plot of commanded position, encoder position and analog out
would help remote diagnosis of whats going on...
You can check this even without the linear axis connected by checking the rawcounts pin in hal after multiple turns of the shaft (with an alignment mark/tape on the shaft) every rotation should end up being different by the number of encoder counts/turn
(4X the encoder PPR)
Also you must change the sign of the output scale in the ini file to reverse the outputs
_DO NOT_ swap the drive leads since if the drive has a common input and you wire AOUTx to that pin you will short out the 7I77 analog output.
Setting the following error quite large will help diagnose feedback issues
For initial PID values, I would use a small P (say .1) and everything else 0
Then a halscope plot of commanded position, encoder position and analog out
would help remote diagnosis of whats going on...
Please Log in or Create an account to join the conversation.
- NauticalMachinest
- Offline
- New Member
Less
More
- Posts: 9
- Thank you received: 0
05 Apr 2019 02:46 #130327
by NauticalMachinest
Replied by NauticalMachinest on topic 5i25 with 7i77
Could you elaborate a little bit about how to verify that the encoders are scaled properly? There is a label on the encoder cover that reads LHE-509-2000, so I am tempted to assume that model number indicates a PPR of 2000. I am a little unclear about what you mean in regards to 4x the encoder PPR, could you elaborate on that equation a bit?
Turning down the P value should be very interesting because the only values I have attempted in that parameter so far have been 50 +- 10.
Turning down the P value should be very interesting because the only values I have attempted in that parameter so far have been 50 +- 10.
Please Log in or Create an account to join the conversation.
05 Apr 2019 12:52 #130337
by andypugh
Open a halmeter and look for the encoder rawcounts pin.
Then (with the amps turned off) rotate the servo shaft by hand and note the difference in rawcounts per rev.
The work out from the mechanics how many counts / mm or counts / inch and that;s your scale. Pay attention to sign as well as magnitude.
If you do 10 turns you will be able to be pretty certain if it is 2000 or 2048 counts per rev.
Replied by andypugh on topic 5i25 with 7i77
Could you elaborate a little bit about how to verify that the encoders are scaled properly?
Open a halmeter and look for the encoder rawcounts pin.
Then (with the amps turned off) rotate the servo shaft by hand and note the difference in rawcounts per rev.
The work out from the mechanics how many counts / mm or counts / inch and that;s your scale. Pay attention to sign as well as magnitude.
If you do 10 turns you will be able to be pretty certain if it is 2000 or 2048 counts per rev.
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Away
- Platinum Member
Less
More
- Posts: 5007
- Thank you received: 1441
05 Apr 2019 13:32 #130338
by Todd Zuercher
The PPR "pulses per revolution" usually refers to the number of lines on the encoder wheel. Linuxcnc does not count the pulses, it counts the edges of the pulses of both sensors. So it will count 4 edges for each line of the encoder and wheel that is what the "quadrature" term is referring to. So with a 2000 PPR encoder, Linuxcnc will see 8000 counts per turn.
Replied by Todd Zuercher on topic 5i25 with 7i77
Could you elaborate a little bit about how to verify that the encoders are scaled properly? There is a label on the encoder cover that reads LHE-509-2000, so I am tempted to assume that model number indicates a PPR of 2000. I am a little unclear about what you mean in regards to 4x the encoder PPR, could you elaborate on that equation a bit?
The PPR "pulses per revolution" usually refers to the number of lines on the encoder wheel. Linuxcnc does not count the pulses, it counts the edges of the pulses of both sensors. So it will count 4 edges for each line of the encoder and wheel that is what the "quadrature" term is referring to. So with a 2000 PPR encoder, Linuxcnc will see 8000 counts per turn.
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.144 seconds