The part we kept getting stuck on was the autopolling input and output start registers. Nothing anywhere we could find seemed to tell us where we could find what the start registers should be. We looked in Cubloc book, online, and finally when hood pointed out that Henrik had used both serial and the plugin, we then had a known good number to start with for the start register.
Finally last night (late)we had mach communicating with the cubloc/cubase32/relay board. We could MDI T0101 etc, and trigger a different relay for each seperate T*********X. A great sigh of relief was heard coming from the three of us. We had been struggeling for many hours to get that elusive piece of info that was- a working start register number!
We have lots of work to go, but now that we have at least got T*********X triggering relays, we feel the worst is over, we hope...
Fdos- I am building an encoder simmilar to the original Hardinge encoder, made of hall effect sensors. I am using all eight sensors as inputs to the cubloc, so no need to decode anything.
Next are these tasks-
connecting relays on the cubloc to the solenoids.
getting the encoder installed.
getting cubloc to write the encoder position to Mach.
writing the Cubloc tool change code.
Installing the turret up or down sensor.
A big thanks to everyone for all of your help.
I promise to add everything that will be helpful/needed for the next person trying this. I am determined to not have the next guy struggle this much...