coded the magnetic limiter switch