Optimization of work cycle parameters in casting industries by inculcating automation techniques in the process