- Hardware & Machines
- Driver Boards
- Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses?
Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses?
- jhandel
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 7
11 Oct 2020 21:33 - 11 Oct 2020 21:33 #185758
by jhandel
Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses? was created by jhandel
Howdy all,
I don't want to run in Software processing mode 2 because I need all the digital IO so losing 4 pins to analog and 4 pins for 2 mpgs is a bridge too far (loosing 2 pins to mpg is just fine, but losing the other 6 is a no go)
Could I use my spindle encoder (that data is coming in off my 7i89 as is) for the MPG encoder? or could I use the HAL and my BoB to create a 2 pin encoder on some of its IO (so 2 IO pins on P1 or P2)... Last option can I do a "software encoder just using 2 random IO pins?)
Thanks
Josh
(In a perfect world I would have a way to run in a software mode with 30 digital Inputs and 1 encoder, but I am happy to work around what ever to get so something that works well
)
I don't want to run in Software processing mode 2 because I need all the digital IO so losing 4 pins to analog and 4 pins for 2 mpgs is a bridge too far (loosing 2 pins to mpg is just fine, but losing the other 6 is a no go)
Could I use my spindle encoder (that data is coming in off my 7i89 as is) for the MPG encoder? or could I use the HAL and my BoB to create a 2 pin encoder on some of its IO (so 2 IO pins on P1 or P2)... Last option can I do a "software encoder just using 2 random IO pins?)
Thanks
Josh
(In a perfect world I would have a way to run in a software mode with 30 digital Inputs and 1 encoder, but I am happy to work around what ever to get so something that works well

Last edit: 11 Oct 2020 21:33 by jhandel.
Please Log in or Create an account to join the conversation.
- tommylight
-
- Away
- Moderator
-
Less
More
- Posts: 20174
- Thank you received: 6864
11 Oct 2020 22:30 #185772
by tommylight
Replied by tommylight on topic Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses?
4 analogue inputs will work as digital inputs in Mode 2, same should be true for encoder inputs but with a much lower threshold, that is if i remember correctly.
Spindle encoder will work for MPG for sure, i see no reason not to.
Using a BOB and one of the 26 pin headers will also work, but may require modified firmware.
Spindle encoder will work for MPG for sure, i see no reason not to.
Using a BOB and one of the 26 pin headers will also work, but may require modified firmware.
Please Log in or Create an account to join the conversation.
- jhandel
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 7
12 Oct 2020 18:14 #185864
by jhandel
Replied by jhandel on topic Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses?
Thanks... Just making sure there wasn't something "magical" about the MPG encoders.. If they are all operationally the same, then I'll just use the spindle A/B pins... Plus that gives me 5v I can feed my MPG..
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18532
- Thank you received: 5079
12 Oct 2020 19:07 - 12 Oct 2020 20:19 #185867
by PCW
You don't lose anything by simply selecting mode 2 (other than maximum servo thread rate if you need very high rates)
You only lose digital inputs where MPGs are connected, or inputs that are connected to analog sources.
Replied by PCW on topic Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses?
I don't want to run in Software processing mode 2 because I need all the digital IO so losing 4 pins to analog and 4 pins for 2 mpgs is a bridge too far (loosing 2 pins to mpg is just fine, but losing the other 6 is a no go)
You don't lose anything by simply selecting mode 2 (other than maximum servo thread rate if you need very high rates)
You only lose digital inputs where MPGs are connected, or inputs that are connected to analog sources.
Last edit: 12 Oct 2020 20:19 by PCW.
Please Log in or Create an account to join the conversation.
- jhandel
- Offline
- Premium Member
-
Less
More
- Posts: 148
- Thank you received: 7
13 Oct 2020 13:37 #185980
by jhandel
Replied by jhandel on topic Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses?
What is the max reasonable thread speed for Mode 0 and Mode 2? (not sure if it would be impactful or not, and frankly haven't even looked into servo thread speed tuning yet.. )
Please Log in or Create an account to join the conversation.
- PCW
-
- Away
- Moderator
-
Less
More
- Posts: 18532
- Thank you received: 5079
13 Oct 2020 14:01 - 13 Oct 2020 14:05 #185983
by PCW
Replied by PCW on topic Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses?
It's a marginal difference maybe between 6 and 10 KHz on a very fast host.
Note that in general, there is no "servo thread tuning". The default 1 KHz servo thread rate
is adequate for almost all CNC machines. Exceptions would be machines with combined
extreme accelerations and precision, and systems using torque mode drives that have a
velocity PID loop running in LinuxCNC.
Note that in general, there is no "servo thread tuning". The default 1 KHz servo thread rate
is adequate for almost all CNC machines. Exceptions would be machines with combined
extreme accelerations and precision, and systems using torque mode drives that have a
velocity PID loop running in LinuxCNC.
Last edit: 13 Oct 2020 14:05 by PCW. Reason: format
Please Log in or Create an account to join the conversation.
Moderators: PCW, jmelson
- Hardware & Machines
- Driver Boards
- Use 7i76e spindle encoder for MPG or just use 2 digital pins for A/B pulses?
Time to create page: 0.182 seconds