- Posts: 17524
- Thank you received: 0
SSI absolute encoders and analog servos
Please Log in to join the conversation.
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 to join the conversation.
A typo in the docs or a typo in your HAL file?terkaa wrote: Also there is a small typo with SSI pins. It says positon where should be position. ie pin positon.position
Please Log in to join the conversation.
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
Please Log in to join the conversation.
so if that's misspelled all the position pins will be
( there are no positon strings in the hostmot2 driver )
Please Log in to join the conversation.
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 to join the conversation.
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 to join the conversation.
Please Log in to join the conversation.
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 to join the conversation.
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 to join the conversation.
