You posted under the Camsoft forum so I assume you have a Camsoft package also? If you are the registered owner then Camsoft should supply a Generic wiring for this set up considering it is not cheap software.
Do you have the PC slot I/O interface card for the Opto22 board?
If not the registered owner then a probabally a generic schematic could be furnished from one of us that has done it.
Al.
CNC, Mechatronics Integration and Custom Machine Design
“Logic will get you from A to B. Imagination will take you everywhere.”
Albert E.