ASRS(Automatic Storage and Retrieval System) is used in FMS(Flexible Manufacturing System). It consists of RACK, Staker-Crane and AGV. The RACK is used to store Pallet. Likewise, the Staker-Crane is used to load and upload Pallet in the RACK. When the pallet is empty, system has to detect the state and replace the empty pallet.