Disclosed is a medicine compounding control method of an automatic medicine packaging machine in which medicines having different medicine codes are easily compounded, the medicines are prevented from being disabled to be compounded due to discord between the medicine codes, and inconvenient use and delay of compounding of the medicines due to the different medicine codes are prevented. The method includes firstly determining whether there is a medicine having a name identical to reference medicines when the information is not identical; secondly determining whether the medicines quantities can be identical by changing an amount of the reference medicines when a medicine has an identical name; adjusting the amount of the reference medicines in the tablet cassette to correct the prescription data such that the quantity of the medicine having different medicine information can be identical to the reference medicines in the tablet cassette, when the medicine quantities can be identical.