Automatic bar material feeding and discharging mechanism

The invention discloses an automatic bar material feeding and discharging mechanism. According to the technical scheme, a guide sleeve is vertically fixed to a lathe bed, a vertical rod is arranged inside the guide sleeve in a matched mode, a lifting body is fixedly connected to the upper end of the vertical rod, sliding blocks are fixed to the upper portion of the lifting body, linear guide rails matched with the sliding blocks are connected with a horizontal drive device, a first supporting block and a second supporting block used for supporting bar materials are fixed to the upper portions of the linear guide rails, and a lifting drive mechanism is arranged between the lifting body and the lathe bed. The automatic bar material feeding and discharging mechanism is simple in structure and easy to operate and control, material feeding and discharging are safe, time and labor are saved, and working efficiency is improved.