A method for setting an identification number of a mounting part according to an embodiment may include: a first step of selecting a first candidate identification number a second step of broadcasting a first command including the first candidate identification number with a plurality of mounting parts including a sensor unit and a memory and on which a drug keeping unit is mounted a third step of activating at least some mounting parts of the plurality of mounting parts, in which identification numbers for communication are not set and a fourth step of setting the first candidate identification number as an identification number of at least one first mounting part, for the at least one mounting part of the activated mounting parts, in which a sensing value is detected through the sensor unit. The method for setting an identification number of a mounting part according to an embodiment can detect a finger of the user if the finger is situated in a sensing unit, can set an identification number of a mounting part, and can set an identification number of the mounting part without using a separate input unit, thereby reducing costs and time.COPYRIGHT KIPO 2016실시 예에 따른 장착부 식별번호 설정방법은, 제1 후보 식별번호가 선택되는 제1 단계 센서부 및 메모리를 구비하며, 약제 보관 유닛이 장착되는 복수의 장착부들로, 제1 후보 식별번호를 포함하는 제1 커맨드가 브로드캐스트(broadcast)되는 제2 단계 상기 복수의 장착부들 중 통신을 위한 식별번호가 설정되지 않은 적어도 일부의 장착부들이 활성화되는 제3 단계 및 상기 활성화된 장착부들 중 상기 센서부를 통한 센싱값이 검출된 적어도 하나의 제1 장착부에 대해, 상기 제1 후보 식별 번호를 상기 적어도 하나의 제1 장착부의 식별번호로 설정하는 제4 단계를 포함할 수 있다.