Devices and systems are provided for controlling movement of a working end of a surgical device by means of a robotic system. In one embodiment, systems and devices are provided for moving an end effector on a distal end of a surgical fastening device. Movement can include rotational movement of the end effector about an axis of the shaft, articulation of the end effector relative to the shaft, and actuation of an end effector, e.g., closing, firing, and/or cutting.