Изобретение относитс к области станкостроени . Известно устройство дл нарезани резьбы, содержащее основание, закрепленное на поперечном суппорте станка, и подвижно установленньш на основании корпус с перемещающимс держателем инструмента и приводным валом с кулачками, взаимодействующими с соответствующими им роликами , из которых ролик кулачка рабочего хода установлен в направл ющих . Недостатком известного устройств вл етс невозможность нарезани внутренних резьб. Цель изобретени - расширение те нологических возможностей. Дл достижени цели корпус устройства установлен на основании с возможностью перемещени параллельн оси приводного вала, а направл ющие ролика кулачка рабочего хода установлены на том же основании с возможностью фиксаций и перемещени па раллельно оси приводного вала. На фиг. 1 изображено устройство поперечное сечение; на фиг. 2 - раз рез А-А на фиг. 1. Устройство дл нарезани резьбы состоит из корпуса 1, перемещающего с по основанию 2, закрепленному на поперечном суппорте 3 токарного автомата . В корпусе 1 на оси 4 установлен резцедержатель 5 с роликами 6 и 7 соответственно дл подвода и отвода инструмента 8. В корпусе также установлен приводной вал 9 с кулачками 10 и 11 соответственно дл перемещени корпуса и дл отвод и подвода инструмента. С кулачком взаимодействуют ролики 6 и 7 подвод и отвода инструмента, а с кулачком рабочего хода 10 - соответственно ролик 12, ось которого закреплена в направл кщих 13, смонтированных на основании 2 с возможностью фикси ровани и возвратно-поступательног перемещени . Корпус 1 устройства и основание выполнены с направл ющими поверхнос т ми Б, параллельными оси приводног вала 9. Направл ющие 13 ролика 12 также вьшолнены параллельно оси приводного вала 9. Работает предла,аемое устройство следуюпц€м образом. 072 1. Рассмотрим работу устройства при нарезании внутренней резьбы с радиальным врезанием инструмента (по стрелке В). Включают в, работу с помощью известного привода к(на чертеже не показан ) приводной вал 9. При этом за счет взаимодействи кулачка длины рабочего хода 10 с роликом 12, направл ющие которого 13 в это врем зафиксированы на основании 2, корпус начинает возвратно-поступательно перемещатьс направл ющими поверхност ми Б ПС основанию 2 параллельно оси приводного вала 9. В то же самое врем начинают взаимодействовать ролики 6 и 7 подвода и отвода инструмента с кулачком 11, и резцедержатель 5 совершает качательное движение на оси 4. Затем с помощью известного привода (на чертежах не показан) дл ввода инструмента 8 в обрабатываемое отверстие привод т в движение направл ющие 13 с роликом 12, который, взаимодейству с кулачком 10, перемещает корпус устройства с резцедержателем 5 и инструментом 8 в направлении к детали. Затем производ т фиксацию направл ющих 13 на основании 2, а поперечным суппортом 3 станка осуществл ют радиальную подачу инструмента, при которой происходит нарезание резьбы. За врем , которое поперечный суппорт 3 осуществл ет радиальную подачу , устройство совершает несколько циклов перемещений,- во врем которых инструмент производит нйрезание резьбы. После окончани обработ ки поперечньй суппорт 3 возвращаетс в исходное положение. Затем с помощью известного привода (не показан ) дл вывода инструмента 8 из обработанного отверсти привод т в движение направл ющую 13 с роликом 12, который, взаимодейству с кулачком 10, перемещает корпус устройства с резцедержателем и инструментом в исходное положение. 2. Рассмотрим работу устройства при нарезании наружной резьбы с радиальным врезанием инструмента. Включают в работу с помощью известного привода .(на чертеже не доказан ) приводной вал 9. При этом за счет взаимодействи кулачка 10 рабочего хода с роликом 12 корпус 1 начинает перемещатьс по направл ющим поверхност м Б основани 2 параллельThe invention relates to the field of machine tools. A threading device is known, comprising a base fixed on a machine cross support and movably mounted on the base of the body with a moving tool holder and a drive shaft with cams cooperating with their respective rollers, from which the running cam roller is mounted in guides. A disadvantage of the known devices is the impossibility of cutting internal threads. The purpose of the invention is the expansion of technological capabilities. To achieve the goal, the device body is mounted on the base with the possibility of moving parallel to the axis of the drive shaft, and the roller guides of the working stroke cam are installed on the same base with the possibility of fixing and moving parallel to the axis of the drive shaft. FIG. 1 shows a device cross section; in fig. 2 - time cut AA in FIG. 1. A threading device consists of a body 1 moving from a base 2 mounted on a transverse support 3 of a lathe. In the housing 1 on the axis 4, there is a tool holder 5 with rollers 6 and 7, respectively, for supplying and retracting the tool 8. The case also has a drive shaft 9 with cams 10 and 11, respectively, for moving the body and for retracting and supplying the tool. Rollers 6 and 7 supply and retract the tool interact with the cam, and roller 12, respectively, with the cam of the working stroke 10, the axis of which is fixed in the guides 13 mounted on the base 2 with the possibility of fixing and reciprocating movement. The device body 1 and the base are made with guide surfaces B parallel to the axis of the drive shaft 9. The guides 13 of the roller 12 are also executed parallel to the axis of the drive shaft 9. The proposed device works in the following way. 072 1. Consider the operation of the device when cutting internal threads with a radial cutting-in of the tool (along arrow B). The drive shaft 9 is engaged in operation by means of a known drive (not shown). At the same time, due to the interaction of the cam of the length of the working stroke 10 with the roller 12, the guides of which 13 are fixed at this time on the base 2, the housing begins to reciprocate move the guiding surfaces B of the PS to the base 2 parallel to the axis of the drive shaft 9. At the same time, the rollers 6 and 7 of the tool inlet and outlet of the tool start to interact with the cam 11, and the tool holder 5 oscillates on the axis 4. Then using estno actuator (not shown) for inputting the tool 8 in the processed hole is driven guide roller 13 and 12 which, interacting with cam 10, moves the apparatus body with the tool holder 5 and the tool 8 in the direction of the workpiece. Then, the guides 13 are fixed on the base 2, and the cross support 3 of the machine tool performs a radial tool feed at which thread cutting takes place. During the time that the transverse caliper 3 carries out a radial feed, the device performs several cycles of movements, during which the tool makes a thread cutter. After finishing the treatment, the transverse caliper 3 returns to its original position. Then, using a known actuator (not shown) for pulling the tool 8 out of the machined hole, a guide 13 with a roller 12 is driven, which, interacting with the cam 10, moves the device body with the tool holder and the tool to its original position. 2. Consider the operation of the device when cutting external thread with a radial cutting tool. The drive shaft 9 is turned on with the help of a known drive. (Not shown in the drawing). Due to the interaction of the cam 10 of the working stroke with the roller 12, the housing 1 begins to move along the guide surfaces B of the base 2 parallel