SSI absolute encoders and analog servos

More
19 Aug 2016 12:40 #79057 by PCW
The manual page says timer-num

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

More
19 Aug 2016 12:47 #79059 by terkaa
Ok,

setp hm2_5i25.0.ssi.00.timer-number 1

Does work, but I will check if there is also timer-num parameter. Also there is a small typo with SSI pins. It says positon where should be position. ie pin positon.position


Tero

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

More
19 Aug 2016 12:49 #79060 by andypugh

Also there is a small typo with SSI pins. It says positon where should be position. ie pin positon.position

A typo in the docs or a typo in your HAL file?

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

More
19 Aug 2016 12:51 - 19 Aug 2016 12:53 #79061 by terkaa
Typo in pins of SSI+sserial firmware. This is halcmd show pins output:

2 float OUT 1.118481e+07 hm2_5i25.0.ssi.00.positon.position
12 s32 OUT 11184810 hm2_5i25.0.ssi.00.positon.rawcounts
12 bit I/O FALSE hm2_5i25.0.ssi.00.positon.reset

All three lines have positon.xxxxx


Tero
Last edit: 19 Aug 2016 12:53 by terkaa.

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

More
19 Aug 2016 13:15 #79066 by PCW
Maybe the hal pins use the name in the ssi_chan_0=something config line
so if that's misspelled all the position pins will be

( there are no positon strings in the hostmot2 driver )

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

More
19 Aug 2016 13:16 #79067 by andypugh

Typo in pins of SSI+sserial firmware. This is halcmd show pins output:

2 float OUT 1.118481e+07 hm2_5i25.0.ssi.00.positon.position
12 s32 OUT 11184810 hm2_5i25.0.ssi.00.positon.rawcounts
12 bit I/O FALSE hm2_5i25.0.ssi.00.positon.reset

All three lines have positon.xxxxx


github.com/LinuxCNC/linuxcnc/search?utf8=%E2%9C%93&q=positon

I don't see it there. The ssi pins are pretty much _all_ given names from the HAL file.
What does your "loadrt hm2_pci" HAL line say?

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

More
19 Aug 2016 13:27 #79068 by terkaa
Yes you are correct it was my typo in the config line I had positon%24. Sorry about that. Now corrected. Here is output of halcmd show param

12 float RW 400 hm2_5i25.0.ssi.00.frequency-khz
12 u32 RW 0x00000100 hm2_5i25.0.ssi.00.positon.counts-per-rev
12 float RW 1 hm2_5i25.0.ssi.00.positon.scale
12 u32 RW 0x00000001 hm2_5i25.0.ssi.00.timer-number

So that is timer-number

Tero

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

More
22 Aug 2016 09:53 #79241 by terkaa
Ok we have a reading. It seems encoder output is 32 bit binary. Some pics:

File Attachment:


File Attachment:


Reading seems to increase or decrease steadliy when scale head is moved in either direction. Thank you very much for help.

Tero

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

More
22 Aug 2016 11:28 #79244 by terkaa
Related config:

loadrt hm2_pci config="ssi_chan_0=xencoder%32e

#SSI stuff
setp hm2_5i25.0.ssi.00.frequency-khz 400
setp hm2_5i25.0.ssi.00.timer-number 1
setp hm2_5i25.0.dpll.01.timer-us -100
setp hm2_5i25.0.ssi.00.xencoder.scale 10000


Tero

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

More
24 Aug 2016 18:30 #79369 by terkaa
I do get randomly:

Data transmission not complete on channel... erros.

I have changed setp hm2_5i25.0.dpll.01.timer-us -100 to setp hm2_5i25.0.dpll.01.timer-us -150

But that does not help. Data is 32 bits at 400 khz. Any ideas?

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

Moderators: PCWjmelson
Time to create page: 0.310 seconds
Powered by Kunena Forum