The invention relates to a machine for producing knitted fabric, comprising a plurality of stitch-forming elements and at least one stitch-forming location (15, 15.1, 15.2, 15.3), with which is associated a spinning device (12, 12.1, 12.2, 12.3) which produces a fiber composite (FB) or a yarn from a roving (VG) and supplies the same to the stitch-forming elements (14), wherein each spinning device (12, 12.1, 12.2, 12.3) is provided with separate drive devices (30, 31, 30.1, 31.1, 30.2, 31.2, 30.3, 31.3) which can be controlled in such a manner that a fiber composite (FB) or a yarn of variable thickness can be produced by each spinning device (12, 12.1, 12.2, 12.3) from the roving (VG) and be fed to the stitch-forming elements (14).