A rotary printing machine, with which a workpiece can be printed only once or be repeated printed multiple times in a continuous manner, comprising: a printing cylinder being provided with at least one clamping unit; the clamping unit each including a rotary shaft, on which a plurality of clampers are provided; the clampers being maintained in a closed state and being changeable into an open state when the rotary shaft is rotated; a printing unit being located over and adjacent to a printing surface of the printing cylinder for performing printing on the workpiece in cooperation with the printing cylinder; a feeding control mechanism including a driving source; and an unloading control mechanism including an unloading unit wherein the rotary printing machine is characterized in that: a swing member and a reset unit are provided on the rotary shaft of each of the at least one clamping unit; the feeding control mechanism includes a feeding linkage and a feeding control unit; the driving source driving the feeding linkage to change between a first position, in which the feeding linkage can touch the swing member when the printing cylinder is rotating, and a second position, in which the feeding linkage can not touch the swing member when the printing cylinder is rotating; and the feeding control unit separates the feeding linkage from the driving source, such that the feeding linkage is maintained at the second position; and the unloading control mechanism includes an unloading control unit; the unloading unit being mounted to the first position, in which the unloading unit can touch the swing member when the printing cylinder is rotating; and the unloading control unit switches the unloading unit from the first position to the second position, in which the unloading unit can not touch the swing member when the printing cylinder is rotating. a printing cylinder being provided with at least one clamping unit; the clamping unit each including a rotary shaft, on which a plurality of clampers are provided; the clampers being maintained in a closed state and being changeable into an open state when the rotary shaft is rotated; a printing unit being located over and adjacent to a printing surface of the printing cylinder for performing printing on the workpiece in cooperation with the printing cylinder; a feeding control mechanism including a driving source; and an unloading control mechanism including an unloading unit wherein the rotary printing machine is characterized in that: a swing member and a reset unit are provided on the rotary shaft of each of the at least one clamping unit; the feeding control mechanism includes a feeding linkage and a feeding control unit; the driving source driving the feeding linkage to change between a first position, in which the feeding linkage can touch the swing member when the printing cylinder is rotating, and a second position, in which the feeding linkage can not touch the swing member when the printing cylinder is rotating; and the feeding control unit separates the feeding linkage from the driving source, such that the feeding linkage is maintained at the second position; and the unloading control mechanism includes an unloading control unit; the unloading unit being mounted to the first position, in which the unloading unit can touch the swing member when the printing cylinder is rotating; and the unloading control unit switches the unloading unit from the first position to the second position, in which the unloading unit can not touch the swing member when the printing cylinder is rotating. a swing member and a reset unit are provided on the rotary shaft of each of the at least one clamping unit; the feeding control mechanism includes a feeding linkage and a feeding control unit; the driving source driving the feeding linkage to change between a first position, in which the feeding linkage can touch the swing member when the printing cylinder is rotating, and a second position, in which the feeding linkage can not touch the swing member when the printing cylinder is rotating; and the feeding control unit separates the feeding linkage from the driving source, such that the feeding linkage is maintained at the second position; and the unloading control mechanism includes an unloading control unit; the unloading unit being mounted to the first position, in which the unloading unit can touch the swing member when the printing cylinder is rotating; and the unloading control unit switches the unloading unit from the first position to the second position, in which the unloading unit can not touch the swing member when the printing cylinder is rotating.