SSI absolute encoders and analog servos
19 Aug 2016 12:40 #79057
by PCW
Replied by PCW on topic SSI absolute encoders and analog servos
The manual page says timer-num
Please Log in or Create an account to join the conversation.
19 Aug 2016 12:47 #79059
by terkaa
Replied by terkaa on topic SSI absolute encoders and analog servos
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
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.
19 Aug 2016 12:49 #79060
by andypugh
Replied by andypugh on topic SSI absolute encoders and analog servos
A typo in the docs or a typo in your HAL file?Also there is a small typo with SSI pins. It says positon where should be position. ie pin positon.position
Please Log in or Create an account to join the conversation.
19 Aug 2016 12:51 - 19 Aug 2016 12:53 #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
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.
19 Aug 2016 13:15 #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 )
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.
19 Aug 2016 13:16 #79067
by andypugh
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?
Replied by andypugh 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
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.
19 Aug 2016 13:27 #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
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.
22 Aug 2016 09:53 #79241
by terkaa
Replied by terkaa on topic SSI absolute encoders and analog servos
Please Log in or Create an account to join the conversation.
22 Aug 2016 11:28 #79244
by terkaa
Replied by terkaa on topic SSI absolute encoders and analog servos
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
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.
24 Aug 2016 18:30 #79369
by terkaa
Replied by terkaa on topic SSI absolute encoders and analog servos
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?
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.
Time to create page: 0.100 seconds