RU2134442C1 - Device for logic program control of electric drives, electronic switches, and alarms - Google Patents

Device for logic program control of electric drives, electronic switches, and alarms Download PDF

Info

Publication number
RU2134442C1
RU2134442C1 RU97112561A RU97112561A RU2134442C1 RU 2134442 C1 RU2134442 C1 RU 2134442C1 RU 97112561 A RU97112561 A RU 97112561A RU 97112561 A RU97112561 A RU 97112561A RU 2134442 C1 RU2134442 C1 RU 2134442C1
Authority
RU
Russia
Prior art keywords
unit
input
inputs
output
outputs
Prior art date
Application number
RU97112561A
Other languages
Russian (ru)
Other versions
RU97112561A (en
Inventor
Б.Г. Терехин
Н.Б. Терехина
Original Assignee
Терехин Борис Германович
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Терехин Борис Германович filed Critical Терехин Борис Германович
Priority to RU97112561A priority Critical patent/RU2134442C1/en
Publication of RU97112561A publication Critical patent/RU97112561A/en
Application granted granted Critical
Publication of RU2134442C1 publication Critical patent/RU2134442C1/en

Links

Images

Landscapes

  • Logic Circuits (AREA)

Abstract

FIELD: programmable and controllable computing devices for process lines and multicomputer systems. SUBSTANCE: device has switching and computing unit, random-access memory unit, input and output units, pulse generator, acceleration unit, and programmable unit. Provision is made for selecting way of computing Boolean functions. EFFECT: improved speed of device. 10 dwg

Description

Изобретение относится к программируемым и управляющим вычислительным устройствам и может применяться самостоятельно в системах управления различными технологическими линиями, вычислительных комплексах в качестве устройств пересылки однобитовой информации и вычисления булевых функций, освобождая от этих операций многоразрядные микропроцессоры, выполняющие вычисления булевых функций сложными и длительными процедурами. The invention relates to programmable and control computing devices and can be used independently in control systems for various processing lines, computer complexes as devices for sending single-bit information and computing Boolean functions, freeing multi-bit microprocessors from these operations that perform Boolean function calculations with complex and lengthy procedures.

Известно устройство, содержащее входной блок, подключенный через общую информационную шину к выходу блока оперативной памяти и к входу вычислительного блока, выход которого, через триггер памяти связан с выходным блоком, блоком оперативной памяти и управляемым инвертором, выход которого соединен с управляющим блоком, на входы которого поступают дополнительные командные шины из программного блока передающие номер внеочередного такта /авт. св. СССР N 1071999, G 05 B 19/08/. A device is known that contains an input unit connected via a common information bus to the output of the RAM block and to the input of the computational block, the output of which, through a memory trigger, is connected to the output block, RAM block, and a controlled inverter, the output of which is connected to the control block, to the inputs which receives additional command buses from the software unit transmitting the number of an extraordinary clock / auto. St. USSR N 1071999, G 05 B 19/08 /.

Недостатком данного устройства является то, что оно обладает относительно низким быстродействием и для передачи внеочередного такта в нем используются дополнительные командные шины, идущие из программного блока в управляющий блок, что увеличивает число проводов связи, а значит понижает надежность работы устройства и делает его громозким. The disadvantage of this device is that it has a relatively low speed and for transmitting an extra clock cycle, it uses additional command buses coming from the software unit to the control unit, which increases the number of communication wires, and therefore reduces the reliability of the device and makes it cumbersome.

Наиболее близким по технической сущности, надежной и эффективной организации процесса управления работой всего устройства является устройство, содержащее входной и выходной блоки, блоки оперативной памяти и синхронизации, коммутационно-вычислительный блок, генератор импульсов и программный блок, причем генератор импульсов связан с блоком синхронизации, который своими выходами соединен с входами коммутационно-вычислительного блока, блока оперативной памяти, выходного и программного блоков /авт. св. СССР N 1801223, G 05 B 19/08, 1993/. The closest in technical essence, reliable and efficient organization of the process of controlling the operation of the entire device is a device containing input and output blocks, RAM and synchronization blocks, a switching and computing unit, a pulse generator and a program block, the pulse generator being connected to a synchronization block, which its outputs are connected to the inputs of the switching and computing unit, the RAM block, the output and program blocks / ed. St. USSR N 1801223, G 05 B 19/08, 1993 /.

Недостатком данного устройства является относительно низкое быстродействие из-за того, что необходимо "перебрать" все переменные, входящие в состав вычисляемых булевых функций независимо от их влияния на результат вычисления булевых функций в настоящий момент времени. The disadvantage of this device is the relatively low speed due to the fact that it is necessary to "sort through" all the variables that are part of the calculated Boolean functions, regardless of their influence on the result of the calculation of Boolean functions at a given time.

Целью изобретения является повышение быстродействия устройства при вычислении булевых функций, за счет учета только активных переменных в данный момент времени. The aim of the invention is to increase the speed of the device when calculating Boolean functions, by taking into account only active variables at a given time.

Поставленная цель достигается тем, что в известное устройство для дистанционного программного логического управления электроприводами, электронными ключами и сигнализацией, содержащее коммутационно-вычислительный блок, связанный входами с входным блоком, блоком синхронизации и через командные шины с программным блоком, а выходами с блоком оперативной памяти и выходным блоком, генератор импульсов, причем коммутационно-вычислительный блок состоит из дешифратора, входы которого связаны с тремя командными шинами, а выходы соединены с блоком оперативной памяти, выходным блоком и внутри блока, через элементы первого и второго И, элементы ИЛИ, ИСКЛЮЧАЮЩЕЕ ИЛИ, третьего элемента И с управляющим входом ячейки памяти, а вторые входы первого и второго элементов И подключены к входному блоку и блоку оперативной памяти, второй вход элемента ИСКЛЮЧАЮЩЕЕ ИЛИ и информационный вход ячейки памяти связаны с четвертой и пятой управляющими шинами, введен блок ускорения, содержащий первый и второй ряды управляемых ячеек памяти, три электронных ключа, четыре элемента И, дешифратор, инвертор, ряд двухвходовых элементов ИЛИ, пять элементов ИЛИ, причем информационные входы двух рядов ячеек памяти соединены со всеми, кроме двух первых и двух последних, выходами программного блока, а управляемые входы двух рядов ячеек памяти связаны с первым и вторым выходами дешифратора, входы которого подключены к двум последним выходам программного блока, выходы первого и второго рядов ячеек памяти соединены соответственно с информационными входами первого и второго рядов электронных ключей, выходы которых связаны, через ряд двухвходовых элементов ИЛИ с установочными входами счетных триггеров программного блока, управляемый вход первого электронного ключа соединен с выходом первого элемента И, первый вход которого подключен к третьему выходу дешифратора, а второй - к выходу блока синхронизации и входу программного блока, а третий вход к выходу второго элемента И и через инвертор к первому входу третьего элемента И, второй, третий и четвертый входы которого связаны соответственно с выходом блока синхронизации, четвертым выходом дешифратора и выходом первого элемента ИЛИ, а выход подключен к первому входу второго элемента ИЛИ, выход которого связан с управляющим входом второго электронного ключа, а второй вход соединен с выходом четвертого элемента И, первый, второй, третий и четвертый входы которого связаны соответственно с вторым и третьим входами третьего элемента И, с выходом третьего элемента ИЛИ и с выходом второго элемента И, первый вход которого подключен к выходу элемента ИСКЛЮЧАЮЩЕЕ ИЛИ коммутационно-вычислительного блока, а второй вход связан с выходом четвертого элемента ИЛИ, входы которого соединены через третий электронный ключ с тремя выходами программного блока, информационные входы третьего электронного ключа связаны с тремя выходами программного блока, а выходы с управляющими входами коммутационно-вычислительного блока, управляющий вход третьего электронного ключа соединен через пятый элемент ИЛИ с первым и вторым выходами дешифратора, входы первого и третьего элементов ИЛИ связаны с дополнительными выходами дешифратора коммутационно-вычислительного блока, в последний блок введены два элемента ИЛИ и дешифратор дополнен двумя выходами и связями по входу с соответствующими выходами блока ускорения, причем входы введенных элементов ИЛИ подключены к четырем выходам дешифратора, а выходы соединены с вторыми входами двух элементов И. This goal is achieved by the fact that in the known device for remote programmable logical control of electric drives, electronic keys and alarms, containing a switching and computing unit, connected by inputs to the input unit, synchronization unit and via command buses with a program unit, and outputs with a random access memory unit and an output unit, a pulse generator, and the switching and computing unit consists of a decoder, the inputs of which are connected to three command buses, and the outputs are connected to RAM window, the output block and inside the block, through the elements of the first and second AND, OR elements, EXCLUSIVE OR, the third element AND with the control input of the memory cell, and the second inputs of the first and second elements AND are connected to the input block and the RAM block, the second the input of the EXCLUSIVE OR element and the information input of the memory cell are connected to the fourth and fifth control buses, an acceleration unit is introduced containing the first and second rows of controllable memory cells, three electronic keys, four And elements, a decoder, invert p, a series of two-input OR elements, five OR elements, the information inputs of two rows of memory cells connected to all but the first two and last two outputs of the program unit, and the controlled inputs of two rows of memory cells connected to the first and second outputs of the decoder, the inputs of which connected to the last two outputs of the program unit, the outputs of the first and second rows of memory cells are connected respectively to the information inputs of the first and second rows of electronic keys, the outputs of which are connected through a series of two-input OR elements with the installation inputs of the counting triggers of the software unit, the controlled input of the first electronic key is connected to the output of the first AND element, the first input of which is connected to the third output of the decoder, and the second to the output of the synchronization unit and the input of the program unit, and the third input to the output of the second element And and through the inverter to the first input of the third AND element, the second, third and fourth inputs of which are connected respectively with the output of the synchronization unit, the fourth output of the decoder and the output of the first OR element, and the output is connected to the first input of the second OR element, the output of which is connected to the control input of the second electronic key, and the second input is connected to the output of the fourth AND element, the first, second, third and fourth inputs of which are connected with the second and third inputs of the third AND element, with the output of the third OR element and with the output of the second AND element, the first input of which is connected to the output of the EXCLUSIVE OR element of the switching and computing unit, and the second input is connected to the output of the fourth OR element, the inputs of which are dined through a third electronic key with three outputs of the program unit, information inputs of the third electronic key are connected to three outputs of the program unit, and outputs with control inputs of the switching and computing unit, the control input of the third electronic key are connected through the fifth OR element to the first and second outputs of the decoder, the inputs of the first and third elements of OR are connected with additional outputs of the decoder of the switching and computing unit, the last block contains two OR elements and an additional decoder It is equipped with two outputs and input connections with the corresponding outputs of the acceleration unit, the inputs of the input elements OR connected to the four outputs of the decoder, and the outputs connected to the second inputs of the two elements I.

Предлагаемое устройство поясняется функциональной схемой на фиг.1. The proposed device is illustrated by the functional diagram in figure 1.

Устройство состоит из входного блока /далее БН/ 1, соединенного с входом коммутационно-вычислительного блока /далее БКВ/ 2, связанного с блоком оперативной памяти /далее БОП/ 3, с выходным блоком /далее БВ/ 4 и через блок синхронизации /далее БС/ 5 с генератором импульсов /далее ГИ/ 6, программным блоком /далее БП/ 7 и блоком ускорения /далее БУ/ 8, содержащим первый и второй ряды управляемых ячеек памяти /далее УЯП/ 9, выходами соединенных с информационными входами соответственно первого и второго рядов электронных ключей /далее ЭК/ 10, связанных выходами с рядом двухвходовых элементов ИЛИ 11, а своим управляемым выходом первый ЭК связан с выходом первого элемента И 12, один вход последнего связан с дешифратором 13, а другой вход, через второй элемент И 14 с четвертым элементом ИЛИ 15 и через инвертор 16 с третьим элементом И 17, который вторым входом подключен к первому элементу ИЛИ 18, а выходом, через второй элемент ИЛИ 19 к четвертому элементу И 20, своим входом соединенного с третьим элементом ИЛИ 21, третьего электронного ключа 22, управляющий вход которого связан с пятым элементом ИЛИ 23, а информационные входы с выходами программного блока. The device consists of an input unit / further BN / 1, connected to the input of the switching and computing unit / further BKV / 2, connected to a random access memory unit / hereinafter BOP / 3, with an output unit / further BV / 4 and through a synchronization unit / further BS / 5 with a pulse generator / further ГИ / 6, a program unit / further БП / 7 and an acceleration unit / further БУ / 8, containing the first and second rows of controllable memory cells / further УЯП / 9, outputs connected to the information inputs of the first and second rows of electronic keys / hereinafter referred to as EC / 10, associated outputs with a number of two-input elements OR 11, and with its controlled output, the first EC is connected to the output of the first element And 12, one input of the last is connected to the decoder 13, and the other input, through the second element And 14 with the fourth element OR 15 and through the inverter 16 with the third AND element 17, which is connected by a second input to the first OR element 18, and through the second OR element 19 to the fourth AND 20 element, with its input connected to the third element OR 21, of the third electronic key 22, the control input of which is connected to the fifth OR element 23, and information tional inputs to the outputs of the program block.

Работа первого и второго рядов ЭК 10 состоит в том, что при наличии единичных сигналов на их управляющих входах, они пропускают сигналы с выходов первого или второго рядов ячеек памяти 9 на входы двухвходовых элементов ИЛИ 11. The work of the first and second rows of EC 10 is that if there are single signals at their control inputs, they pass signals from the outputs of the first or second rows of memory cells 9 to the inputs of two-input elements OR 11.

При наличии нулевого сигнала на управляющем входе третьего ЭК 22 последний пропускает логические команды C3...C5, поступающие с БП 7 на входы БКВ 2 и C3...C5 после этого обозначаются через C'3...C'5 и которые вместе с командами C1 и C2, поступающими с двух первых выходов блока 7 управляют работой блока БКВ 2.If there is a zero signal at the control input of the third EC 22, the last one skips the logical commands C 3 ... C 5 coming from BP 7 to the inputs of the BKV 2 and C 3 ... C 5 then they are denoted by C ' 3 ... C' 5 and which, together with the commands C 1 and C 2 coming from the first two outputs of block 7, control the operation of the BKV 2 block.

C6. ..Cj - адресные команды, определяющие номера ячеек памяти в блоках 3 и 4, или номер входного сигнала в блоке 1, а также номера внеочередных тактов при определенных сочетаниях команд Cj+1 и Cj+2 двух последних выходов блока 7.C 6 . ..C j - address commands that determine the number of memory cells in blocks 3 and 4, or the number of the input signal in block 1, as well as the numbers of extraordinary clock cycles for certain combinations of commands C j + 1 and C j + 2 of the last two outputs of block 7.

Cj+1 и Cj+2 - команды, определяющие процедуру перескока номеров выполняемых команд.C j + 1 and C j + 2 - commands that determine the procedure for jumping numbers of executed commands.

X1. . .Xn - входные сигналы, поступающие с дискретных датчиков /на схеме не показаны/ от объема управления.X 1 . . .X n - input signals coming from discrete sensors / not shown on the diagram / from the control volume.

a1. . . ak - сигналы, устанавливающие счетные триггеры 54 блока 7 в состояние, соответствующее внеочередному номеру такта.a 1 . . . a k - signals that set the counting flip-flops 54 of block 7 to a state corresponding to an extraordinary measure number.

b1 - синхроимпульс, поступающий с выхода элемента 42 блока БКВ 2.b 1 - a clock pulse coming from the output of element 42 of the BKV 2 block.

b2 - сигнал синхронизации, поступающий на каждом такте из блока БС 5 на элементы 17, 20 и 22 блока БУ 8.b 2 is the synchronization signal received at each cycle from the BS unit 5 to the elements 17, 20 and 22 of the control unit 8.

е, б, г, д - сигналы, поступающие с выходов дешифратора 3 блока 2 на соответствующие входы элементов 18 и 21 блока 8. e, b, d, d - signals coming from the outputs of the decoder 3 block 2 to the corresponding inputs of the elements 18 and 21 of block 8.

Первый и второй ряды ячеек памяти принимает и записывает информационные сигналы C3...Cj при наличии единичных командных сигналов, поступающих с выхода дешифратора 13 блока 8 при Cj+1=0 и Cj+2=0 для первого ряда и при Cj+1=1 и Cj+2= 0 для второго ряда. При этом третий электронный ключ 22 заперт и не пропускает значения C3, C4 и C5 на входы блока 2. На выходе ЭК 22 в этом случае имеются сигналы "0".The first and second rows of memory cells receives and records information signals C 3 ... C j in the presence of single command signals coming from the output of the decoder 13 of block 8 with C j + 1 = 0 and C j + 2 = 0 for the first row and for C j + 1 = 1 and C j + 2 = 0 for the second row. At the same time, the third electronic key 22 is locked and does not pass the values of C 3 , C 4 and C 5 to the inputs of block 2. At the output of EC 22 in this case there are signals "0".

Программный блок 7 известной конструкции /фиг.3/ состоит из счетчика импульсов с установочными входами 28 на счетный вход которого поступают импульсы из блока синхронизации 5, а на установочные входы подаются сигналы a1. . .ak из блока БУ 8, которые при Cj+2=1 переводят счетчик 28 во внеочередное положение. При Cj+2=0 счетчик 28 работает в обычном счетном режиме, дешифратора 29, распределяющего импульсы по элементам постоянной памяти 30 /например серии ПЗУ 155РЕЗ/, на которые записываются программы работы всего устройства. Перед началом работы счетчик 28 устанавливается в исходное нулевое положение. Подробнее схема счетчика 28 представлена на фиг.10, где индексом 50 обозначен элемент НЕ, а индексом 51 обозначены счетные триггеры с установочными J и K-входами.The program unit 7 of a known design / 3 / consists of a pulse counter with installation inputs 28 to the counting input of which pulses from the synchronization unit 5 are received, and signals a 1 are supplied to the installation inputs. . .a k from block BU 8, which, when C j + 2 = 1, translates counter 28 to an extraordinary position. When C j + 2 = 0, the counter 28 operates in the usual counting mode, of the decoder 29, which distributes the pulses to the elements of the permanent memory 30 / for example, a series of ROM 155REZ /, on which the programs of the entire device are recorded. Before starting work, the counter 28 is set to its original zero position. The counter circuit 28 is shown in more detail in Fig. 10, where the index 50 denotes the element NOT, and the index 51 denotes counting triggers with installation J and K inputs.

Выходной блок 4 /фиг. 2/ состоит из элементов И 24, ячеек памяти 25, куда заносится информация из блока БКВ 2 и соответствующих усилителей 26, передающих логические сигналы из ячеек памяти на электроприводы и т.д., по адресам, определяемым адресными сигналами C6...Cj, командам из блока 2, поступающим на дешифратор 27.The output unit 4 / Fig. 2 / consists of AND 24 elements, memory cells 25, where information from the BKV 2 block and corresponding amplifiers 26 are transmitted, transmitting logical signals from memory cells to electric drives, etc., at the addresses determined by address signals C 6 ... C j , instructions from block 2, arriving at the decoder 27.

Блок оперативной памяти 3, который представлен на фиг.4 содержит элементы И 31 обращения к ячейкам памяти. В качестве последних можно использовать стандартные ОЗУ, или как в нашем примере отдельные элементы памяти 32, элементы считывания 33 /например элемент И/, элемент ИЛИ 34, первый и второй дешифраторы 35, при этом через соответствующий элемент заносится или считывается информация по команде из блока БКВ 2 и в соответствии с адресным кодом C6...Cj.The RAM block 3, which is presented in figure 4 contains elements And 31 access to memory cells. As the latter, you can use standard RAM, or as in our example, individual memory elements 32, read elements 33 / for example, AND element, OR element 34, first and second decoders 35, while information on a command from the block is entered or read through the corresponding element BKV 2 and in accordance with the address code C 6 ... C j .

Блок БКВ 2 логической структуры /фиг. 5/ состоит из трехвходового дешифратора 36, своими входами связанного с выходами C'3, C'4 и C'5 блока 8, а первым /верхним/, вторым введенным, третьим и четвертым введенным выходами, соединенного с входами введенных элементов ИЛИ 37 и 38, выходы которых связаны с первыми входами элементов И 39 и 40, вторые входы последних подключены к входному блоку и блоку БОП 1 и 3, а выходы к входам элемента ИЛИ 41, выход которого связан с первым входом элемента ИСКЛЮЧАЮЩЕЕ ИЛИ 42, второй вход последнего соединен с выходом C1 блока 7, а выход подключен, через элемент И 43 с управляющим входом ячейки памяти 44, информационный вход которой соединен с выходом C2 блока БП 7, а выход с информационными входами блока 3 и блока 4. Пятый и шестой выходы дешифратора 36 связаны с управляющими входами блоков БОП 3 и БВ 4, а первые четыре выхода соединены также с блоком БУ 8. Принцип работы блока БКВ 2 известен.Block BKV 2 logical structure / Fig. 5 / consists of a three-input decoder 36, its inputs connected to the outputs C ' 3 , C' 4 and C ' 5 of block 8, and the first / top /, second input, third and fourth input outputs connected to the inputs of the input elements OR 37 and 38, the outputs of which are connected to the first inputs of the AND 39 and 40 elements, the second inputs of the latter are connected to the input unit and the BOP unit 1 and 3, and the outputs to the inputs of the OR element 41, the output of which is connected to the first input of the EXCLUSIVE OR 42 element, the second input of the last connected to an output unit 7, c 1, and the output connected through aND gate 43 to have ravlyaetsya input of memory cell 44 having an information input coupled to an output C 2 BP block 7, and output to data inputs of block 3 and the block 4. The fifth and sixth outputs of decoder 36 are connected to control inputs of the DRAM blocks 3 and BW 4, and the first four outputs also connected to the unit BU 8. The principle of operation of the unit BKV 2 is known.

Входной блок 1 /фиг. 7/ содержит элементы согласования 52, связанные входами с датчиками, а выходами с первыми входами элементов И 53, выходы которых через элемент ИЛИ 54 соединены с блоком 2, а вторые входы элементов 53 подключены к выходам дешифратора 55. входы которого соединены с блоком программ 7. The input unit 1 / Fig. 7 / contains matching elements 52 connected by inputs with sensors and outputs with first inputs of AND elements 53, the outputs of which through OR element 54 are connected to block 2, and the second inputs of elements 53 are connected to outputs of decoder 55. whose inputs are connected to program block 7 .

Блок синхронизации 5 известной конструкции /фиг. 6/ содержит первый счетный триггер 45, подключенный прямым выходом к элементу И 46, а инверсным выходом к первым входам элементов И 47 и И 48, второй вход последнего подключен к выходу элемента И 49, входы которого связаны с прямым выходом второго счетного триггера 50 и с выходом инвертора 51, вход которого вместе с входом триггера 45 являются входами блока 5 и соединены с ГИ 6. Работа блока 5 поясняется диаграммами /фиг. 8 и 9/. Block synchronization 5 of a known design / Fig. 6 / contains the first counting trigger 45 connected by a direct output to the element And 46, and the inverse output to the first inputs of the elements And 47 and 48, the second input of the last connected to the output of the element And 49, the inputs of which are connected to the direct output of the second counting trigger 50 and with the output of the inverter 51, the input of which, together with the input of the trigger 45, are the inputs of block 5 and connected to the ГИ 6. The operation of block 5 is illustrated by diagrams / Fig. 8 and 9 /.

Принцип работы устройства раскроем на примере вычисления двух функций f1 и f2:
f1=(X1+X2+...+Xm)(Xm+1+...+ Xm+k)...(Xm+n+...+Xm+n+L)+f'1.
The principle of operation of the device will be revealed by the example of calculating two functions f 1 and f 2 :
f 1 = (X 1 + X 2 + ... + X m ) (X m + 1 + ... + X m + k ) ... (X m + n + ... + X m + n + L ) + f ' 1 .

Обозначим функцию, содержащую переменные X1...Xm+n+L через f'1
f2=

Figure 00000002
X2...Xm(Xm+1+...+ Xm+k)...(Xm+n+...+Xm+n+L)+f'2.Denote the function containing the variables X 1 ... X m + n + L by f ' 1
f 2 =
Figure 00000002
X 2 ... X m (X m + 1 + ... + X m + k ) ... (X m + n + ... + X m + n + L ) + f ' 2 .

Обозначим функцию, содержащую переменные X1...Xm+n+L через f''2.Denote the function containing the variables X 1 ... X m + n + L by f '' 2 .

При вычислении f1 на первом такте при C1=1 и C2=0 ячейку памяти 44 блока 2 устанавливаем в состояние "0". Затем на этом же такте из блока 7b первый /верхний/ ряд ячеек памяти 9 записываются значения C3...Cj, соответствующие номеру такта, с которого начинается вычисление второй дизъюнкции функции f''1 при Cj+1 и Cj+2, равными "0". На втором такте во второй ряд ячеек памяти 9 под действием команд Cj+1=1 и Cj+2=0 записываются значения C3...Cj, соответствующие номеру такта на котором начинается вычисление функции f'1. На третьем такте под действием команд /ЭК 22 открыт/ C1=0, C2=1, C'3=1, C'4= 0 и C'5=0 значение X1, проходит на элемент 39 блока 2 и далее, через элементы 41, 42 и 43, поступает на управляемый вход ячейки 44. При этом, если X1= 0 ячейка 44 не меняет своего состояния и вычисление продолжается известным порядком, описанным в прототипе, т.е. на следующем такте вызывается переменная X2 и т.д., пока не обследуется последняя переменная Xm и если одна из переменных X1. . .Xm равна "1", то под действием этой "1" при C1=0 значение C2=1 запишется в ячейку памяти 44 блока 2, а если все переменные X1...Xm равны "0", то состояние ячейки 44 не изменятся. Это и будет результатом вычисления первой дизъюнкции функции f''1. Вернемся к третьему такту. При X1=1 вычислять значение первой дизъюнкции нет смысла, т.к. она обязательно равна "1" и ее значение в нашем случае от переменных X2...Xm независит. Под действием единичного сигнала b1 с выхода элемента 42 блока 2 /C1=0 и X1=1/ при C'3= 1, C'4=0, C'5=0, Cj+1=0, Cj+2=1 и b2=1 активизируется первый выход "е" дешифратора 36 блока 2 и под действием управляющего сигнала, сформированного при помощи элементов 15, 14 и 12 блока 8 открывается первый /верхний/ ряд ЭК 10 и под действием сигналов, ранее записанных в первый ряд ячеек памяти 9 блока 8 и проходящих через ряд элементов ИЛИ 11 на установочные J-K-входы триггеров 28 блока 7, при этом триггеры 28 устанавливаются в положение, соответствующее номеру такта, на котором начинается вычисление второй дизъюнкции функции f''1. Вышеописанный алгоритм /процедура/ реализуется при первом значении любой переменной из X1...Xm равном "1". Аналогичный процесс реализуется, если переменная, ранее записанная в блок БОП 3 считывается из него при C3= 1, C4=1 и C5=0, но при этом активизируется третий выход дешифратора 36 блока 2. Допустим, что все значения X1...Xn равны "0", тогда под действием команд C'3=1, C'4=0, C'5=0, Cj+1=1 и Cj+2=1 активизируется первый выход "е" дешифратора 36 блока 2 и переменная Xm=0 поступает на вход элемента 42 блока 2 и при C1=0 на выходе элемента 42 сохраняется "0", т.е. b1=0. При этом на выходе элемента ИЛИ 19 появится сигнал "1", т.к. под действием единичных сигналов на выходе инвертора 16, элемента 18, четвертом выходе дешифратора 13 и при b2=1 на выходе элемента И 17 появится сигнал "1", т.е. на управляющий вход второго ряда ЭК 10 поступит сигнал "1" с выхода элемента 19 и ранее /на втором такте/ записанная информация во второй ряд ячеек памяти 9, через второй ряд открытых ЭК 10 и элементы ИЛИ 11 попадает на J-K-входы триггеров 28 блока 7 и устанавливает их в положение, обеспечивающее начало вычисление функции f'1, т.к. при нулевых значениях X1...Xm f''1=0. Из вышеизложенного следует, что предложенное устройство позволяет учитывать только те переменные из набора X, которые являются в данный момент активными, т.е. от которых зависит результат вычисления функции f1 и тем самым сокращает число тактов, необходимых для вычисления функций f1. Устройство позволяет делать три выбора для оптимальных вычислений автоматическим способом. Первый выбор позволяет проводить вычисления известным путем, проверяя значения всех переменных данной подфункции. Второй выбор позволяет сократить число тактов при вычислении подфункций, например дизъюнкции, если одна из переменных равна "1". Третий выбор состоит в том, что в случае нулевого значения первой дизъюнкции, входящей в состав конъюнкции автоматически организуется вычисление последующей функции, как например в нашем случае функции f'1. Поэтому в примере были заранее записаны номера внеочередных тактов для двух возможных переходов при вычислении функций f''1 и f'1. Перейдем к вычислению функции f2. На первом такте в ячейку памяти 44 блока 2 запишем "1" при C1=1, C2=1, запишем в первый ряд ячеек памяти 9 блока 8 сигналы C3...Cj, соответствующие номеру такта для начала вычисления второй дизъюнкции функции f''2 при Cj+1=0 и Cj+2= 0. На втором такте при Cj+1=1 и Cj+2=0 запишем сигналы C3...Cj, обеспечивающие вычисление функции f'2. На третьем такте при C3=0, C4=1, C5=1 и C2=0 активизируется выход "b" дешифратора 36 блока 2 и значение переменной

Figure 00000003
через элементы 39, 41, 42 и 43 подается на управляющий вход ячейки памяти 44 блока 2. Если
Figure 00000004
= 1, то процесс вызова и анализа переменных X2...Xm продолжается и если они также равны "1", то никакого перехода к внеочередному такту не будет. Если же одна из переменных
Figure 00000005
,,, Xm равна "0" то на выходе элемента 42 появится "1" при C1=1, C2=0, C3=0, C4=1, C5=0 /в случае вызова X1/, активизируется выход "b", на выходе элемента 42 появится "1", b1= 1 и при Cj+1=1, Cj+2=1 с помощью логических операций в элементах 15, 14, 21, и 19 на управляющий вход нижнего ряда ЭК 10 поступит сигнал, открывающий нижний ряд ЭК 10 и ранее записанная в нижний ряд ячеек памяти 9 информация поступит, через элементы ИЛИ 11 на J-K-входы триггеров 28 блока 7 и установит их в положение, обеспечивающее начало вычисления функции f'2, т.к. функция f''2 равна "0". Введение в блок 2 дополнительных выходов для дешифратора 36 и элементов ИЛИ 37 и 38 позволяет автоматически менять работу блока 8 в зависимости от типа функций, например приведенных в примере при помощи элементов 18 и 21 в блоке 8. Третий и четвертый выходы дешифратора 36 активизируются, когда переменные вызываются из блока БОП 3.When calculating f 1 on the first cycle with C 1 = 1 and C 2 = 0, the memory cell 44 of block 2 is set to the state "0". Then, at the same measure, from the first / top / row of memory cells 9b, values C 3 ... C j corresponding to the measure number from which the second disjunction of the function f '' 1 begins to be calculated for C j + 1 and C j + 2 equal to "0". At the second measure, in the second row of memory cells 9 under the action of the commands C j + 1 = 1 and C j + 2 = 0, the values C 3 ... C j corresponding to the measure number on which the calculation of the function f ' 1 begins are written. On the third step, under the action of the commands / EC 22 is open / C 1 = 0, C 2 = 1, C ' 3 = 1, C' 4 = 0 and C ' 5 = 0 the value of X 1 passes to element 39 of block 2 and further through elements 41, 42 and 43, it enters the controlled input of cell 44. Moreover, if X 1 = 0, cell 44 does not change its state and the calculation continues in a known manner described in the prototype, i.e. at the next measure, the variable X 2 , etc., is called until the last variable X m is examined and if one of the variables X 1 . . .X m is equal to "1", then under the action of this "1" with C 1 = 0, the value C 2 = 1 is written to the memory cell 44 of block 2, and if all the variables X 1 ... X m are equal to "0", then the state of cell 44 will not change. This will be the result of calculating the first disjunction of the function f '' 1 . Let's go back to the third measure. When X 1 = 1, it makes no sense to calculate the value of the first disjunction, because it is necessarily equal to "1" and its value in our case is independent of the variables X 2 ... X m . Under the action of a single signal b1 from the output of element 42 of block 2 / C 1 = 0 and X 1 = 1 / for C ' 3 = 1, C' 4 = 0, C ' 5 = 0, C j + 1 = 0, C j +2 = 1 and b 2 = 1, the first output "e" of the decoder 36 of block 2 is activated and under the action of a control signal generated by elements 15, 14 and 12 of block 8, the first / top / row of EC 10 opens and, under the action of the signals, recorded in the first row of memory cells 9 of block 8 and passing through a series of OR elements 11 to the installation JK inputs of triggers 28 of block 7, while the triggers 28 are set to the position corresponding to the measure number at which you start The second disjunction of the function f '' 1 is calculated. The above algorithm / procedure / is implemented when the first value of any variable from X 1 ... X m is equal to "1". A similar process is implemented if the variable previously written to the BOP unit 3 is read from it at C 3 = 1, C 4 = 1 and C 5 = 0, but the third output of the decoder 36 of unit 2 is activated. Assume that all values of X 1 ... X n are equal to "0", then under the action of the commands C ' 3 = 1, C' 4 = 0, C ' 5 = 0, C j + 1 = 1 and C j + 2 = 1 the first output is activated "e "of the decoder 36 of block 2 and the variable X m = 0 is fed to the input of element 42 of block 2 and when C 1 = 0," 0 "is stored at the output of element 42, i.e. b 1 = 0. In this case, the signal "1" will appear at the output of the OR element 19, because under the action of single signals at the output of the inverter 16, element 18, the fourth output of the decoder 13 and with b 2 = 1 at the output of the element And 17 the signal "1" will appear, i.e. the control input of the second row of EC 10 receives a signal "1" from the output of element 19 and earlier / at the second clock / recorded information in the second row of memory cells 9, through the second row of open EC 10 and elements OR 11 gets to the JK inputs of triggers 28 of the block 7 and sets them to the position that provides the beginning of the calculation of the function f ' 1 , because at zero values of X 1 ... X m f '' 1 = 0. From the foregoing, it follows that the proposed device allows you to take into account only those variables from the set X that are currently active, i.e. on which the result of computing the function f 1 depends and thereby reduces the number of clock cycles required to calculate the functions f 1 . The device allows you to make three choices for optimal calculations in an automatic way. The first choice allows you to perform calculations in a known way, checking the values of all variables of this subfunction. The second choice allows you to reduce the number of ticks when calculating subfunctions, for example disjunctions, if one of the variables is equal to "1". The third choice is that, in the case of the zero value of the first clause included in the conjunction, the calculation of the next function is automatically organized, as for example, in our case, the function f ' 1 . Therefore, in the example, the numbers of extraordinary measures were recorded in advance for two possible transitions when calculating the functions f '' 1 and f ' 1 . We proceed to calculate the function f 2 . At the first step, in the memory cell 44 of block 2, write “1” with C 1 = 1, C 2 = 1, write in the first row of memory cells 9 of block 8 the signals C 3 ... C j corresponding to the measure number to start calculating the second disjunction functions f '' 2 for C j + 1 = 0 and C j + 2 = 0. On the second clock with C j + 1 = 1 and C j + 2 = 0, we write the signals C 3 ... C j , which provide the calculation of the function f ' 2 . On the third step, with C 3 = 0, C 4 = 1, C 5 = 1 and C 2 = 0, the output “b” of the decoder 36 of block 2 is activated and the value of the variable
Figure 00000003
through elements 39, 41, 42 and 43 is fed to the control input of the memory cell 44 of block 2. If
Figure 00000004
= 1, then the process of invoking and analyzing the variables X 2 ... X m continues and if they are also equal to "1", then there will be no transition to an extraordinary beat. If one of the variables
Figure 00000005
,,, X m is equal to "0" then at the output of element 42 appears "1" with C 1 = 1, C 2 = 0, C 3 = 0, C 4 = 1, C 5 = 0 / in the case of a call X 1 / , the output "b" is activated, the output of element 42 will display "1", b 1 = 1 and for C j + 1 = 1, C j + 2 = 1 using logical operations in elements 15, 14, 21, and 19 on the control input of the lower row of EC 10 will receive a signal that opens the lower row of EC 10 and previously recorded information in the lower row of memory cells 9, through the elements of OR 11 to the JK inputs of the triggers 28 of block 7 and sets them to the position that provides the beginning of the calculation of the function f ' 2 since function f '' 2 is equal to "0". The introduction into block 2 of additional outputs for the decoder 36 and OR elements 37 and 38 allows you to automatically change the operation of block 8 depending on the type of functions, for example, those shown in the example using elements 18 and 21 in block 8. The third and fourth outputs of the decoder 36 are activated when variables are called from BOP block 3.

Представленное устройство позволяет уменьшить количество тактов при вычислении булевых функций, что позволяет сократить время реакции системы управления на изменение входных параметров в объекте управления и повысить быстродействие вычислительных и управляющих комплексов. The presented device allows to reduce the number of clock cycles when calculating Boolean functions, which allows to reduce the response time of the control system to a change in the input parameters in the control object and to increase the speed of computing and control systems.

Claims (1)

Устройство для дистанционного программного управления электроприводами, электронными ключами и сигнализацией, содержащее коммутационно-вычислительный блок, связанный входами с входным блоком, первая группа входов которого связана с дискретными датчиками, а вторая группа входов - с блоком синхронизации, связанным с генератором импульсов и программным блоком, соединенным с входным блоком и блоком синхронизации, генератор импульсов соединен выходом с входом блока синхронизации, причем коммутационно-вычислительный блок состоит из дешифратора, элементов И, ячейки памяти, первого элемента ИЛИ и элемента ИСКЛЮЧАЮЩЕЕ ИЛИ, выходы дешифратора подключены к соответствующим входам блока оперативной памяти и выходного блока, первые входы двух элементов И связаны с выходами входного блока и блока оперативной памяти, а выходы соединены с входами первого элемента ИЛИ, вход которого соединен с элементом ИСКЛЮЧАЮЩЕЕ ИЛИ, который соединен с третьим элементом И, подключенным к управляющему входу ячейки памяти, выход которой связан с информационными входами блока оперативной памяти и выходного блока, передающим сигналы на электроприводы, электронные ключи и сигнализацию, второй вход элемента ИСКЛЮЧАЮЩЕЕ ИЛИ и информационный
вход ячейки памяти соединены с соответствующими выходами программного блока, второй вход третьего элемента И подключен к блоку синхронизации, отличающееся тем, что в устройство введен блок ускорения, содержащий первый и второй ряды управляемых ячеек памяти, четыре элемента И, первый и второй ряды электронных ключей и третий электронный ключ, дешифратор, инвертор, ряд двухвходовых элементов ИЛИ и пять элементов ИЛИ, причем информационные входы двух рядов ячеек памяти соединены с всеми выходами, кроме двух первых и двух последних, программного блока, а управляемые входы двух рядов ячеек памяти связаны с первым и вторым выходами дешифратора блока ускорения, входы упомянутого дешифратора подключены к двум выходам программного блока, выходы первого и второго рядов ячеек памяти соединены соответственно с информационными входами первого и второго рядов электронных ключей, выходы которых связаны с рядом двухвходовых элементов ИЛИ, а выходы ряда двухвходовых элементов ИЛИ соединены с установочными входами счетных триггеров программного блока, управляющий вход первого ряда электронных ключей соединен с выходом первого элемента И блока ускорения, первый вход первого элемента И блока ускорения подключен к третьему выходу дешифратора блока ускорения, второй вход связан с выходом блока синхронизации и входом программного блока, а третий вход соединен с выходом второго элемента И блока ускорения и через инвертор с первым входом третьего элемента И блока ускорения, второй, третий и четвертый входы третьего элемента И блока ускорения связаны соответственно с выходом блока синхронизации, четвертым выходом дешифратора блока ускорения и с выходом первого элемента ИЛИ
блока ускорения, а выход третьего элемента И блока ускорения подключен к первому входу второго элемента ИЛИ, выход которого связан с управляющим входом второго ряда электронных ключей, а второй вход соединен с выходом четвертого элемента И блока ускорения, первый - четвертый входы четвертого элемента И блока ускорения подключены соответственно к второму и третьему входам третьего элемента И блока ускорения, к выходу третьего элемента ИЛИ блока ускорения и к выходу второго элемента И блока ускорения, первый вход второго элемента И блока ускорения подключен к выходу элемента ИСКЛЮЧАЮЩЕЕ ИЛИ коммутационно-вычислительного блока, а второй вход связан с выходом четвертого элемента ИЛИ блока ускорения, входы четвертого элемента ИЛИ блока ускорения соединены через третий электронный ключ с тремя выходами программного блока, информационные входы третьего электронного ключа подключены к трем выходам программного блока, а выходы - к управляющим входам коммутационно-вычислительного блока, управляющий вход третьего электронного ключа соединен с пятым элементом ИЛИ блока ускорения, пятый элемент ИЛИ соединен с первым и вторым выходами дешифратора коммутационно-вычислительного блока, входы первого и третьего элементов ИЛИ блока ускорения подключены к соответствующим выходам дешифратора коммутационно-вычислительного блока, при этом в коммутационно-вычислительный блок введены два элемента ИЛИ, входы введенных элементов ИЛИ коммутационно-вычислительного блока подключены к четырем выходам дешифратора коммутационно-вычислительного блока, а выходы соединены с первыми входами двух элементов И коммутационно-вычислительного блока, вторые входы которых связаны с выходами входного блока и блока оперативной памяти.
A device for remote programmed control of electric drives, electronic keys and alarms, comprising a switching and computing unit connected by inputs to an input unit, the first group of inputs of which is connected to discrete sensors, and the second group of inputs to a synchronization unit connected to a pulse generator and a program unit, connected to the input unit and the synchronization unit, the pulse generator is connected by the output to the input of the synchronization unit, and the switching and computing unit consists of cheap of the rotor, AND elements, memory cell, the first OR element and the EXCLUSIVE OR element, the decoder outputs are connected to the corresponding inputs of the RAM block and the output block, the first inputs of the two AND elements are connected to the outputs of the input block and the RAM block, and the outputs are connected to the inputs of the first OR element, the input of which is connected to the EXCLUSIVE OR element, which is connected to the third AND element, connected to the control input of the memory cell, the output of which is connected to the information inputs of the RAM block and output unit, transmitting signals to electric drives, electronic keys and alarm, the second input of the element EXCLUSIVE OR and information
the input of the memory cell is connected to the corresponding outputs of the program unit, the second input of the third AND element is connected to the synchronization unit, characterized in that an acceleration unit containing the first and second rows of controllable memory cells, four And elements, the first and second rows of electronic keys and a third electronic key, a decoder, an inverter, a series of two-input OR elements and five OR elements, and the information inputs of two rows of memory cells are connected to all outputs, except the first two and last two, programs block, and the controlled inputs of two rows of memory cells are connected with the first and second outputs of the decoder of the acceleration unit, the inputs of the said decoder are connected to two outputs of the program block, the outputs of the first and second rows of memory cells are connected respectively to the information inputs of the first and second rows of electronic keys, outputs which are connected to a number of two-input OR elements, and the outputs of a number of two-input OR elements are connected to the installation inputs of the counting triggers of the program unit, the control input of the first row electronic keys are connected to the output of the first element And the acceleration unit, the first input of the first element And the acceleration unit is connected to the third output of the decoder of the acceleration unit, the second input is connected to the output of the synchronization unit and the input of the program unit, and the third input is connected to the output of the second element AND of the acceleration unit and through an inverter with the first input of the third element And the acceleration unit, the second, third and fourth inputs of the third element And the acceleration unit are connected respectively to the output of the synchronization unit, the fourth output of the decoder torus of the acceleration unit and with the output of the first element OR
acceleration unit, and the output of the third element AND of the acceleration unit is connected to the first input of the second OR element, the output of which is connected to the control input of the second row of electronic keys, and the second input is connected to the output of the fourth element AND of the acceleration unit, the first is the fourth inputs of the fourth element AND of the acceleration unit connected respectively to the second and third inputs of the third element AND of the acceleration unit, to the output of the third element OR of the acceleration unit and to the output of the second element AND of the acceleration unit, the first input of the second element AND block speed is connected to the output of the EXCLUSIVE OR element of the switching and computing unit, and the second input is connected to the output of the fourth element OR of the acceleration unit, the inputs of the fourth element OR of the acceleration unit are connected through a third electronic key to three outputs of the program unit, the information inputs of the third electronic key are connected to three outputs program block, and the outputs to the control inputs of the switching and computing unit, the control input of the third electronic key is connected to the fifth element OR of the accelerator block In fact, the fifth OR element is connected to the first and second outputs of the decoder of the switching and computing unit, the inputs of the first and third elements of the OR of the acceleration unit are connected to the corresponding outputs of the decoder of the switching and computing unit, while two OR elements are inserted into the switching and computing unit, the inputs of the elements entered OR switching and computing unit are connected to four outputs of the decoder of the switching and computing unit, and the outputs are connected to the first inputs of two elements AND switching and computing illustrative block, the second inputs of which are connected with the outputs of the input block and the RAM block.
RU97112561A 1997-07-11 1997-07-11 Device for logic program control of electric drives, electronic switches, and alarms RU2134442C1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU97112561A RU2134442C1 (en) 1997-07-11 1997-07-11 Device for logic program control of electric drives, electronic switches, and alarms

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
RU97112561A RU2134442C1 (en) 1997-07-11 1997-07-11 Device for logic program control of electric drives, electronic switches, and alarms

Publications (2)

Publication Number Publication Date
RU97112561A RU97112561A (en) 1999-06-10
RU2134442C1 true RU2134442C1 (en) 1999-08-10

Family

ID=20195564

Family Applications (1)

Application Number Title Priority Date Filing Date
RU97112561A RU2134442C1 (en) 1997-07-11 1997-07-11 Device for logic program control of electric drives, electronic switches, and alarms

Country Status (1)

Country Link
RU (1) RU2134442C1 (en)

Similar Documents

Publication Publication Date Title
US4047245A (en) Indirect memory addressing
RU2134442C1 (en) Device for logic program control of electric drives, electronic switches, and alarms
US5155826A (en) Memory paging method and apparatus
US4631665A (en) Microprocessor having a programmable logic array
RU2106676C1 (en) Device for programmed logical control of electric drives, electronic gates and guarding equipment
US5345378A (en) Method and apparatus for operating a programmable controller for controlling a technical process
RU2095846C1 (en) Software-control device for logical control of electric drives and guarding alarm
JPS6237737A (en) Microprocessor circuit
RU2097819C1 (en) Programmable device for control of electric drives and alarm system
RU2117978C1 (en) Programmable device for logical control of electric drives and alarm
EP0382234B1 (en) Microprocessor having improved functional redundancy monitor mode arrangement
RU2199774C1 (en) Programmable device for controlling electric drives, electronic switches, and signaling facilities
KR920004418B1 (en) Data access system between microprocessors
JPH02280263A (en) Microprocessor
JPS6236270B2 (en)
KR0152296B1 (en) Data transfering apparatus and processor element using it
RU2154852C1 (en) Programmable device for logic control of electric drives, electronic gates and alarm
RU1801223C (en) Device for remote program controlling signalling and conducting mechanisms
US5479165A (en) Two-dimensional coding apparatus
JP2867585B2 (en) Event detection circuit
SU603987A1 (en) Arrangement for discriminating the maximum and minimum numbers represented in residual class system
JPS59142658A (en) Shared memory control system
SU1003151A1 (en) Storage device with information check at recording
SU572846A1 (en) Memory control block
JPS5953564B2 (en) data processing equipment