SSI absolute encoders and analog servos

More
10 years 2 months ago #79060 by andypugh
Replied by andypugh on topic SSI absolute encoders and analog servos

terkaa wrote: 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
10 years 2 months ago - 10 years 2 months ago #79061 by terkaa
Replied by terkaa on topic SSI absolute encoders and analog servos
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: 10 years 2 months ago by terkaa.

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

More
10 years 2 months ago #79066 by PCW
Replied by PCW on topic SSI absolute encoders and analog servos
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
10 years 2 months ago #79067 by andypugh
Replied by andypugh on topic SSI absolute encoders and analog servos

terkaa wrote: 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
10 years 2 months ago #79068 by terkaa
Replied by terkaa on topic SSI absolute encoders and analog servos
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
10 years 2 months ago #79241 by terkaa
Replied by terkaa on topic SSI absolute encoders and analog servos
Ok we have a reading. It seems encoder output is 32 bit binary. Some pics:

[IMG


[IMG


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.

Moderators: PCW, jmelson
Time to create page: 0.183 seconds
Powered by Kunena Forum