This is a second pass at a sock knitting machine cylinder with customizable slots, so you can print out as many different sized cylinders as you'd like to have.
This one is based on a Gearhart cylinder, because that's all I have available, but I tried to make the code easy to understand and update so it can be modified to fit other machines as well.
I updated the original code so that the spaces at the top (above the spring) are now
positioned properly for all numbers of slots.
I also printed out a 60 tooth cylinder, and tested it on my machine (see photos). The bolts which hold my cylinder in place are 10-24, and the holes in the bosses are slightly undersized. I tried tapping them, but found that the original bolts from my machine (nearly 100 years old) don't hold the 3d printed cylinders as firmly as they ought. It's possibly the threads in my bolts are somewhat stripped, but I think the problem is that the PLA I used doesn't have quite enough strength to hold properly when tapped. I found that the cylinder would rock back and forth while knitting, moving enough that a couple needles were able to turn sideways instead of moving up and down to knit. I was still able to knit a tube, although especially at first, I had to stop about 1x per revolution to fix the stuck needles.
I'm planning to try longer bolts, with a nut on the end, to see if that's able to hold the cylinder more firmly so that it knits better. Until then, this model does produce a cylinder that will knit, it just needs some work on the fastening to the gear ring.
Models look good with slots from 54 to 108, higher than that the walls between needles start to get kind of thin. I've only tested the 60 slot cylinder to date, but everything else looks good.
I plan to include ribbers on the next iteration.
When printing, I'd recommend using supports for both the bottom (there's an area below the slots which fits into the gear ring) and the spring slot. I didn't use supports for the one cylinder I've printed so far, and needed to do a fair amount of cleanup before the spring would fit into the slot.