MESA 7i43 index-enable
- abfa9358
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
18 Dec 2016 12:35 #84357
by abfa9358
MESA 7i43 index-enable was created by abfa9358
Hi
I having setting up a spindle encoder on my mill and have got to the point of confusion with index-enable.
The encoder is setup as follows
Counter mode = true
Scale 180 (180 slots in the wheel)
encoder position linked to motion.spindle-revs
encoder velocity linked to motion.spindle-speed-in
encoder index-enable linked to motion.spindle-index-enable
I can see the index pulse using HAL scope but was expecting to index-enable to go low on an index pulse and then be "re-set" by the UI.
The counts / position of the 7i43 encoder are not zeroed on an index pulse.
Can someone explain who the index-enable connection works please.
Many thanks
Regards
Andy
Link to machine build
www.cnczone.com/forums/benchtop-machines/107594-cnc-cad.html
I having setting up a spindle encoder on my mill and have got to the point of confusion with index-enable.
The encoder is setup as follows
Counter mode = true
Scale 180 (180 slots in the wheel)
encoder position linked to motion.spindle-revs
encoder velocity linked to motion.spindle-speed-in
encoder index-enable linked to motion.spindle-index-enable
I can see the index pulse using HAL scope but was expecting to index-enable to go low on an index pulse and then be "re-set" by the UI.
The counts / position of the 7i43 encoder are not zeroed on an index pulse.
Can someone explain who the index-enable connection works please.
Many thanks
Regards
Andy
Link to machine build
www.cnczone.com/forums/benchtop-machines/107594-cnc-cad.html
Please Log in or Create an account to join the conversation.
- PCW
- Away
- Moderator
Less
More
- Posts: 17903
- Thank you received: 4774
18 Dec 2016 14:13 - 18 Dec 2016 14:13 #84361
by PCW
Replied by PCW on topic MESA 7i43 index-enable
Index works in the opposite fashion, LinuxCNCs motion component sets
motion.spindle-index-enable only when it needs to search for index
motion.spindle-index-enable must be wired to the encoder counters index enable pin in the hal file
when the encoders index enable pin is set and an index occurs, it clears index enable, signaling
the motion component that an index has occurred.
motion.spindle-index-enable only when it needs to search for index
motion.spindle-index-enable must be wired to the encoder counters index enable pin in the hal file
when the encoders index enable pin is set and an index occurs, it clears index enable, signaling
the motion component that an index has occurred.
Last edit: 18 Dec 2016 14:13 by PCW.
The following user(s) said Thank You: abfa9358
Please Log in or Create an account to join the conversation.
- abfa9358
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
18 Dec 2016 21:55 #84375
by abfa9358
Replied by abfa9358 on topic MESA 7i43 index-enable
Many thanks for the quick reply, so if I have this correct the HAL files should go like this....
A channel + Z, 180 counts / rev, Index on falling edge of Z (this is a bit odd but it is a homebrew encoder)
#
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.counter-mode 1
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.scale 180
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.index-invert 0
#
net SPINDLE_REVS hm2_[HOSTMOT2](BOARD).0.encoder.01.position => motion.spindle-revs
net SPINDLE_RPS hm2_[HOSTMOT2](BOARD).0.encoder.01.velocity => motion.spindle-speed-in
net SPINDLE_IND motion.spindle-index-enable => hm2_[HOSTMOT2](BOARD).0.encoder.01.index-enable
#
Regards
Andy
A channel + Z, 180 counts / rev, Index on falling edge of Z (this is a bit odd but it is a homebrew encoder)
#
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.counter-mode 1
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.scale 180
setp hm2_[HOSTMOT2](BOARD).0.encoder.01.index-invert 0
#
net SPINDLE_REVS hm2_[HOSTMOT2](BOARD).0.encoder.01.position => motion.spindle-revs
net SPINDLE_RPS hm2_[HOSTMOT2](BOARD).0.encoder.01.velocity => motion.spindle-speed-in
net SPINDLE_IND motion.spindle-index-enable => hm2_[HOSTMOT2](BOARD).0.encoder.01.index-enable
#
Regards
Andy
Please Log in or Create an account to join the conversation.
- andypugh
- Offline
- Moderator
Less
More
- Posts: 23559
- Thank you received: 4858
19 Dec 2016 00:23 #84386
by andypugh
Replied by andypugh on topic MESA 7i43 index-enable
If you want to be sure it is all working, you can exercise it from a command-line HAL session.
Load LinuxCNC as normal. Then open a terminal:
Then you can rotate the spindle (hand or motor) and watch the signal go back to false.
Load LinuxCNC as normal. Then open a terminal:
halcmd -kf
loadusr halmeter signal SPINDLE_IND
sets SPINDLE_IND 1
Then you can rotate the spindle (hand or motor) and watch the signal go back to false.
The following user(s) said Thank You: abfa9358
Please Log in or Create an account to join the conversation.
- abfa9358
- Offline
- New Member
Less
More
- Posts: 15
- Thank you received: 0
19 Dec 2016 07:26 #84401
by abfa9358
Replied by abfa9358 on topic MESA 7i43 index-enable
Thanks Andy,
I'll give that a try. I'm a bit shaky on the HAL side of things as I only delve in to it every few years or so. It was seeing your video of the linked spindle / A axis hobbing a gear that set me off building my own A axis and finally getting to grips with spindle control on my Optimum BF30 mill.
Regards
Andy
I'll give that a try. I'm a bit shaky on the HAL side of things as I only delve in to it every few years or so. It was seeing your video of the linked spindle / A axis hobbing a gear that set me off building my own A axis and finally getting to grips with spindle control on my Optimum BF30 mill.
Regards
Andy
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
Time to create page: 0.063 seconds