by MattTheNoob » Wed Sep 02, 2020 11:42 pm
I don't know what it means yet, but here's another piece of the puzzle.
Low speed pulley pair has a ratio of 1: 0.56, so every rev of the motor gives me 0.56 revs of the spindle.
Again, the encoder on the motor is 48ppr. This gives me (48 / 0.56 =) 85.7 pulses per rev of the spindle.
Again, I'd expect UC to like a setting of 4x 85.7 or 342 ppr, but I had to go to a whopping 607ppr in UC to get the speeds to match. And with that they were spot-on through the whole range of 0-3000 rpm.
I think we're on to something here. With the high pulley ratio I needed a lower-than-expected PPR, but with a the low pulley ratio I needed a higher-than-expected PPR. It's almost like UC is factoring in the pulley ratio twice.
Anticipated PPR for low speed of 342PPR, but divide by my pulley ratio of 0.56 and I get 612ppr (very close to the 607 I landed on)
Anticipated PPR for high speed of 147PPR, but divide by my pulley ratio of 1.3 and I get 113ppr (which is exactly what I landed on)
I won't go so far as to call this a bug in the encoder/pulley ratio calcs, but I'm at least having trouble wrapping my brain around it.
So for anyone else on this path, with a pulley-drive spindle, but with the encoder on the motor, here's how you find your PPR for the spindle setup in UC:
((Encoder PPR / pulley ratio) X 4) / pulley ratio or if we want to be fancy (encoder PPR X 4) / (pulley ratio)^2
Thanks for listening to be babble on about this.
MattTheNoob
Bostomatic 405 with updated controls... now entering Rev.2
UC300eth-5lpt, ModBus talking to Click PLC, Arduino Gecko servo monitor
Total UC noob.