SU750480A1 - Device for comparing numbers with tolerances - Google Patents
Device for comparing numbers with tolerances Download PDFInfo
- Publication number
- SU750480A1 SU750480A1 SU782631444A SU2631444A SU750480A1 SU 750480 A1 SU750480 A1 SU 750480A1 SU 782631444 A SU782631444 A SU 782631444A SU 2631444 A SU2631444 A SU 2631444A SU 750480 A1 SU750480 A1 SU 750480A1
- Authority
- SU
- USSR - Soviet Union
- Prior art keywords
- input
- counter
- output
- code
- value
- Prior art date
Links
- 230000002441 reversible effect Effects 0.000 description 20
- 238000009434 installation Methods 0.000 description 4
- 238000000034 method Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 1
- 238000005259 measurement Methods 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
Landscapes
- Complex Calculations (AREA)
- Image Analysis (AREA)
Description
(54) УСТРОЙСТВО ДЛЯ СРАВНЕНИЯ ЧИСЕЛ (54) DEVICE FOR COMPARING NUMBERS
1one
Изобретение относитс к автоматике и вычислительной технике и может быть использовано в автоматизированных цифровых системах контрол и управлени .The invention relates to automation and computing and can be used in automated digital monitoring and control systems.
Известны устройства дл сравнени чисел с допусками дл проверки работоспособности объекта контрол по принципу «меньше , «норма, «больше с разбиением пол допуска на градации 1.Devices are known for comparing numbers with tolerances for testing the performance of a control object on the principle of “less,” rate, “more with a split tolerance field into grades 1.
Недостаток устройства - обладает значительной погрешностью результата сравнени в градаци х, котора обусловлена округлением значени градации до целого числа.The disadvantage of the device is that it has a significant error of the comparison result in gradations, which is caused by the rounding of the gradation value to an integer.
Наиболее близким к предлагаемому по технической сущности вл етс устройство, содержащее элементы И, И-ИЛИ-НЕ, триггер , счетчики, реверсивный счетчик, схемы сравнени , блок пам ти, причем первый вход управлени устройства соединен с первым входом первого, второго и третьего элементов И, первым входом управлени реверсивного счетчика и со входом управлени блока пам ти, выходы которого подключены к первым группам входов первой и второй схемы сравнени , вторые группы входов С ДОПУСКАМИThe closest to the proposed technical entity is a device containing AND, AND-OR-NOT elements, a trigger, counters, a reversible counter, comparison circuits, a memory block, the first control input of the device connected to the first input of the first, second and third elements And, by the first control input of the reversible counter and with the control input of the memory unit, the outputs of which are connected to the first input groups of the first and second comparison circuit, the second input groups With ACCESS
которых соединены с выходами первого счетчика и реверсивного счетчика соответственно, второй вход первого элемента И подключен ко второму входу управлени устройства, а выход - информационному (счетному)which are connected to the outputs of the first counter and the reversible counter, respectively, the second input of the first element I is connected to the second control input of the device, and the output is informational (counting)
5 входу реверсивного счетчика и первого счетчика , выход первой схемы сравнени соединен со входами управлени первого счетчика и с информационным входом второго счетчика , выходы которого подключены ко входам элементов И группы, первый выход5 to the input of the reversible counter and the first counter, the output of the first comparison circuit is connected to the control inputs of the first counter and to the information input of the second counter, the outputs of which are connected to the inputs of the And group elements, the first output
10 второй схемы сравнени соединен с первым входом элемента И-ИЛИ-НЕ и со вторым входом второго элемента И, второй выход схемы сравнени подключен ко второму входу элемента И-ИЛИ-НЕ и ко второму10 of the second comparison circuit is connected to the first input of the AND-OR-NOT element and to the second input of the second element AND, the second output of the comparison circuit is connected to the second input of the AND-OR-NOT element and to the second
j входу третьего элемента И, выходы второго и третьего элементов И соединены со входами установки триггера в единичное и нулевое состо ние соответственно, пр мой выход триггера подключен к третьему входу элементов И-ИЛИ-НЕ и ко второму входуj to the input of the third element AND, the outputs of the second and third elements AND are connected to the inputs of the trigger installation in the single and zero state respectively, the direct output of the trigger is connected to the third input of the AND-OR-NOT elements and to the second input
20 управлени реверсивного счетчика, инверсный выход триггера соединен с четвертым входом элемента И-ИЛИ-НЕ и с третьим входом управлени реверсивного счетчика, выход элемента И-ИЛИ-НЕ подключен к управл ющим входам элeмeFlтoв И группы и к третьему входу первого элемента И 2. Недостаток устройства - при округлении кода значени одной градации до целого числа точность результата сравнени зависит от степени округлени и ведичины отклонени кода значени измер емого параметра от его номинала. Цель изобретени - повышение точности сравнени чисел с допусками при разбиении пол допуска на градации. Поставленна цель достигаетс тем, что устройство, содержащее группы элементов И, элементы И, триггер, счетчики, реверсивный счетчик, схемы сравнени , блок пам ти, причем первый вход управлени устройства соединен с первыми входами первого, второго и третьего элементов И, с первым входом управлени реверсивного счетчика и со входом управлени блока пам ти, перва и втора группы выходов которого подключены к первым группам входов соответственно первой и второй схем сравнени , втора группа входов первой схемы сравнени соединена с выходами реверсивного счетчика, втора группа входов второй схемы сравнени подключена к выходам первого счетчика второй вход первого элемента И соединен со вторым входом управлени устройства, а выход первого элемента И подключен к информационно.му входу первого счетчика, выход второй схемы сравнени соединен со входом управлени первого счетчика и с информационным входом второго счетчика, выходы которого подключены ко входам элементов И группы, первый и второй выходы первой схемы сравнени соединены с первыми входами второго и третьего элементов И соответственно, выход второго элемента И соединен со входом установки в единичное состо ние триггера, выход третьего элемента И соединен со входом установки в нулевое состо ние триггера, пр мой и инверсный выходы которого подключены соответственно ко второму и третьему входам управлени реверсивного счетчика, третий выход первой схемы сравнени соединен с управл ющими входами элементов И группы и третьим входом первого элемента И, введены третий счетчик и треть схема сравнени , перва группа входов которой соединена с третьей группой выходов блока пам ти , а втора группа входов подключена к выходам третьего счетчика, информационный вход которого соединен с выходом первого элемента И, а выход третьей схемы сравнени подключен к управл ющему входу третьего счетчика и к информационному входу реверсивного счетчика. На чертеже представлена блок-схема устройства. Устройство содержит реверсивный счетчик 1, элемент И 2, схемы 3, 4, 5 сравнени , блок 6 пам ти, счетчики 7, 8, 9, группу элементов И 10, элементы И 11, 12, триггер 13, входную щину 14, входы 15, 16 управлени , входную шину 17, выходные шины 18, 19, 20. Устройство работает следующим образом Перед началом работы на устройство поступает сигнал сброса (на чертеже не показан), который устанавливает все три счетчика в нулевое состо ние. Информаци об измер емом значении параметра в виде кода, поступающа по входной шине 14, записываетс в пр мом коде в реверсивный счетчик 1 сигналом, поступающим по входу 15 управлени . Этим же сигналом открываетс первый элемент И 2, а также записываютс в блок 6 пам ти коды, поступающие по входной шине 17. Эти коды соответствуют номинальному значению параметра, значению допуска и количеству градаций в поле допуска. В схеме сравнени происходит сравнение кодов номинального значени параметра , поступающего из блока 6 пам ти и измер емого значени параметра, поступающего из реверсивного счетчика 1 и результат сравнени записываетс в триггер 13 сигналом по входу 15 управлени через элементы И 11, 12. При значении кода измер емого значени меньше номинального значени параметра сигнал с первого выхода схемы 4 сравнени устанавливает триггер 13 в положение, обеспечивающее сигнализацию знака отклонени измер емого параметра от его номинального значени , который в данном случае «меньше, о чем свидетельствует сигнал на выходной шине 19 и переключает по второму входу управлени реверсивный счетчик 1 в режим сложени . Последовательность тактирующих импульсов по входной шине 16 через открытый элемент И 2 поступает на информационный вход счетчиков 7 и 8, работающих в счетном режиме. Результат, соответствующий количеству поступивших тактовых импульсов, сравниваетс схемой 3 сравнени с кодом, поступающим из блока 6 пам ти, значение которого равно количеству градаций, на которое разделено поле допуска. Результат сравнени кодов в виде сигнала с выхода схемы 3 сравнени поступает на информационный вход реверсивного счетчика 1 и на вход установки в нулевое состо ние счетчика 7. Таким образом, в реверсивном счетчике 1 за один такт совпадени кодов в схеме 3 сравнени значение кода увеличиваетс на единицу. Этот процесс повтор етс периодически до тех пор, пока на информационном входе счетчика 7 существует последовательность тактирующих импульсов При равенстве кода реверсивного счетчика 1 с кодом номинального значени поступающего с блока 6 пам ти в схеме 4 сравнени сигнал с первого выхода снимаетс , а на третьем выходе вырабатываетс сигнал, который закрывает элемент И 2, прекраща поступление тактирующих импульсов на информационный вход счетчиков 7 и 8. Одновременно сигнал с третьего выхода схемымы 4 сравнени поступает на вход группы элементов И 10, на второй вход которых поступает код счетчика 9 и при их совпадении код, соответствующий градации, поступает на выходную шину 18 устройства.20 of the control of the reversible counter, the inverse output of the trigger is connected to the fourth input of the AND-OR-NOT element and the third control input of the reversible counter, the output of the AND-OR-NOT element is connected to the control inputs of the ANDF group's third input and to the third input of the first And 2 element. The drawback of the device is that when rounding the code of the value of one gradation to an integer, the accuracy of the comparison result depends on the degree of rounding and the amount of deviation of the code of the value of the measured parameter from its nominal value. The purpose of the invention is to improve the accuracy of comparing numbers with tolerances when splitting the tolerance field into gradations. The goal is achieved by the fact that a device containing groups of elements AND, elements AND, a trigger, counters, a reversible counter, comparison circuits, a memory block, the first control input of the device connected to the first inputs of the first, second and third elements AND control of the reversible counter and with the control input of the memory unit, the first and second groups of outputs of which are connected to the first groups of inputs of the first and second comparison circuits, respectively, the second group of inputs of the first comparison circuit connected to the output Dami reversible counter, the second group of inputs of the second comparison circuit is connected to the outputs of the first counter, the second input of the first element I is connected to the second control input of the device, and the output of the first element I is connected to the information input of the first counter, the output of the second comparison circuit is connected to the control input of the first the counter and the information input of the second counter, the outputs of which are connected to the inputs of the elements AND of the group, the first and second outputs of the first comparison circuit are connected to the first inputs of the second and third elements And respectively, the output of the second element I is connected to the input of the installation in a single trigger state, the output of the third element I is connected to the input of the installation in a zero state of the trigger, the direct and inverse outputs of which are connected respectively to the second and third control inputs of the reversible counter, the third the output of the first comparison circuit is connected to the control inputs of the AND elements of the group and the third input of the first AND element, the third counter and the third comparison circuit are introduced, the first group of inputs of which is connected the third group of outputs of the memory unit, and the second group of inputs is connected to the outputs of the third counter, the information input of which is connected to the output of the first element I, and the output of the third comparison circuit is connected to the control input of the third counter and to the information input of the reversible counter. The drawing shows the block diagram of the device. The device contains a reversible counter 1, the element And 2, schemes 3, 4, 5 comparison, block 6 memory, counters 7, 8, 9, a group of elements And 10, elements And 11, 12, trigger 13, input bar 14, inputs 15 , 16 control, input bus 17, output buses 18, 19, 20. The device works as follows. Before starting work, the device receives a reset signal (not shown), which sets all three counters to the zero state. Information about the measured value of the parameter in the form of a code, inputted on the input bus 14, is recorded in forward code to the reversible counter 1 by a signal inputted on the control input 15. With the same signal, the first element 2 opens, and codes written on the input bus 17 are also recorded in memory block 6. These codes correspond to the nominal value of the parameter, the value of the tolerance and the number of gradations in the tolerance field. In the comparison circuit, the codes of the nominal value of the parameter coming from the memory block 6 and the measured value of the parameter coming from the reversible counter 1 are compared and the result of the comparison is recorded into trigger 13 by a signal at the control input 15 through elements 11, 12. With the value of the measurement code value less than the nominal value of the parameter; the signal from the first output of the comparison circuit 4 sets the trigger 13 to a position that indicates the sign of the deviation of the measured parameter from its nominal value which in this case is "less, as indicated by the signal on the output bus 19 and switching the reversing counter 1 to the addition mode on the second control input. The sequence of the clock pulses on the input bus 16 through the open element And 2 enters the information input of the counters 7 and 8, operating in the counting mode. The result corresponding to the number of received clock pulses is compared by comparison circuit 3 with the code received from memory block 6, the value of which is equal to the number of gradations into which the tolerance field is divided. The result of comparing the codes in the form of a signal from the output of the comparison circuit 3 is fed to the information input of the reversible counter 1 and to the input of setting the zero state of the counter 7. Thus, in the reversible counter 1, the code value increases by one in one clock cycle of matching the codes in the comparison circuit 3 . This process is repeated periodically until a sequence of clock pulses exists at the information input of counter 7. If the code of the reversible counter 1 is equal to the code of the nominal value received from memory block 6 in the comparison circuit 4, the signal from the first output is removed, and the third output is generated the signal that closes the element 2, stopping the arrival of the clock pulses at the information input of counters 7 and 8. At the same time, the signal from the third output of the comparison circuit 4 is fed to the input of the group e The elements 10, the second input of which receives the counter code 9, and if they coincide, the code corresponding to the gradation enters the output bus 18 of the device.
Значение кода, соответствующее количеству поступивших тактовых импульсов в счетчик 8, сравниваетс с кодом, поступившим из блока 6 пам ти, значение которого равно коду допуска. Результат сравнен« этих кодов в виде сигнала с выхода схемы 5 сравнени поступает на информационный вход счетчика 9 и на вход установки в нулевое состо ние счетчика 8. Таким образом, за каждый такт совпадени кодов в схеме 5 сравнени , при котором на счетчик 8 поступает количество тактовых импульсов, равное значению кода допуска, на счетчик 9 поступает один импульс. Этот процесс повтор етс периодически до тех пор, пока на информационном входе счетчика 8 существует последовательность тактирующих импульсов.The code value corresponding to the number of received clock pulses in counter 8 is compared with the code received from memory block 6, the value of which is equal to the tolerance code. The result is compared to these codes in the form of a signal from the output of the comparison circuit 5 to the information input of the counter 9 and to the installation input to the zero state of the counter 8. Thus, for each code tick in the comparison circuit 5, at which the quantity 8 clock pulses equal to the value of the tolerance code, one pulse is sent to the counter 9. This process is repeated periodically until a sequence of clocks exists on the information input of the counter 8.
С выхода счетчика 9 снимаетс информаци о количестве градаций, укладывающихс в отклонении измер емого параметра от номинала.From the output of the counter 9, information about the number of gradations placed in the deviation of the measured parameter from the nominal is removed.
Если код измер емого значени параметра находитс в пределах допуска или за полем допуска, но больше номинального значени параметра, то на втором выходе схемы 4 сравнени возникает сигнал уровнем логической «1, а на первом и третьем выходе отсутствует сигнал, т. е. выдаетс напр жение уровнем логического «О. Сигнал со второго выхода схемы 4 сравнени устанавливает триггер 13 в положение, обеспечивающее выдачу сигнала уровнем «1 на выходе 20, сигнализиру , что код измер емого значени параметра больще номинального . Одновременно сигнал уровнем «1 со второго выхода схемы 4 сравнени переключает по третьему входу управлени ревер сивный счетчик 1 в режим вычитани . Последовательность тактирующих импульсов, аналогично предыдущему, поступает через открытый элемент И 2 на информационный вход счетчиков 7 и 8, работающих в счетном режиме и значение кодов этих счетчиков сравниваетс соответственно схемами 3 и 5 сравнени , с выхода которых результат сравнени кодов в виде сигнала поступает на вход установки в нулевое состо ние счетчиков 7 и 8 соответственно на информационный вход реверсивного счетчика 1 и счетчика 9. Таким образом, в реверсивном счетчике 1 за один такт совпадени кодов в схеме 3 сравнени значение кода уменьшаетс на единицу. Этот процесс повтор етс периодически до тех пор, пока значение кода в реверсивном счетчике 1 не станет равным коду номинального значени параметра поступающего на вход схемы 4 сравнени из блока 6 пам ти. При равенстве кодов в схеме 4 сравнени на третьем ее выходеIf the code of the measured parameter value is within the tolerance or beyond the tolerance field, but is greater than the nominal value of the parameter, then the second output of the comparison circuit 4 produces a signal with a logic level "1, and there is no signal at the first and third output, i.e. logical level “O. The signal from the second output of the comparison circuit 4 sets the flip-flop 13 to the position providing the signal output by the level "1 at the output 20, indicating that the code of the measured parameter value is more than the nominal value. At the same time, the signal level "1" from the second output of the comparison circuit 4 switches the reversing counter 1 to the subtraction mode via the third control input. The sequence of clocking pulses, similarly to the previous one, is fed through the open element I 2 to the information input of counters 7 and 8 operating in the counting mode and the value of the codes of these counters are compared by comparison circuits 3 and 5, respectively, from the output of which the result of comparing codes as a signal goes to the input setting the zero state of the counters 7 and 8, respectively, to the information input of the reversible counter 1 and the counter 9. Thus, in the reverse counter 1, for one clock cycle, the codes in the comparison circuit 3 The reading of the code is reduced by one. This process is repeated periodically until the code value in the reversible counter 1 becomes equal to the code of the nominal value of the parameter of the incoming circuit 4 of the comparison from memory block 6. With the equality of the codes in the scheme 4 of the comparison at its third output
вырабатываетс сигнал уровнем «1, который закрывает элемент И 2, прекраща поступление тактирующих импульсов на информационный вход счетчиков 7 и 8 и открывает группу элементов И 10, обеспечива индикацию кода количества (значени ) градаций, зафиксированного счетчиком 9. Таким образом, и в этом случае определ етс величина отклонени измер емого параметра от его номинального значени в градации и его знак.The signal is generated by the level "1", which closes the element AND 2, stopping the arrival of clocking pulses at the information input of counters 7 and 8 and opens the group of elements AND 10, providing an indication of the code of the number (value) of gradations recorded by the counter 9. Thus, in this case the amount of deviation of the measured parameter from its nominal value in the gradation and its sign is determined.
0 Введение третьего счетчика, третьей схемы сравнени и новых св зей выгодно отличает предлагаемое устройство дл сравнени чисел с допусками от известного, так как повыщает точность устройства. В устройстве отсутствует погрешность, возникающа в результате округлени кода значени одной градации до целого числа, так как в блок пам ти заноситс код значени пол допуска и код числа количества градаций . Таким образом, в предлагаемом устройстве происходит умножение кода значени отклонени измер емого параметра от его номинала на число количества градаций в поле допуска с одновременным делением пачки тактовых импульсов счетчиком 8 и схемой 5 сравнени . Результат сравнени 0 The introduction of the third counter, the third comparison scheme and the new connections favorably distinguishes the proposed device for comparing numbers with tolerances from the known, as it increases the accuracy of the device. There is no error in the device resulting from rounding the code of the value of one gradation to an integer, since the code of the tolerance field value and the number of the number of gradations are entered into the memory block. Thus, in the proposed device, the code multiplies the value of the deviation of the measured parameter from its nominal value by the number of gradations in the tolerance field while simultaneously dividing the packet of clock pulses by the counter 8 and the comparison circuit 5. Comparison result
заноситс в счетчик 9.is entered into the counter 9.
Claims (2)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU782631444A SU750480A1 (en) | 1978-06-15 | 1978-06-15 | Device for comparing numbers with tolerances |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| SU782631444A SU750480A1 (en) | 1978-06-15 | 1978-06-15 | Device for comparing numbers with tolerances |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| SU750480A1 true SU750480A1 (en) | 1980-07-23 |
Family
ID=20771350
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| SU782631444A SU750480A1 (en) | 1978-06-15 | 1978-06-15 | Device for comparing numbers with tolerances |
Country Status (1)
| Country | Link |
|---|---|
| SU (1) | SU750480A1 (en) |
-
1978
- 1978-06-15 SU SU782631444A patent/SU750480A1/en active
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| SU750480A1 (en) | Device for comparing numbers with tolerances | |
| SU681428A1 (en) | Device for selecting minimum number | |
| SU1315972A1 (en) | Dividing device | |
| SU767753A1 (en) | Number comparator | |
| SU830378A1 (en) | Device for determining number position on nimerical axis | |
| SU543936A1 (en) | Device for comparing binary numbers with tolerances | |
| SU1670788A1 (en) | Frequency divider of sequence of pulses with variable fractional coefficient of division | |
| SU1239822A1 (en) | Device for stabilizing speed of electric drive | |
| SU938280A1 (en) | Device for number comparison | |
| SU440795A1 (en) | Reversible binary counter | |
| SU930223A1 (en) | Time interval meter | |
| SU983566A1 (en) | Frequency digital measuring device | |
| SU1275762A1 (en) | Pulse repetition frequency divider | |
| SU1307440A1 (en) | Range meter of sequentially counted time intervals | |
| SU928345A2 (en) | Discrete pulse repetition frequency multiplier | |
| SU708347A1 (en) | Arrangement for comparing binary numbers with tolerances | |
| SU811316A1 (en) | Indication device | |
| SU402154A1 (en) | USSR Academy of Sciences | |
| SU1359772A1 (en) | Circular interpolator | |
| SU830247A1 (en) | Digital meter of shaft acceleration | |
| SU930685A1 (en) | Counting device | |
| SU756352A1 (en) | Digital device for control of stepping motor | |
| SU693372A1 (en) | Divider | |
| SU517906A1 (en) | Graphic reading device | |
| SU593211A1 (en) | Digital computer |