A rotaxane incorporating three different stations and fluorescent states (output) was prepared. The movement of the macrocycle can be easily detected by fluorescence change as an output signal and the macrocycle could be easily controlled to locate on three different stations of the thread by the tuning of acid/base (input).