5i20 configure for step/dir + encoder
I need to configure 5i20 card. I have servo with step/dir pulses, but at the same time I have
3 signal (A,B,Z) from this drive.
I used pncconf. Configure 2 encoders (lathe), 2 step generators. But pncconf tell me "You foget assign pwm for X,Z".
What I need to do?
Please Log in or Create an account to join the conversation.
However, I would be tempted to create some dummy pwms and then hand-edit the HAL to remove them again.
You want whatever is linked to the PWM inputs to connect instead to the stepgen inputs.
Please Log in or Create an account to join the conversation.
encoder feedback with steppers is not supported out of the box.
assign a custom name for the encoders (such as "x-feedback" don't use spaces) and configure / connect them in the custom HAL file.
not sure if your looking just to be able to read the feedback or use it to stop on following error or even try to correct following error.
Please Log in or Create an account to join the conversation.
You are confusing pncconf by asking for stepgens with encoders for each axes.
encoder feedback with steppers is not supported out of the box.
It possibly ought to be, as step-direction servo drives are not all that uncommon (even if they do put the control loop a little further from EMC2s control than is really ideal)
Please Log in or Create an account to join the conversation.
I do see in another thread someone is trying...
One guy monitored the feedback and got EMC to throw an E-stop if following error got to big. (this was through parallel port) .
If someone can show me a working config and it does not cause me too much trouble to add it -I will.
Personally I don't really see the idea.
If you want ease of setup use step / direction drives.
if you want ultimate control use servos with feedback to EMC's PID
Other then doing it just to see if it works.....
To each their own.
Please Log in or Create an account to join the conversation.
I think that people have used stepper motors in velocity mode with an encoder for closed-loop control, but I am not sure how well it has worked.I have not heard of anyone running steppers (or step/direction servos) with encoder feedback that was used in a PID loop.
I assume that you could use a step-dir servo drive with a PID loop fairly readily. You would be asking for changes in position rather than velocity to close the loop, but I see no reason why it couldn't be made to work. In effect absolute position and homing would be handled by EMC2 PID with loop stability handled by drive PID.
There may be velocity-mode drives with up-down inputs too, where it would make sense to use a particular stepgen mode as the output function.
Stepgens are also usable as the output function for a frequency-voltage external stage, which I have seen suggested but don't know if it is often used. (freqgen is floating point so might not always be preferred).
Not that the possible existence of a particular setup justifies adding it to a tool like pncconf. I think it is perfectly reasonable to expect "unusual" configurations to be hand-coded in HAL. It makes no sense for you to spend a week saving one user an hour.
Please Log in or Create an account to join the conversation.
cmorley wrote:
I think that people have used stepper motors in velocity mode with an encoder for closed-loop control, but I am not sure how well it has worked.I have not heard of anyone running steppers (or step/direction servos) with encoder feedback that was used in a PID loop.
I should have added "in EMC" I know for instance Parker S6 step drives can use encoder feed back. With Parker the resolution of the encoder was supposed to be 3 times the step resolution. or was it the other way? I assume to help stop hunting.
Please Log in or Create an account to join the conversation.
I am runing a gantry mill based on
Anaheim Automation BLDC
Renishaw linear scales
CNCTeknix ( the Australian manufacturer ) Tek 6 STEP/DIRECTION servo amps.
Tek 6 provides for a simple control input ( stepper motor like) and at the same time it reads the quadrature encoder to drive the servo motor in a closed loop.
As with any steper motor like drive the software does not know whether the servo is performing correctly. To eliminate this ambiguity I would like to feed the encoder signals back to EMC.
Tek 6 does retransmit the encoder signals so that a simple digital interface is possible .
pncconfig looked promising until it said NO to stepers and encoders. Any kind of help or hints would be welcome.
I am presently looking to stepgen.9 as a source of step direction pulses with the PWM value from servo drive pin as input.
Someone please tell me not to bother and try a smarter idea or better still that pncconfig is coming out with a revamped capability.
Please Log in or Create an account to join the conversation.
www.linuxcnc.org/component/option,com_ku...7/lang,english/#5489
Please Log in or Create an account to join the conversation.
Create a generic servo config, but then combine it with your existing stepper config so that the PID output goes to the stepgen velocity input, rather than the PWM input.
Alternatively, do those drives have the option of taking an analogue or PWM input?
Please Log in or Create an account to join the conversation.