- Posts: 41
- Thank you received: 0
Motor encoder scaling
The machine has Indramat motors:
MKD 071 on the X (resolver feedback, not absolute)
MKD 041 on the Y and Z (resolver feedback, not absolute)
I've been able to scale them so when I move each axis by hand the distance corresponds with the DRO. The trouble is I'm unsure what to use for the encoder scaling in PncConf. Encoder lines per revolution and encoder pulses per unit.
They jog around ok in the open loop test.
The attached image is an extract from the link below (page 130).
Attachment not found
www.magnaproducts.com/wp-content/uploads...anual_compressed.pdf
Thanks as always
Peter
Please Log in to join the conversation.
If you have figured out scaling even by hand you can enter that number in pncconf.
You don't need to 'calculate scale' - that's just for convenience.
The scaling should be in pules per unit.
Please Log in to join the conversation.
Therefore if servos are jumping around it has nothing to do with the axis scale calculation in PncConf.
Please Log in to join the conversation.
servos jumping around can be many things. ie the default PID tuning in pncconf does no adjustments.
typically you would set the perimeters in pncconf motor page and then use the openloop test to confirm encoder/motor direction and you can confirm the scaling is at least close. Motor and encode direction is very important.
Chris
Please Log in to join the conversation.
cmorley wrote: I'm saying you don't need to use pncconf's scale calculation pop up - you can enter scale directly.
servos jumping around can be many things. ie the default PID tuning in pncconf does no adjustments.
typically you would set the perimeters in pncconf motor page and then use the openloop test to confirm encoder/motor direction and you can confirm the scaling is at least close. Motor and encode direction is very important.
Chris
The motors work fine in the open loop test but there is no control at all working in axis so I can't even attempt to jog them.
They are powerful motors and very violent.
I'll recheck some wiring tomorrow.
Please Log in to join the conversation.
pushing the plus key should make the encoder count positively.
The motor should move the axis in the proper direction. The help diagram should help you figure out the proper direction.
very important as you can get a run away under PID control if not set up right.
After that it requires PID tuning which is easiest in AXIS using the calibration dialog.
Chris
Please Log in to join the conversation.
I have the analogue enables for x and y pulled from the 7I77 board.
Using only the z motor which is uncoupled from the axis, I enabled the servos and the motor drifts at about 2rpm then toggled F2. There is a quick jerk of the motor then a 'joint following error" on the screen.
should I play with PID tuning now?
Peter
Please Log in to join the conversation.
its likely you have the feedback reversed.
Here is a basic tuning sequence for velocity mode drives:
gnipsel.com/linuxcnc/tuning/servo.html
Please Log in to join the conversation.
Attachment not found
Attachment not found
Attachment not found
Peter
Please Log in to join the conversation.
From the attached document in my original post is there a correct figure I should be using in the encoder scale.
The last number I tried was 24576 for MKD041 motor
Peter
Please Log in to join the conversation.
