An electromechanical surgical system (10), comprising: a surgical instrument (100) that includes an instrument housing (102) defining a connecting part (108A) for selectively connecting with a shaft assembly (200), in which the surgical instrument has at least one rotating actuating member (118, 120, 122); an end effector (400) configured to perform at least one function; and the shaft assembly (200), in which the shaft assembly is arranged to selectively interconnect the final effector (400) and the surgical instrument, in which the shaft assembly includes: a configured transmission housing (212) and adapted for selective connection to the connecting part (108a) of the surgical instrument and to be in operative communication with each of the at least one rotating actuating member (118, 120, 122) of the surgical instrument; an outer tubular body (210) having a proximal end (210a) supported by the transmission housing (212) and a distal end (210b) configured and adapted for its operative connection with the final effector (400); an articulated neck assembly (230) interconnecting the tubular body (210) and a distal neck housing (236) comprised in the shaft assembly, in which the articulated neck assembly is configured to allow articulation outside the axis of the distal neck housing and in which a first drive cable (266) and a second drive cable (268) extend at least partially through the articulated neck assembly; wherein the distal neck housing (236) interconnects a rotating actuating member (118, 120, 122) of the surgical instrument and a rotating receiving member (426) supported in the final effector, in which the housing (236 The distal neck includes a first end that can be connected to the rotating actuating member (118, 120, 122) of the surgical instrument and a second end that can be connected to the rotation receiving member (426) of the final effector, in the that the distal neck housing (236) is configured to transmit a rotation of the rotating actuating me