Fitting an encoder to non Tormach mill (Again)
04 May 2021 04:13 #207788
by rafferty
Replied by rafferty on topic Fitting an encoder to non Tormach mill (Again)
I now have G33 Spindle Synchronized Motion.
I used 4 lines of hal suggested by 'Clive S' from the last time I tried:
Table motion appears to follow my DIY optical encoder, I can hear the steppers changing pitch as they follow the errors in the crappy encoder. Main problem is the optical disc is running eccentrically, I'll have another go at getting it to run true but I think I need something better.
Thank you to everyone who have shared their knowledge, both this time and my last failed attempt.
Ken
I used 4 lines of hal suggested by 'Clive S' from the last time I tried:
net spindle-position hm2_5i25.0.encoder.01.position => motion.spindle-revs
net spindle-velocity hm2_5i25.0.encoder.01.velocity => motion.spindle-speed-in
net spindle-index-enable hm2_5i25.0.encoder.01.index-enable <=> motion.spindle-index-enable
setp hm2_5i25.0.encoder.01.scale 144
Table motion appears to follow my DIY optical encoder, I can hear the steppers changing pitch as they follow the errors in the crappy encoder. Main problem is the optical disc is running eccentrically, I'll have another go at getting it to run true but I think I need something better.
Thank you to everyone who have shared their knowledge, both this time and my last failed attempt.
Ken
Please Log in or Create an account to join the conversation.
11 May 2021 06:12 #208524
by rafferty
Replied by rafferty on topic Fitting an encoder to non Tormach mill (Again)
With the new bitfile the "unknown function gtag-26" warning has returned when I start PathPilot.
I've done the power cycle many times in the last week and it's still there.
I saw mention of it being caused by a too old version of mesaflash.
Downloaded the latest version from github and compiled it on a VM running the same versions of linux and PathPilot as the 'real' machine.
Forced PathPilot to use the new mesaflash to program the 5i25..., and the warning is still there.
It doesn't seem to cause any problems but it's something more subtle than just an old version of mesaflash. Maybe its the old versions of linux and linuxcnc that I'm using.
I do really have to get my act together and update.
I've done the power cycle many times in the last week and it's still there.
I saw mention of it being caused by a too old version of mesaflash.
Downloaded the latest version from github and compiled it on a VM running the same versions of linux and PathPilot as the 'real' machine.
Forced PathPilot to use the new mesaflash to program the 5i25..., and the warning is still there.
It doesn't seem to cause any problems but it's something more subtle than just an old version of mesaflash. Maybe its the old versions of linux and linuxcnc that I'm using.
I do really have to get my act together and update.
Please Log in or Create an account to join the conversation.
11 May 2021 13:17 - 11 May 2021 13:17 #208545
by PCW
Replied by PCW on topic Fitting an encoder to non Tormach mill (Again)
That means the LinuxCNC version you are using is quite old
(specifically the hostmot2 driver) GTAG 26 decimal is the DPLL
which has been supported by hostmot2 for at least 5 years
(specifically the hostmot2 driver) GTAG 26 decimal is the DPLL
which has been supported by hostmot2 for at least 5 years
Last edit: 11 May 2021 13:17 by PCW.
Please Log in or Create an account to join the conversation.
13 May 2021 07:39 #208712
by rafferty
Can I assume 'halcmd show all' is correct, if it lists a pin or parameter then the pin or parameter really does exist?
Ken
Replied by rafferty on topic Fitting an encoder to non Tormach mill (Again)
Yes it is old.That means the LinuxCNC version you are using is quite old
There are dplls listed when I use halshow, I was part way to setting a spindle encoder to use the dpll for read timing then discovered the encoder doesn't have the timer-number pin.(specifically the hostmot2 driver) GTAG 26 decimal is the DPLL
Can I assume 'halcmd show all' is correct, if it lists a pin or parameter then the pin or parameter really does exist?
Ken
Please Log in or Create an account to join the conversation.
13 May 2021 22:42 #208767
by PCW
Replied by PCW on topic Fitting an encoder to non Tormach mill (Again)
Yes
Please Log in or Create an account to join the conversation.
Moderators: cncbasher
Time to create page: 0.287 seconds