Closed Loop

More
28 Jun 2021 00:17 #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 or Create an account to join the conversation.

More
28 Jun 2021 07:15 #213095 by tommylight
Replied by tommylight on topic Closed Loop
Yes, see "etch servo" included with LinuxCNC.

Please Log in or Create an account to join the conversation.

More
30 Jun 2021 03:17 - 30 Jun 2021 03:19 #213302 by rohit269
Replied by rohit269 on topic Closed Loop
 

File Attachment:

File Name: my-test.hal
File Size:3 KB
 

File Attachment:

File Name: my-test.ini
File Size:2 KB
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.

File Attachment:

File Name: my-test.hal
File Size:3 KB

File Attachment:

File Name: my-test.ini
File Size:2 KB
Attachments:
Last edit: 30 Jun 2021 03:19 by rohit269.

Please Log in or Create an account to join the conversation.

More
30 Jun 2021 08:48 #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 or Create an account to join the conversation.

More
30 Jun 2021 11:20 #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 or Create an account to join the conversation.

More
30 Jun 2021 12:29 - 30 Jun 2021 12:32 #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. 
Last edit: 30 Jun 2021 12:32 by rohit269.

Please Log in or Create an account to join the conversation.

More
30 Jun 2021 22:12 #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 or Create an account to join the conversation.

More
30 Jun 2021 22:21 #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 or Create an account to join the conversation.

More
03 Jul 2021 07:45 #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 or Create an account to join the conversation.

More
03 Jul 2021 22:45 #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 or Create an account to join the conversation.

Time to create page: 0.619 seconds
Powered by Kunena Forum