A surgical stapling device comprises a handle assembly, a shaft assembly, and a stapling head assembly. The shaft assembly comprises a rotary drive shaft that translates between two longitudinal positions to alternate between a tissue clamping mode and a tissue cutting/stapling mode. The stapling head assembly includes a first set of rotary drive elements that convert rotary motion of the drive shaft into a tissue clamping action when the drive shaft is in a distal position. The stapling head assembly also includes a second set of rotary drive elements that convert rotary motion of the drive shaft into a tissue cutting/stapling action when the drive shaft is in a proximal position. The drive shaft may be driven manually or by a motor. The stapling head assembly may be provided in a cartridge form that is removable from the shaft assembly.