Изобретение относитс к измери-тельной технике и может быть ис;пользовано дл контрол и управлени при нанесении гальванического покрыти .. Известно устройство, содержащее источник питани , шунт, нагрузку , усилитель посто нного тока, управл емый генератор, счетчик, элемент И и элементы ИЛИ С 3Известно устройство, содержащее первый триггер, элемент ИЛИ, два элемента И, первый счетчик, источник питани и нагрузку, к первому выводу которой подключен вывод шунта и первый вход усилител посто нного тока, второй вход которого подключен к второму выводу шунта, а выход соединен с управл ющим входом генератора импульсов, выходы которого соеди нены с соответствующими входами ре веосивного счетчика С2 J. Недостатками известных устройств вл ютс их узкие .функциональные воз можности. Цель изобретени - расширение фу кциональных возможностей. Поставленна цель достигаетс тем, что в устройство , содержащее первуй триггер, элемент ИЛИ, два эл мента И, первый счетчик, источник и нагрузку, к первому вывод которой подключены первый вывод шун и первый вход усилител посто нного тока, второй вход которого подключен к второму выводу шунта, а выход соединен с управл ющим входом генератора импульсов, выходы которого соединены с соответствующими входами реверсивного счетчика, вве дены второй счетчик, три блока срав нени кодов, три блока программ, второй триггер и коммутатор пол рности , причем кодовые выходы реверсивного счетчика соединены с первым входами первого блока сравнени кодо вторые входы которого соединены с вы ходами первого блока программ, а вы ход соединен с установочным входом первого триггера, запускающий вход которого соединен с шиной запускающего сигнала, а выход соединен с первым управл ющим входом коммутатора пол рности, входы которого подклю чены к выходу источника питани , пер вый :выходной вывод которого соединен с вторым выводом нагрузки, а второй выходной вывод соединен с вторым выводом шунта, второй управл ющий вход коммутатора пол рности соединен с первым входом второго триггера и с первым входом первого элемента И, второй вход которого соединен с первым выходом генератора импульсов, а выход соединен со счетным входом первого счетчика, кодовые выходы которого соединены с первыми входами второго блока сравнени кодов, вторые входы которого соединены с выходами второго блока программ, а выход соединен с первым входом элемента ИЛИ, второй вход которого соединен с шиной установочного сигнала, с установочными входами первого и второго счетчиков и реверсивного счетчика, а выход соединен с первым входом второго триггера, второй выход которого соединен с вторым управл ющим входом коммутатора пол рности и с первым входом второго элемента И, второй вход которого соединен с вторым выходом генератора импульсов, а выход соединен со счетным входом второго счетчика, кодовые выходы которого соединены с первыми входами третьего блока сравнени .кодов, вторые входы которого соединены с выходами третьего блока программ , а выход соединен с вторым входомвторого триггера. На чертеже представлена блок-схема счетчика ампер-часов. Счетчик ампер-часов содержит шунт 1 , которого подключены к входам усилител 2 посто нного тока, выход которого через генератор 3 импульсов подключен к входам реверсивного счетчика , кодовые выходы которого соединены с первыми входами блока 5. сравнени кодов, вторые входы которого соединены с выходами блока 6 программ, а выход соединен с установочным входом триггера 7, запускающий вход которого соединен с шиной 8 запускающего сигнала, а выход соединен с первым управл ющим входом коммутатора 9 пол рности, входы которого соединены с выходам источника 10 питани , а выходы - один неПосредственно , а второй через шунт соединены с нагрузкой 11, второй и третий управл ющие входы коммутатора 9 соединены с выходами триггера 12 , первый вход которого соединен с выходом блока 13 сравнени кодов , входы которого соединены с выходами блока k программ и с кодовыми выходами счетчика 15, счетный вход KOTopcjro соединен с выходом элемента И 16, первый вход которого сое динен с первым выходом триггера 12, и второй вход соединен .с первым выходом генератора , второй выход. которого соединен с- первым входом эл мента И 17, второй вход которого соединен с вторым выходом триггера 12, а выход соединен со счетным вхо дом счетчика 18, кодовые выходы которого соединены с первыми выходаМи блока 19 сравнени , вторые входы которого соединены с выходами блока 20, а выход - с первым входом элемента ИЛИ 21, выход которого соединен с первым входом триггера 12, а второй вход соединен с клеммой 22 у тановочного сигнала и с установочными выходами счетчиков ,15 и 18. Счетчик ампер-часов работает сле дующим образом. По по влении сигнала установки н л на клемме 22 счетчики i, и 18 устанавливаютс в нулевое состо ние , а на выходе элемента ИЛИ 21 по вл етс сигнал, поступащий на уст новочный вход триггера 12. Сигнал с первого выхода триггера 12 подготавливает включение коммутатора 9 пол рности дл прохождени тока в пр мом направлении, а также поступает на первый вход элемента И 16, При по влении запускающего сигнала на шине 8 срабатывает триггер 7, включающий коммутатор 9 пол рности . Напр жение, снимаемое с шунта 1 , через усилитель 2 поступает на вход генератора 3. В зависимости от величины и пол рности измер емого напр жени на одном из его выходов по вл ютс импульсы, частота которых определ етс напр жением на шунте 1 . При положительной пол рности нап жени на шунте 1 импульсы с первого выхода генератора 3 поступают на суммирующий вход реверсивного счетчика k и на второй вход элемента И выходной сигнал которого поступает , на суммирунэщий вход счетчика 15. Код, соответствующий количеству электричества, прошедшему через шунт 1 в пр мом направлении, сформированный в счетчике 15, сравниваетс с выходным кодом блока I программ. При равенстве кодов по вл етс си|- нал на выходе блока 5 сравнени кодов, который переключает в единичное состо ние триггер 12.Сигнал на первом выходе триггера 12 переключает коммутатор 9 пол рности дл прохождени тока Б обратном направлении и поступает на первый вход элемента И 17. При отрицательной пол рности напр жени на шунте 1 импульсы с второго выхода генератора 3 поступают на вычитающий вход реверсивного счетчика А и на второй вход элемента И 17, выходные сигналы с которого поступают на вход счетчика 18. Код, соответствующий количеству электричества, выделенного источником питани в об- .. ратном направлении и сформированный в счетчике 18, сравниваетс с выходным кодом блока 20. При равенстве кодов по вл етс сигнал на выходе блока 19, который через элемент ИЛИ 21 переключает в нулевое состо ние триггер 12. Сигнал с второго выхода триггера 12 переключает коммутатор 9 пол рности .дл прохождени тока в пр мом направлении. Число, соответствующее разности количества электричества, выделенного источником питани в пр мом и обратном направлении, преобразованное в. код реверсивным счетчиком , сравниваетс с выходным кодом блока 6. При равенстве кодов по вл етс сигнал на выходе блока 5, который переключает триггер 7, который, воздейству на коммутатор 9 пол рности, отключает источник питани . Предлагаемое устройство позвол ет не только измер ть прохождение количества элекгричества, но и по резуль татам измерени управл ть гальваническим процессом, что расшир ет функции счетчика ампэр-часов и пов191шает качество гальванических процессов.The invention relates to a measuring technique and can be used for monitoring and control during electroplating. A device is known comprising a power source, a shunt, a load, a DC amplifier, a controlled generator, a counter, an AND element and OR elements With 3, a device is known that contains the first trigger, the OR element, two AND elements, the first counter, the power source and the load, to the first output of which the shunt terminal and the first input of the DC amplifier are connected, the second input of which is connected to the V The output of the shunt, and the output is connected to the control input of the pulse generator, the outputs of which are connected to the corresponding inputs of the C2 J reconnaissance counter. The disadvantages of the known devices are their narrow functional capabilities. The purpose of the invention is the expansion of functional capabilities. The goal is achieved by the fact that the device containing the first trigger, the OR element, two AND elements, the first counter, the source and the load, to the first output of which the first terminal of the shun and the first input of the DC amplifier are connected, the second input of which is connected to the second the output of the shunt, and the output is connected to the control input of the pulse generator, the outputs of which are connected to the corresponding inputs of the reversing counter, a second counter, three code comparison blocks, three program blocks, a second trigger and a polar switch are entered The code outputs of the reversible counter are connected to the first inputs of the first Kod comparison unit whose second inputs are connected to the outputs of the first program block, and the output is connected to the setup input of the first trigger, the triggering input of which is connected to the trigger signal bus, and the output is connected to the first control the input switch of the polarity, the inputs of which are connected to the output of the power source, the first: the output terminal of which is connected to the second output of the load, and the second output output is connected to the second output of one, the second control input of the polarity switch is connected to the first input of the second trigger and the first input of the first element I, the second input of which is connected to the first output of the pulse generator, and the output is connected to the counting input of the first counter, the code outputs of which are connected to the first inputs of the second the code comparison unit, the second inputs of which are connected to the outputs of the second program block, and the output is connected to the first input of the OR element, the second input of which is connected to the bus of the setup signal, to the installation inputs of the second and second counters and the reversible counter, and the output is connected to the first input of the second trigger, the second output of which is connected to the second control input of the polarity switch and to the first input of the second element And, the second input of which is connected to the second output of the pulse generator, and the output is connected with the counting input of the second counter, the code outputs of which are connected to the first inputs of the third comparison block of codes, the second inputs of which are connected to the outputs of the third program block, and the output connected to the second input of the second t rigger. The drawing shows a block diagram of the counter ampere-hours. The ampere-hour meter contains shunt 1, which is connected to the inputs of the DC amplifier 2, the output of which through the generator 3 pulses is connected to the inputs of the reversible counter, the code outputs of which are connected to the first inputs of the block 5. comparison of codes, the second inputs of which are connected to the outputs of the block 6 programs, and the output is connected to the setup input of the trigger 7, the trigger input of which is connected to the bus 8 of the trigger signal, and the output is connected to the first control input of the polarity switch 9, the inputs of which are connected to the output the power supply source 10, and the outputs, one directly, and the second through a shunt are connected to the load 11, the second and third control inputs of the switch 9 are connected to the outputs of the trigger 12, the first input of which is connected to the output of the code comparison unit 13, the inputs of which are connected to the outputs k programs and with the code outputs of the counter 15, the KOTopcjro counting input is connected to the output of the element 16, the first input of which is connected to the first output of the trigger 12, and the second input is connected to the first output of the generator, the second output. which is connected to the first input of the element I 17, the second input of which is connected to the second output of the trigger 12, and the output is connected to the counting input of the counter 18, the code outputs of which are connected to the first outputs of the comparison block 19, the second inputs of which are connected to the outputs of the block 20 and the output to the first input of the OR element 21, the output of which is connected to the first input of the trigger 12, and the second input is connected to the terminal 22 at the setting signal and to the installation outputs of the counters, 15 and 18. The ampere-hour meter works as follows. At the appearance of the set-up signal at terminal 22, the counters i, and 18 are set to the zero state, and the output of the OR element 21 is received by a signal fed to the setup input of trigger 12. The signal from the first output of trigger 12 prepares the switching on of switch 9 polarity for the passage of current in the forward direction, as well as being fed to the first input of the element AND 16. When a trigger signal appears on the bus 8, a trigger 7 is activated, which turns on the polarity switch 9. The voltage removed from shunt 1 through the amplifier 2 is fed to the input of generator 3. Depending on the magnitude and polarity of the measured voltage, pulses appear at one of its outputs, the frequency of which is determined by the voltage on shunt 1. When the polarity on shunt 1 is positive, the pulses from the first output of generator 3 are fed to the summing input of the reversible counter k and to the second input of the element AND whose output signal goes to the summed input of the counter 15. The code corresponding to the amount of electricity passed through shunt 1 the forward direction generated in the counter 15 is compared with the output code of the program block I. In case of equality of codes, a signal appears at the output of the code comparison unit 5, which switches trigger one into one state. The signal at the first output of trigger 12 switches the polarity switch 9 to pass current B in the reverse direction and enters the first input of the AND element 17. With negative polarity of voltage on shunt 1, pulses from the second output of generator 3 are fed to the subtractive input of the reversible counter A and to the second input of the element I 17, the output signals from which are fed to the input of the counter 18. Code corresponding to The electricity supplied by the power source in the reverse direction and formed in the counter 18 is compared with the output code of block 20. When the codes are equal, a signal appears at the output of block 19, which through the OR 21 element switches to the zero state trigger 12 The signal from the second output of the trigger 12 switches the polarity switch 9. To pass the current in the forward direction. The number corresponding to the difference in the amount of electricity allocated by the power source in the forward and reverse directions, converted to. The code with a reversible counter is compared with the output code of block 6. When the codes are equal, a signal appears at the output of block 5, which switches trigger 7, which, acting on polarity switch 9, turns off the power supply. The proposed device allows not only to measure the passage of the amount of electricity, but also to control the galvanic process by measurement results, which expands the functions of the amper-hour counter and improves the quality of the electroplating processes.