Joint following error with SSI ABS encoder

More
13 May 2022 03:49 - 13 May 2022 03:56 #242849 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:

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
Attachments:
Last edit: 13 May 2022 03:56 by nhanpham.

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

More
13 May 2022 05:07 #242853 by PCW
Typically you would not use stepgen position mode (or stepgen position 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.

More
13 May 2022 06:36 #242855 by nhanpham

Typically you would not use stepgen position mode (or stepgen position feedback)
when you have encoder feedback
 

thank you for your answer,but How can i change mode of stepgen?

thank you very much

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

More
13 May 2022 06:46 #242856 by nhanpham
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.
 

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

More
16 May 2022 00:21 #243053 by andypugh
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?

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

More
16 May 2022 04:25 #243064 by PCW
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

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

Time to create page: 0.132 seconds
Powered by Kunena Forum