This is the relevant bit from the weiler lathe andy mentioned.
I hope its the latest version, let me know if it doesnt work.
the encoder inputs are connected according to the original schematic, which also matches the documentation for the encoder.
the reverse and forward you have to try.
Code:
loadrt carousel pockets=8 encoding="binary" pty=0
addf carousel.0 servo-thread
net tool-num iocontrol.0.tool-prep-pocket => carousel.0.pocket-number
net tool-change iocontrol.0.tool-change => carousel.0.enable
net tool-changed carousel.0.ready => iocontrol.0.tool-changed
net rev1 carousel.0.motor-fwd => hm2_7i92.0.7i77.0.0.output-04#reverse
net rev2 carousel.0.motor-rev => hm2_7i92.0.7i77.0.0.output-05#fwd
net reva carousel.0.sense-0
net revb carousel.0.sense-1
net revc carousel.0.sense-2
net revd carousel.0.sense-3
net revs carousel.0.strobe
net revp carousel.0.parity