The article presents calculations of the choice of the shape of the working chamber for saw gin, for this purpose, a block diagram of the algorithm and a program for determining the tangential forces, as well as the interaction between the raw roller and the saw cylinder, and the dynamics of the movement of the raw roller in the working chamber of the gin saw.