how does a 3 wire controller work