BASIC programming solutions for manufacturing