limit switch working principle animation