The invention relates to a drug-drying device for automaticpharmaceutical machinery. The drug-drying device comprises a shell, a heating device, a shaking device, a separating plate device, a pushing device, a baffle device and a motor device, wherein a first through hole, a second through hole, a feeding frame and a discharging frame are arranged on the shell; the heating device comprises a radiating frame and a heating rod; the separating plate device comprises a separating plate and a concentrating block; the shaking device comprises a filter screen, a shaking frame, an idler wheel, a brush, a first fixing rod, a first spring and a second spring; the pushing device comprises an electric cylinder, a first bracket, a pushing rod and a pushing block; the baffle device comprises a first vertical plate, a second bracket, a connecting block, a baffle and a vertical rod; the motor device comprises a motor, an output shaft, a second fixing rod, a bracing wire, a connecting ring, a third spring, a second vertical plate and a triangle block. The drug-drying device for automaticpharmaceutical machinery can uniformly heat the drugs, so as to guarantee the drying effect, and meanwhile, the drugs can be uniformly spread out and shaken left and right, so that the efficiency of drying the drugs is higher.