- Posts: 7368
- Thank you received: 2181
Motor encoder scaling
- cmorley
- Offline
- Moderator
-
Less
More
6 years 2 days ago - 6 years 2 days ago #187741
by cmorley
Replied by cmorley on topic Motor encoder scaling
You can't change the scale to tune the axes.
You must set the scale so the DRO and movement are in agreement.
Then you tune the PID
You must set the scale so the DRO and movement are in agreement.
Then you tune the PID
Last edit: 6 years 2 days ago by cmorley.
Please Log in or Create an account to join the conversation.
- PMCD
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 0
6 years 2 days ago #187745
by PMCD
Replied by PMCD on topic Motor encoder scaling
When I did that the motors went nuts. 3 tonnes of machine jumping around aint pretty. I don't know where to start in PID when they are doing that.
So after checking the raw encoder count of 8000 (as Tommy instructed) how do I utilize that in the axis scaling? I'm obviously missing something.
This is the last setup I tried and would continue on PID tuning but the DRO/Machine scaling is way out.
Z MKD041 encoder scale 24000
Y MKD041 encoder scale 24000
X MKD071 encoder scale 32000
Peter
So after checking the raw encoder count of 8000 (as Tommy instructed) how do I utilize that in the axis scaling? I'm obviously missing something.
This is the last setup I tried and would continue on PID tuning but the DRO/Machine scaling is way out.
Z MKD041 encoder scale 24000
Y MKD041 encoder scale 24000
X MKD071 encoder scale 32000
Peter
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
6 years 2 days ago #187746
by cmorley
Replied by cmorley on topic Motor encoder scaling
See my last message 
Axis scaling is what linuxcnc uses to know how much to move to get to a requested position. It must be correct and there is only one correct setting.
PID tuning is what linuxcnc uses to correct the requested command based on the current feedback position (ie smooth accurate movement)
Untuned position loop can be very violent.
I suggest googling linuxcnc PID tuning.
Unfortunately it's a little black magic and the best information is spread around in wikis and forum posts
eg:
wiki.linuxcnc.org/cgi-bin/wiki.pl?PWM_Servo_Amplifiers
Chris
Axis scaling is what linuxcnc uses to know how much to move to get to a requested position. It must be correct and there is only one correct setting.
PID tuning is what linuxcnc uses to correct the requested command based on the current feedback position (ie smooth accurate movement)
Untuned position loop can be very violent.
I suggest googling linuxcnc PID tuning.
Unfortunately it's a little black magic and the best information is spread around in wikis and forum posts
eg:
wiki.linuxcnc.org/cgi-bin/wiki.pl?PWM_Servo_Amplifiers
Chris
Please Log in or Create an account to join the conversation.
- PMCD
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 0
6 years 2 days ago #187747
by PMCD
Replied by PMCD on topic Motor encoder scaling
Does the raw encoder (8000/rev) count have anything to do with how I scale the axis.
Peter.
Peter.
Please Log in or Create an account to join the conversation.
- cmorley
- Offline
- Moderator
-
Less
More
- Posts: 7368
- Thank you received: 2181
6 years 2 days ago #187751
by cmorley
Replied by cmorley on topic Motor encoder scaling
yes. scale means counts per unit of travel ie 20000 counts per inch
This 'counts' includes any encoder counts, gearing, lead screw pitch and or electronic dividing of the encoder counts.
ie A motor with a 2000 counts per revolution encoder tied directly to a 10 revolution per inch lead screw(10 tpi) = 20000 scale
2000 X 10 = 20000 counts per inch
same thing but wiih a 2:1 gear ratio added between the motor and lead screw:
2000 (encoder counts) X 10 (10 TPI) X 2 (gear ratio) = 40000 counts per inch
Chris
This 'counts' includes any encoder counts, gearing, lead screw pitch and or electronic dividing of the encoder counts.
ie A motor with a 2000 counts per revolution encoder tied directly to a 10 revolution per inch lead screw(10 tpi) = 20000 scale
2000 X 10 = 20000 counts per inch
same thing but wiih a 2:1 gear ratio added between the motor and lead screw:
2000 (encoder counts) X 10 (10 TPI) X 2 (gear ratio) = 40000 counts per inch
Chris
Please Log in or Create an account to join the conversation.
- PMCD
- Offline
- Senior Member
-
Less
More
- Posts: 41
- Thank you received: 0
6 years 2 days ago #187753
by PMCD
Replied by PMCD on topic Motor encoder scaling
I understand what your saying but I cant get to work in Pncconf.
Peter
Peter
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 2.991 seconds