Programmable Switching Control for Industrial Automation in Repetitive Nature of Work