This PCI-card with an FPGA and 72 I/O lines will be used to control the lathe.
$199 from Mesa electronics