A method for determining the position of a rotatable jaw of an attachment relative to a non-rotatable jaw is disclosed. The method comprises assembling the attachment to a surgical robot, rotating a first rotatable driver of the robot to align the first driver with a first rotatable drive of the attachment, and rotating a second rotatable driver of the robot to align the second driver with a second rotatable drive of the attachment. The method further comprises evaluating the amount of rotation required to align the first driver with the first drive and the amount of rotation required to align the second driver with the second drive, calculating a difference between the amount of rotation of the first driver and the amount of the rotation of the second driver, and determining the position of the rotatable jaw relative to the non-rotatable jaw based on the calculated difference.