Spindle encoder wiring check
- DanieGouws
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
02 Apr 2020 17:20 #162472
by DanieGouws
Replied by DanieGouws on topic Spindle encoder wiring check
Hi All,
I have a similar problem. I'm using a Mesa 7i76E card on a non-Tormach PathPilot system. Most things are working but I'm struggling with the spindle encoder readings. I have 1 encoder and 1 index signal. The following electrical connections were made on TB3:
Pin 7 A+
Pin 9 GND
Pin 12 +5V
Pin 13 Index+
My Hal file contains:
setp hm2_7i76e.0.encoder.00.counter-mode 1
setp hm2_7i76e.0.encoder.00.filter 1
setp hm2_7i76e.0.encoder.00.index-invert 0
setp hm2_7i76e.0.encoder.00.index-mask 0
setp hm2_7i76e.0.encoder.00.index-mask-invert 0
setp hm2_7i76e.0.encoder.00.scale [SPINDLE]ENCODER_SCALE
net spindle-position <= hm2_7i76e.0.encoder.00.position
net spindle-position => motion.spindle-revs
net spindle-vel-fb-rps <= hm2.7i76e.0.encoder.00.velocity
net spindle-vel-fb-rps => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable
net spindle-index-enable <=> hm2_7i67e.0.encoder.00.index-enable
Using HALMETER I can see the abs-spindle-rpm value and it seems to be correct given the encoder gain. However, the index does not seem to be working. The spindle-index-enable is FALSE, I'm not sure how to set it TRUE in my HAL/INI file or using the HAL CMD (I'm only recently migrated from Mach3 to LinuxCNC).
Thank you for your time in this regard. Danie
I have a similar problem. I'm using a Mesa 7i76E card on a non-Tormach PathPilot system. Most things are working but I'm struggling with the spindle encoder readings. I have 1 encoder and 1 index signal. The following electrical connections were made on TB3:
Pin 7 A+
Pin 9 GND
Pin 12 +5V
Pin 13 Index+
My Hal file contains:
setp hm2_7i76e.0.encoder.00.counter-mode 1
setp hm2_7i76e.0.encoder.00.filter 1
setp hm2_7i76e.0.encoder.00.index-invert 0
setp hm2_7i76e.0.encoder.00.index-mask 0
setp hm2_7i76e.0.encoder.00.index-mask-invert 0
setp hm2_7i76e.0.encoder.00.scale [SPINDLE]ENCODER_SCALE
net spindle-position <= hm2_7i76e.0.encoder.00.position
net spindle-position => motion.spindle-revs
net spindle-vel-fb-rps <= hm2.7i76e.0.encoder.00.velocity
net spindle-vel-fb-rps => motion.spindle-speed-in
net spindle-index-enable <=> motion.spindle-index-enable
net spindle-index-enable <=> hm2_7i67e.0.encoder.00.index-enable
Using HALMETER I can see the abs-spindle-rpm value and it seems to be correct given the encoder gain. However, the index does not seem to be working. The spindle-index-enable is FALSE, I'm not sure how to set it TRUE in my HAL/INI file or using the HAL CMD (I'm only recently migrated from Mach3 to LinuxCNC).
Thank you for your time in this regard. Danie
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4861
02 Apr 2020 17:53 #162474
by andypugh
Replied by andypugh on topic Spindle encoder wiring check
LinuxCNC only sets the index-enable when starting a spindle-synchronised move.
I think that your HAL is correct, and everything should work.
So, what makes you think that there is a problem?
I think that your HAL is correct, and everything should work.
So, what makes you think that there is a problem?
Please Log in or Create an account to join the conversation.
- Todd Zuercher
- Online
- Platinum Member
Less
More
- Posts: 4957
- Thank you received: 1441
02 Apr 2020 17:53 #162475
by Todd Zuercher
Replied by Todd Zuercher on topic Spindle encoder wiring check
From either a halcmd prompt, or in the "Test HAL command" box at the bottome of the "HAL Configuration" window type
That should set that signal true, then when you turn the encoder and it crosses the index that signal should change from true to false.
sets net spindle-index-enable true
That should set that signal true, then when you turn the encoder and it crosses the index that signal should change from true to false.
Please Log in or Create an account to join the conversation.
- DanieGouws
- Offline
- New Member
Less
More
- Posts: 11
- Thank you received: 0
02 Apr 2020 18:27 #162476
by DanieGouws
Replied by DanieGouws on topic Spindle encoder wiring check
Thank you! I started PathPilot, then used the HALSHOW's cmd to "sets spindle-index-enable true" - the spindle-index-enable became TRUE. When I turned past the index hole it became FALSE. I had to set it again using the cmd to turn it TRUE again. Is that correct?
Now I just need to figure out how the PathPilot Lathe interface will display the speed.
Regards Danie
Now I just need to figure out how the PathPilot Lathe interface will display the speed.
Regards Danie
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23178
- Thank you received: 4861
09 Apr 2020 13:22 #163339
by andypugh
Replied by andypugh on topic Spindle encoder wiring check
Yes, that is correct.
Please Log in or Create an account to join the conversation.
Time to create page: 0.077 seconds