Closed Loop

More
5 years 4 months ago #213062 by rohit269
Closed Loop was created by rohit269
Sir, 
linuxcnc 2.8.2 with a parallel port card can  do closed loop function over one axis.

Please Log in to join the conversation.

More
5 years 4 months ago #213095 by tommylight
Replied by tommylight on topic Closed Loop
Yes, see "etch servo" included with LinuxCNC.

Please Log in to join the conversation.

More
5 years 4 months ago #213302 by rohit269
Replied by rohit269 on topic Closed Loop
 

Attachment not found

 

Attachment not found

Thanks for supporting me,
Sir,
As per your suggestions i am making hal and ini file according etch servo hal and ini file and then run machine with this edited hal and ini file but machine axis are not moving and indicate joint 0 error.
so i am requesting kindly see these files and correct the mistake and i attached this hal and ini file.

Attachment not found

Attachment not found

Please Log in to join the conversation.

More
5 years 4 months ago #213319 by rohit269
Replied by rohit269 on topic Closed Loop
Thanks for supporting me,
Sir,
As per your suggestions i am making hal and ini file according etch servo hal and ini file and then run machine with this edited hal and ini file but machine axis are not moving and indicate joint 0 error.
so i am requesting kindly see these files and correct the mistake and i attached this hal and ini file.

Please Log in to join the conversation.

More
5 years 4 months ago #213330 by tommylight
Replied by tommylight on topic Closed Loop
What are you trying to do?
The hal is a mess of closed loop and stepgen on the same axis X/joint 0, that will not work.

Please Log in to join the conversation.

More
5 years 4 months ago #213337 by rohit269
Replied by rohit269 on topic Closed Loop
Thanks for reply,
Sir,
I am doing linuxcnc with parallel port computer and stepper motor and driver with linear glass encoder for one axis closed loop control.
for backlash and missing step problem  so kindly tell this is possible. 

Please Log in to join the conversation.

More
5 years 4 months ago #213391 by andypugh
Replied by andypugh on topic Closed Loop
I believe that it can be done, though it probably won't help with missed steps. If you miss a step then the PID will try "harder" which is likely to make it miss more steps.

It _might_ be possible to arrange to use adaptive feed to reduce speed when the PID error is high.

Please Log in to join the conversation.

More
5 years 4 months ago #213392 by andypugh
Replied by andypugh on topic Closed Loop
Looking at the HAL. Your stepgens are in position mode, and you connect stepgen.0.position-cmd to joint.0.motor-pos-cmd.

You have a PID, but the output is linked to a velocity signal, that then goes nowhere.

There are two ways to add a PID and encoders to a stepper system:

1) Run the stepgen in velocity mode (a lot like a servo) and have the PID control position.

2) Run open-loop position command, and add the PID offset on top as a position adjustment. In this mode you would use a sum2 component to add the PID output to the stepgen position command.

I actually don't know how the joint.0.motor-pos-fb fits in to this.
ie, what happens if you connect that pin to the encoder instead of to the stepgen. That's such an easy experiment that it has to be worth a try.

Please Log in to join the conversation.

More
5 years 3 months ago #213540 by rohit269
Replied by rohit269 on topic Closed Loop
Thanks for supporting me,
Sir,
Kindly tell can you make this hal and ini file for parallel port computer and stepper motor and driver with linear glass encoder for one axis closed loop control.
I am agree for pay for these file.

Please Log in to join the conversation.

More
5 years 3 months ago #213610 by andypugh
Replied by andypugh on topic Closed Loop
Sorry, I don't mix money and LinuxCNC.

Try setting up the option 2 above, and let us know how it goes.

Please Log in to join the conversation.

Time to create page: 0.114 seconds
Powered by Kunena Forum