As the various suppliers supply contolboxes with different electronic boards / modules depending on the stepper motors and spindle motor fitted.
more information will be needed to make it possible for others to help
for example
this is one version of a control box for machines with a low power DC spindle motor
found on the net
stepper drive schematic pdf
spindle control schematic pdf
printer port
you will need the manual for your control box to know the exact function of each pin
John