- LinuxCNC
- General LinuxCNC Questions
- 7I90HD with Raspberry pi and getting weird joint 0 following errors
7I90HD with Raspberry pi and getting weird joint 0 following errors
- creisey
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 1
25 Feb 2021 08:06 #200070
by creisey
can i make a pid loop in an openloop configuratuion? i thought i need an encoder for that.
Replied by creisey on topic 7I90HD with Raspberry pi and getting weird joint 0 following errors
A couple of things:
With a 0.050 mm maximum following error, 250 usec of servo thread jitter will cause a
following error with your current setup . What is you servo thread jitter?
There are a couple of things that can be done to improve stepgen performance with regard to host jitter:
1. Use the stepgen in velocity mode and a PID loop to control the position (use a pncconf created hal/ini file set as a model)
2. Use the DPLL to reduce host servo thread jitter impact on position sampling errors
can i make a pid loop in an openloop configuratuion? i thought i need an encoder for that.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17983
- Thank you received: 4834
25 Feb 2021 14:05 #200097
by PCW
Replied by PCW on topic 7I90HD with Raspberry pi and getting weird joint 0 following errors
Yes, take a look at a pncconf created step/dir hal file.
Please Log in or Create an account to join the conversation.
- creisey
- Topic Author
- Offline
- New Member
Less
More
- Posts: 16
- Thank you received: 1
01 Mar 2021 19:37 - 02 Mar 2021 08:03 #200719
by creisey
Replied by creisey on topic 7I90HD with Raspberry pi and getting weird joint 0 following errors
i made a config with the pncconf that works
there are two things
1. im not sure if the shared home switch for x & x2 are correct set
2. ferror seems to be a bit high
what do you think?
there are two things
1. im not sure if the shared home switch for x & x2 are correct set
2. ferror seems to be a bit high
what do you think?
Last edit: 02 Mar 2021 08:03 by creisey.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17983
- Thank you received: 4834
01 Mar 2021 19:53 #200723
by PCW
Replied by PCW on topic 7I90HD with Raspberry pi and getting weird joint 0 following errors
You should be able to set the ferror and min ferror much smaller
also all lines like: setp pid.?.maxerror .0005 should be commented out
You can further improve the following error by using the DPLL:
# latch stepgen position feedback 100 usec before nominal read time:
setp hm2_[HOSTMOT2](BOARD).0.dpll.01.timer-us -100
setp hm2_[HOSTMOT2](BOARD).0.stepgen.timer-number 1
also all lines like: setp pid.?.maxerror .0005 should be commented out
You can further improve the following error by using the DPLL:
# latch stepgen position feedback 100 usec before nominal read time:
setp hm2_[HOSTMOT2](BOARD).0.dpll.01.timer-us -100
setp hm2_[HOSTMOT2](BOARD).0.stepgen.timer-number 1
The following user(s) said Thank You: creisey
Please Log in or Create an account to join the conversation.
- LinuxCNC
- General LinuxCNC Questions
- 7I90HD with Raspberry pi and getting weird joint 0 following errors
Time to create page: 0.094 seconds