Изобретение относитс к автоматическому управлению, а именно к числовому программному управлению, и может быть применено в системах программного управлени координатными перемещени ми исполнительных органов станков. Известен функциональный генератор содержащий счетчики, элементы И, три гер, элемент ИЛИ П J. Недостатками этого генератора вл ютс отсутствие возможности выбора выходной частоты и зависимости от входных сигналов, а также отсутствие возможности разгона и торможени генератора до нужной частоты импульсов Наиболее близким к изобретению по технической сущности вл етс устройство , содержащее генератор импульсов элементы И, счетчики, дешифраторы задержки , блок пам ти, элемент ИЛИ 2 Однако известное устройство харак теризуетс недостаточным классом решаемых задач - отсутствует возможность выбора выходной частоты в зави симости от входных сигналов и возмож . ность разгона и торможени генератора до нзгасной частоты импульсов. Цель изобретени - расширение диапазона выходных частот. Поставленна цель достигаетс тем что в функциональный генератор, содержащий первый элемент ИЛИ, первый регистр, три счетчика, два элемента И и генератор импульсов, вход которого соединен с первым входом пер вого элемента И, выход которого соединен со счетным входом первого счетчи ка, выход второго элемента И соедииен со счетным входом второго счетчи ка, дополнительно введены второй регистр , две схемы сравнени , второй элемент ИЛИ, шифратор, мультиплексор и триггер, причем вход генератора со динен с установочным входом первого регистра и через шифратор - с установочными входами регистра второго и третьего счетчика, счетньй вход которого подключен к выходу мультиплексора , выходу генератора и первом входу второго элемента И, второй вход которого соединен с выходом пер вой схемы сравнени , выход триггера соединен с первым входом первого эле мента ИЛИ и входом реверса второго счетчика, выход которого подключен к управл ющему входу мультиплексора, первому входу первой схемы сравнени и входам с второго по (К+1), где К - разность счетчик а, первого элемента ИЛИ, выходы, третьего счетчика и первого регистра соединены соответственно с перым и вторым входами второй схемы сравнени , выход которой соединен с выходом установки в О триггера и второго регистра, выход которого подключен к второму входу первой схемы сравнени , выход шифратора через второй элемент ИЛИ соединен с входом установки в 1 триггера, выход первого счетчика соединен с информационным входом мультиплексора . На чертеже представлена блоксхема генератора. Функциональный генератор содержит шифратор 1, регистр 2, элемент ИЛИ 3 схему 4 сравнени , триггер 5, генератор 6, Элемент ИЛИ 7, элементы И 8 и 9, счетчики 10-12, регистр 13, мультиплексор 14, схему 15 сравнени , вход 16 и выход 17. Устройство работает следующим образом. Сигналы, поступающие на вход 16 устройства, поступают на вход шифратора 1 и одновременно записываютс в регистр 13. С выхода Шифратора 1 код, соответствующий входным сигналам, поступает на элемент ИЛИ 3 и записываетс в регистр 2 и через установочные выходы записываетс в счетчик 12. С элемента ИЛИ 3 сигнал подаетс на триггер 5.и устанавливает его в единичное состо ние. Сигнал с тригера 5 поступает на вход реверса счетчика 10 и через элемент ИЛИ 7 и элемент И 9 подключаетс генератор 6 импульсов к счетному входу счетчика 1 1 . Счетчик 11 в данной схеме вл етс делителем частоты. Каждый выход счетчика 11 подключен к соответствующему входу мультиплексора 14, т.е. в зависимости от того, какой вход мультиплексора 14 соединен с выходом 17, такова и выходна частота. Предположим, что в начальньш момент управл ющие входы мультиплексора 14 наход тс в нулевом состо нии . При подключении генератора 6 импульсов к счетчику 11 на выход 17 мультиплексора 14 проход т импульсы с частотой по входу . Импульс мультиплексора 14 поступает через элемент И 8 на счетный вход счетчика 10, и счетчик 10 устанавливает кодовые входы мультиплексора 14 в первое соето ние , вход Х отключаетс , а к выходу 17 подключаетс вход X и т.д.The invention relates to automatic control, namely numerical program control, and can be applied in software systems for controlling coordinate movements of machine actuators. A known generator containing counters, elements is And, three ger, element OR P J. The disadvantages of this generator are the lack of choice of output frequency and dependence on input signals, as well as lack of possibility of acceleration and deceleration of the generator to the desired frequency of pulses. a technical entity is a device containing a pulse generator elements AND, counters, delay decoders, a memory unit, an element OR 2 However, the known device is characterized by the lack nym class tasks - not possible to select an output frequency in dependence of the input signals and the possibility. acceleration and deceleration of the generator to the frequency of the pulses. The purpose of the invention is to expand the range of output frequencies. The goal is achieved by the fact that a functional generator containing the first OR element, the first register, three counters, two AND elements and a pulse generator, whose input is connected to the first input of the first And element, whose output is connected to the counting input of the first counter, the second output the element AND is connected with the counting input of the second counter; the second register, two comparison circuits, the second OR element, the encoder, the multiplexer and the trigger are additionally introduced, and the generator input is connected to the first input register and through the encoder - with the installation inputs of the register of the second and third counter, the counting input of which is connected to the multiplexer output, the generator output and the first input of the second element And, the second input of which is connected to the output of the first comparison circuit, the trigger output is connected to the first input of the first element OR and the reverse input of the second counter, the output of which is connected to the multiplexer control input, the first input of the first comparison circuit and the inputs from the second to (K + 1), where K is the difference between the counter of the first element OR, the outputs, the third About the counter and the first register are connected respectively to the first and second inputs of the second comparison circuit, the output of which is connected to the output of the installation O of the trigger and the second register, the output of which is connected to the second input of the first comparison circuit, the output of the encoder through the second element OR is connected to the input of the installation 1 trigger, the output of the first counter is connected to the information input of the multiplexer. The drawing shows the block diagram of the generator. Functional generator contains encoder 1, register 2, element OR 3 comparison circuit 4, trigger 5, generator 6, Element OR 7, AND elements 8 and 9, counters 10-12, register 13, multiplexer 14, comparison circuit 15, input 16 and output 17. The device operates as follows. Signals input to the device input 16 are input to the encoder 1 and are simultaneously recorded in register 13. From the output of the Encoder 1, the code corresponding to the input signals is sent to the OR 3 element and written to register 2 and recorded through the installation outputs into counter 12. the element OR 3, the signal is applied to the trigger 5. and sets it to the one state. The signal from the trigger 5 is fed to the input of the reverse of the counter 10 and through the element OR 7 and the element And 9 connects the generator 6 pulses to the counting input of the counter 1 1. Counter 11 in this circuit is a frequency divider. Each output of the counter 11 is connected to the corresponding input of the multiplexer 14, i.e. depending on which input of the multiplexer 14 is connected to the output 17, so is the output frequency. Suppose that at the initial moment the control inputs of multiplexer 14 are in the zero state. When a generator of 6 pulses is connected to the counter 11, the pulses are passed through the input to the output 17 of the multiplexer 14. The impulse of the multiplexer 14 is fed through the element AND 8 to the counting input of the counter 10, and the counter 10 sets the code inputs of the multiplexer 14 to the first connection, the input X turns off, and the output 17 connects the input X, etc.
Это продолжаетс до тех пор, пока код со счетчика 10, поступающий также на первьй вход схемы А сравнени не совпадает с кодом, поступающим из регистра 2 на вторые входы схемы 4 сравнени . После совпадени кодов схема 4 сравнени закрывает элемент И 8, следовательно счетчик 10 свое состо ние не измен ет и на выход 17 поступают импульсы с частотой соответствующей записанному коду.This continues until the code from counter 10, which also arrives at the first input of the comparison circuit A, does not coincide with the code received from register 2 at the second inputs of the comparison circuit 4. After the codes match, the comparison circuit 4 closes the AND 8 element, therefore the counter 10 does not change its state and the output 17 receives pulses with a frequency corresponding to the recorded code.
С выхода 17 мультиплексора 14 сигналы поступают на счетный вход счетчика 12 и он начинает считать, начина с того кода, который записан в него ранее с выхода шифратора 1. Информационный сигнал с выхода счетчика 12 поступает на первые входы схемы 15 сравнени , а на вторые входы поступает информаци , записанна в регистре 13. После совпадени информации , поступающей со счетчика 12 и регистра 13, с выхода схемы 15 сравнени поступает сигнал на оброс регистра 2 и триггера 5. На вход реверса счетчика 10 сигнал с триггера 5 прекращает поступать и счетчик 10 подготавливаетс дл счета в обратном направлении. Открьгааетс From the output 17 of the multiplexer 14, the signals arrive at the counting input of the counter 12 and it starts counting, starting with the code recorded in it earlier from the output of the encoder 1. The information signal from the output of the counter 12 goes to the first inputs of the comparison circuit 15, and to the second inputs the information recorded in register 13 comes in. After the information from counter 12 and register 13 matches, output from the comparison circuit 15 is received to wrap register 2 and trigger 5. To the reverse of the counter 10, the signal from trigger 5 stops flowing and counter 10 prepared for counting in the opposite direction. Otkrygaetsa
злемент И 8, на счетный вход счетчика 10 начинают поступать импульсы-с выхода 17 мультиплексора 14 и счетчик 10 начинает счет в обратном направлении , подключа .последовательно входы мультиплексора 14. При обнулении всех разр дов счетчика 10 элемент И 9 закрываетс и отключаетс генератор 6 импульсов. Цикл работы функционального генератора закончен. Новый цикл начинаетс при подаче на вход 16 новых входных сигналов.Element I 8, pulses from the output 17 of the multiplexer 14 begin to arrive at the counting input of the counter 10 and the counter 10 starts counting in the opposite direction, connecting the inputs of the multiplexer 14 in succession. When all the bits of the counter 10 are zero, the element 9 closes and turns off the pulse generator 6 . The cycle of operation of the functional generator is over. A new cycle starts when 16 new inputs are applied to the input.
Таким образом, в предлагаемом функциональном генераторе по сравнению с известным по вл етс возможность выбора входной частоты в зависимости от входных сигналов и возможность разгона и торможени генератора до нужной частоты импульса. Расширение функциональных возможностей позвол ет примен ть функциональные генераторы в системах программного управлени перемещени ми. Устройство позвол ет осуществл ть разгон двигател , торможени , выбор скорости в зависимости от величины перемещений и обработку заданного перемещени . Входными сигналами в данном случае вл ютс сигналы с программоносител о величине перемещени .Thus, in the proposed functional generator, in comparison with the known generator, it is possible to select the input frequency depending on the input signals and the possibility of acceleration and deceleration of the generator to the desired pulse frequency. Expansion of functionality allows the use of functional generators in software motion control systems. The device allows acceleration of the engine, braking, selection of speed depending on the magnitude of the movements and processing of the specified movement. The input signals in this case are the signals from the program carrier on the magnitude of the displacement.