Joint following error with SSI ABS encoder
- nhanpham
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 77
- Thank you received: 1
13 May 2022 03:49 - 13 May 2022 03:56 #242849
by nhanpham
Joint following error with SSI ABS encoder was created by nhanpham
hi all,
I am using SSI ABS ENCODER for my system.
I connect and check the encoder data is correctly.
But when I turned on my system then I got the error "Joint following error"
My hal examp:
The hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-cmd = hm2_7i80.0.ssi.00.yencoder
but hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-fb = 0
so when i turn on my system then my joint will move to have hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-cmd = hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-fb
it will make the error "Joint x following error"
can you help me check it?
thanks
I am using SSI ABS ENCODER for my system.
I connect and check the encoder data is correctly.
But when I turned on my system then I got the error "Joint following error"
My hal examp:
net J0pos hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-cmd <= joint.0.motor-pos-cmd
net j0-pos-fbss hm2_7i80.0.ssi.00.yencoder
net j0-pos-fbss => joint.0.motor-pos-fb
The hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-cmd = hm2_7i80.0.ssi.00.yencoder
but hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-fb = 0
so when i turn on my system then my joint will move to have hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-cmd = hm2_[HOSTMOT2](BOARD).0.stepgen.00.position-fb
it will make the error "Joint x following error"
can you help me check it?
thanks
Last edit: 13 May 2022 03:56 by nhanpham.
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17966
- Thank you received: 4824
13 May 2022 05:07 #242853
by PCW
Replied by PCW on topic Joint following error with SSI ABS encoder
Typically you would not use stepgen position mode (or stepgen position feedback)
when you have encoder feedback
when you have encoder feedback
The following user(s) said Thank You: nhanpham
Please Log in or Create an account to join the conversation.
- nhanpham
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 77
- Thank you received: 1
13 May 2022 06:36 #242855
by nhanpham
thank you very much
Replied by nhanpham on topic Joint following error with SSI ABS encoder
thank you for your answer,but How can i change mode of stepgen?Typically you would not use stepgen position mode (or stepgen position feedback)
when you have encoder feedback
thank you very much
Please Log in or Create an account to join the conversation.
- nhanpham
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 77
- Thank you received: 1
13 May 2022 06:46 #242856
by nhanpham
Replied by nhanpham on topic Joint following error with SSI ABS encoder
i added "loadrt stepgen step_type=0,0,0,0,0 ctrl_type=v,v,p,p,p"
But it didn't fix this error. When i turn on my machine then joints will auto move to position of abs encoder.
But it didn't fix this error. When i turn on my machine then joints will auto move to position of abs encoder.
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23170
- Thank you received: 4860
16 May 2022 00:21 #243053
by andypugh
Replied by andypugh on topic Joint following error with SSI ABS encoder
Are you configured with HOME_ABSOLUTE_ENCODER in the INI file?
If the stepgen feedback is not changing then it seems that the stepgen is not stepping....
Is the ....stepgen....enable pin set to true?
If the stepgen feedback is not changing then it seems that the stepgen is not stepping....
Is the ....stepgen....enable pin set to true?
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17966
- Thank you received: 4824
16 May 2022 04:25 #243064
by PCW
Replied by PCW on topic Joint following error with SSI ABS encoder
For this to work, you need a PID loop
to set the velocity. Since you are using Mesa
hardware, I would use a pncconf created hal/ini file
as a template for the PID connections
to set the velocity. Since you are using Mesa
hardware, I would use a pncconf created hal/ini file
as a template for the PID connections
Please Log in or Create an account to join the conversation.
Time to create page: 0.060 seconds