SU1497616A1 - Programmable logic controller - Google Patents

Programmable logic controller Download PDF

Info

Publication number
SU1497616A1
SU1497616A1 SU843822699A SU3822699A SU1497616A1 SU 1497616 A1 SU1497616 A1 SU 1497616A1 SU 843822699 A SU843822699 A SU 843822699A SU 3822699 A SU3822699 A SU 3822699A SU 1497616 A1 SU1497616 A1 SU 1497616A1
Authority
SU
USSR - Soviet Union
Prior art keywords
input
output
register
block
inputs
Prior art date
Application number
SU843822699A
Other languages
Russian (ru)
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 SU843822699A priority Critical patent/SU1497616A1/en
Application granted granted Critical
Publication of SU1497616A1 publication Critical patent/SU1497616A1/en

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

Использование: в радиотехнике. Цель - повышение быстродействи . Сущность изобретени : контроллер содержит блок пам ти прогамм, счетчик адреса , регистр команд, дешифратор, генератор тактовых импульсов и блок управлени . В него дополнительно введены регистр внутренних переменных, коммутатор и группа магистральных приемопередатчиков. 1 ил.Use: in radio engineering. The goal is to increase speed. SUMMARY OF THE INVENTION: The controller comprises a program memory block, an address counter, an instruction register, a decoder, a clock generator, and a control unit. It additionally introduces a register of internal variables, a switch and a group of trunk transceivers. 1 il.

Description

31493149

магистрального приемопередатчика группы (,М, где М - разр дность информационного входа-выхода контроллера), вход-выход которого подключен к К-му входу-выходу группы контроллера, выходы признаков записи внутренней переменной , признака записи внешних переменных и признака направлени  обмена информацией блока управлени  под- ключены соответственно к синхровходу регистра внутренних переменных, входам записи выводимой информации и записи признака режима работы магистральных приемопередатчиков группы, причем блок управлени  содержит два элемента ИЛИ, два триггера, элемент И-НЕ и одиннадцать элементов И, причем выход первого элемента ИЛИ подключен к выходу записи команды блока и информационному входу первого триггера , пр мой выход которого подключен к первым входам первого и второго элементов И, инверсный Выход первого триггера подключен к первым вхо дам третьего и четвертого элементов И, вход начальной установки устройства подключен к входам установки в поле первого и второго триггеров, син- хровходы которых подключены к входу тактовых импульсов блока, третий вход второго элемента ИЛИ подключен к выходу п того элемента И, информационный вход второго триггера подключен к выходу второго элемента ИЛИ, пр мой выход второго триггера подключен к вторым входам первого и третьего элементов И, инверсный выход второго триггера подключен к вторым входам второго и четвертого элементов И, выход первого элемента И подключен к выходу записи адреса блока, выходthe main transceiver of the group (, M, where M is the size of the information input-output controller), the input-output of which is connected to the K-th input-output of the controller group, the output signs of the internal variable recording, the sign of the external variables and the direction of information exchange unit the controls are connected respectively to the synchronous input of the register of internal variables, the inputs for recording the output information and recording the indication of the operating mode of the main transceivers of the group, and the control unit contains two elements OR, two triggers, element NAND and eleven elements AND, the output of the first element OR connected to the output of the block command recording and the information input of the first trigger, the direct output of which is connected to the first inputs of the first and second elements AND, inverse Output of the first the trigger is connected to the first inputs of the third and fourth elements And, the input of the initial installation of the device is connected to the inputs of the installation in the field of the first and second triggers, the synchronous inputs of which are connected to the input of the clock pulses of the block, the third in the second element OR is connected to the output of the fifth element AND, the information input of the second trigger is connected to the output of the second element OR, the direct output of the second trigger is connected to the second inputs of the first and third elements AND, the inverse output of the second trigger is connected to the second inputs of the second and fourth elements And, the output of the first element And is connected to the output of writing the address of the block, the output

..

с ю 15 20 35 40 from 15 20 35 40

2525

30thirty

164164

второго элемента И подключен к первым входам п того, шестого, седьмого, восьмого, дев того и дес того элементов И, вторые входы п того и дес того элементов И подключены соответственно к входу логических условий блока и выходу элемента И-НЕ, выходы дев того и дес того элементов И подключены соответственно к выходам признаков пропуска следующей команды и перехода к следующей команде блока, вход признака команды записи информации блока подключен к третьему входу п тог о элемента И, вторым входам шестого, седьмого, восьмого, дев того элемен тов И и первому входу элемента И-НЕ, второй вход которого подключен к входу логических условий блока, третьи входы элемента И-НЕ, шестого, седьмого , восьмого, дев того элементов И и четвертый вход п того элемента И подключены к входу признака команд условного перехода и управлени  передачей информации блока, вход разрешени  работы блока подключен к первому входу одиннадцатого элемента И, второй вход и выход которого подключены соответственно к выходу четвертого элемента И и первому вхОду первого элемента ИЛИ, вторые входы первого и второго элементов ИЛИ подключены к выходу третьего элемента И, вход логических условий блока подключен к четвертому входу дев того элемента И, выходы шестого, седьмого и восьмого элементов И подключены соответственно к выходу признака направлени  обмена информацией блока, выходу признака записи внутренних переменных блока и выходу признака записи внешних переменных блока.The second element And is connected to the first inputs of the fifth, sixth, seventh, eighth, ninth and tenth elements And, the second inputs of the fifth and tenth elements And are connected respectively to the input of the logical conditions of the block and the output of the element AND-NOT, the outputs of the ninth And the tenth elements And are connected respectively to the outputs of the signs of the skip of the next command and the transition to the next command of the block, the input of the command to write information of the block is connected to the third input of the And element, the second inputs of the sixth, seventh, eighth, ninth element And the first input of the NAND element, the second input of which is connected to the input of the logical conditions of the block, the third inputs of the NAND element of the sixth, seventh, eighth, ninth AND elements and the fourth input of the fifth AND element are connected to the input of the command attribute conditional transition and control of information transfer of the block; the block operation enable input is connected to the first input of the eleventh AND element, the second input and output of which are connected respectively to the output of the fourth AND element and the first input of the first OR element, the second inputs of the first and the second element OR is connected to the output of the third element AND; the input of the logical conditions of the block is connected to the fourth input of the ninth element AND, the outputs of the sixth, seventh and eighth elements AND are connected respectively to the output of the indication of the direction of information exchange of the block, the output of the recording of internal variables of the block and the output of the sign records of external variables of the block.

Изобретение относитс  к вычислительной технике и дискретной промьш- ленной автоматике и может быть ИСПОЛЬ- Q зовано дл  построени  систем логического управлени  технологическими объектами в тех случа х, когда алгоритмы функционировани  проектируемых систем сформулированы в виде лог 1гчес-дг ких схем алгоритмов (ЛСА), граф-схемы алгоритмов, систем булевых функций и других форм задани  цифровых управл ющих автоматов.The invention relates to computing and discrete industrial automation and can be USED to build systems of logical control of technological objects in cases where the algorithms of functioning of the designed systems are formulated in the form of a log of logic algorithms (LSA), graph - schemes of algorithms, systems of Boolean functions and other forms of setting digital control automata.

Целью изобретени   вл етс  повьше- ние быстродействи  и расширение функциональных возможностей за счет динамического распределени  функций внешних выводов и введени  внутренних переменных состо ни .The aim of the invention is to increase the speed and enhance the functionality by dynamically distributing the functions of the external outputs and introducing internal state variables.

На фиг.1 приведена структурна  . схема программируемого логического контроллера (11ЛК); на фиг.2 - структурна  схема магистрального приемопередатчика группы; на фиг. 3 - схема алгоритма работы контроллера; наFigure 1 shows the structural. programmable logic controller (11LK); figure 2 - structural diagram of the main transceiver group; in fig. 3 - scheme of the algorithm of the controller; on

5151

фиг.4 - структурна  схема блока упралени ; на фиг.5 - структурна  схема коммутатораFig. 4 is a block diagram of a control unit; figure 5 - structural diagram of the switch

ПЛК содержит счетчик 1 адреса, блок 2 пам ти программ, регистр 3 команд, блок 4 управлени , генератор Б тактовых импульсов, коммутатор 6, регистр 7 внутренних переменных, дешифратор 8, группу 9 магистральных приемопередатчиков, входы 10 и 11 начальной установки и признака разрешени  работы контроллера, информационный вход-выход 12 контроллера.The PLC contains an address counter 1, a program memory block 2, a command register 3, a control block 4, a clock pulse generator B, a switch 6, an internal variable register 7, a decoder 8, a group of 9 main transceivers, inputs 10 and 11 of the initial setting and a permission indication controller operation, information input-output 12 of the controller.

Магистральный приемопередатчик со- 15 них или внутренних логических передержит элемент И 13, триггер 14, трех- стабильный элемент 15, элемент И 16, триггер 17, элемент И 18 и входы 19- 22.Trunk transceiver of 15 or internal logical overexposure element And 13, trigger 14, three-stable element 15, element And 16, trigger 17, element And 18 and inputs 19-22.

менньк и одновременно в зависимости от значений этих переменных переход либо к выполнению команды, расположенной в блоке 2 пам ти программ не- 20 посредственно следом за данной коман дой (если значение провер емой переменной равно 1). либо к ВЫПОЛНЕНИЮdepending on the values of these variables, the transition either at the same time to the execution of a command located in block 2 of the program memory directly after this command (if the value of the variable being checked is 1). either to PERFORMANCE

менньк и одновременно в зависимости от значений этих переменных переход либо к выполнению команды, расположенной в блоке 2 пам ти программ не- 20 посредственно следом за данной коман дой (если значение провер емой переменной равно 1). либо к ВЫПОЛНЕНИЮdepending on the values of these variables, the transition either at the same time to the execution of a command located in block 2 of the program memory directly after this command (if the value of the variable being checked is 1). either to PERFORMANCE

команды, адрес которой указан в поле адреса (т„е. в следующем слове) данБлок управлени  содержит элемент И 23, элемент ИЛИ 24, триггер 25, выход 26 блока, элементы И 27-34, элемент ИЛИ 35, триггер 36, элемент И 37, выход 38 блока, элемент И 39, вхо- 25 ном команды (если значение провер е- ды 40 и 41 блока, элеменг И-НЕ 42, мой равно 0).the command whose address is specified in the address field (i.e. in the next word) the control unit contains the element AND 23, the element OR 24, the trigger 25, the output 26 of the block, the elements AND 27-34, the element OR 35, the trigger 36, the element AND 37, block output 38, element AND 39, command inlet (if the value of units 40 and 41 is checked, AND-NOT 42, mine is 0).

входы 43 и 44 блока, выходы 45-47 Формат команд первого типа имеет блока.следующий вид.inputs 43 and 44 of the block, outputs 45-47 The format of the commands of the first type has a block. The following form.

слово: код опера- номер входной или внутрен- цииword: code operational number input or internal

0-2 3 слово: адрес условного перехода А,0-2 3 word: conditional address A,

О- п-1О-п-1

ней переменной. Л: п-1it is variable. L: p-1

где А- и А - адреса расположени  команды первой группы. 2. Группа команд присвоени  значений логическим переменным, с помощью которых осуществл ютс  присвоени  значений 1 или О внешним выходным или внутренним логическим переменньм. Формат команд второго типа имеет вид: код опера- номер выходной или внутрен- ции ней переменнойwhere A- and A are the addresses of the location of the command of the first group. 2. A group of commands for assigning values to logical variables, with which the values of 1 or O are made to an external output or internal logical variable. The format of the commands of the second type is: code of the output variable or internal variable

0-2 3 .00 п-2 п-10-2 3 .00 p-2 p-1

3. Группа команд задани  направлений передачи данных по отдельным внешним выводам ПЛК. Формат команд этого типа имеет вид: код опера- номер внешнего вьшода ции ПЛК А .3. A group of commands for specifying data transfer directions for individual external PLC outputs. The format of commands of this type is as follows: the code is the operation number of the external PLC output A.

0-2 3 ... п-1 Последн   группа команд необходима дл  экономии числа внешних вьто- дов ПЛК, реализуемых в виде однокристальных БИС, а также дл  удобства0-2 3 ... p-1 The last group of commands is necessary to save the number of external PLC terminals implemented as single-chip LSIs, as well as for convenience

66

Коммутатор содержит группу 48 элементов Н, элемент ИЛИ 49, группу.50 элементов И, входы 51-53, коммутатора .The switch contains a group of 48 elements H, an element OR 49, a group of .50 elements AND, inputs 51-53, a switch.

Блок 2 пам ти программ ПЛК предназначен дл  хранени  программы реализации логического алгоритма управлени , представленной командами ПЛК. Система команд ПЛК состоит из команд следующих трех типов.Block 2 of the PLC program memory is intended for storing the program for implementing the logic control algorithm represented by the PLC commands. The PLC command system consists of the following three types of commands.

1. Группа команд условных переходов , с помощью которых может быть осуществлен анализ значений входных внешменньк и одновременно в зависимости от значений этих переменных переход либо к выполнению команды, расположенной в блоке 2 пам ти программ не- посредственно следом за данной командой (если значение провер емой переменной равно 1). либо к ВЫПОЛНЕНИЮ1. A group of conditional jump commands that can be used to analyze the values of input variables and, at the same time, depending on the values of these variables, go to the execution of a command located in block 2 of the program memory directly after this command (if the value of the variable is 1). either to PERFORMANCE

команды, адрес которой указан в поле адреса (т„е. в следующем слове) данном команды (если значение провер е- мой равно 0).the command whose address is specified in the address field (i.e. in the next word) of this command (if the value of the verification is 0).

номер входной или вinput number or in

3 ого перехода А, 3rd crossing A,

ней переменной. Л: п-1it is variable. L: p-1

построени  на основе этих ПЖ распределенных многопроцессорных СЛУ. ,build on the basis of these life span distributed multiprocessor SLN. ,

Полна  система команд приведена в табл.1.A complete system of commands is given in Table 1.

0 Согласно выбранным форматам команд адресное пространство блока 2 пам ти программ данного 1ШК равно 2, а суммарное число входных и выходных переменных в реализуемых в данном0 According to the selected command formats, the address space of the block 2 of the program memory of this 1 SC is 2, and the total number of input and output variables in the implemented

5 ПЛК алгоритмах логического управлени  ограничено сверху величиной . Число внутренних переменных также не должно превышать величины .5 PLC logic control algorithms are bounded above by magnitude. The number of internal variables should also not exceed the value.

Из табЛо видно, что команды записи в различные триггеры ПЛК (команды группы М 2 а ф} различаютс  первым разр дом регистра 3 команд. Второй же разр д регистра 3 команд содержит значение записываемой в выбранныйIt can be seen from the tabLo that the write commands to different triggers of the PLC (the commands of the group M 2 and f} are distinguished by the first register bit of the 3 command register. The second bit of the 3 register register contains the value written to the selected

g i-й триггер переменной,g i-th trigger variable

В командах усло ного перехода (команды группы № 1 а|,) второй разр д регистра 3 команд определ ет по переменной, от какого источникаIn the transition condition commands (commands of group no. 1 a |,), the second bit of the register of 3 commands determines by variable which source

00

будет выполнен условный переход: из регистра 7 внутренних переменных (при ) или из переключател  9 на- гшлнлеиий (при ).a conditional transition will be performed: from register 7 of internal variables (at) or from switch 9 overlays (at).

В командах настройки (команды группы № 3 3 1; а , 0) второй разр д регистра 3 команд определ ет направление передачи данных дл  i-ro переключател  9 направлений,In configuration commands (commands of group no. 3 3 1; a, 0), the second bit of register 3 of commands determines the direction of data transmission for the i-ro switch of 9 directions,

Така  структура команд позвол ет при выполнении команд группы № 2 непосредственно подавать на информационный вход, выбранный командой, триггер . При выполнении команд группы .V 1 второй разр д регистра 3 команд непосредственно управл ет работой селектора 6, с выхода которого снимаетс  анализируема  командой переменна .This command structure allows the execution of commands of group 2 to directly apply a trigger to the information input selected by the command. When executing the commands of the .V 1 group, the second register bit of the 3 commands directly controls the operation of the selector 6, which is removed from the output of the command being analyzed by the variable command.

Все это позвол ет упростить структуру устройства 4 управлени  и сократить число формируемых им управл ющих сигналов.All this allows us to simplify the structure of the control device 4 and reduce the number of control signals generated by it.

Блок А управлени  обеспечивает по- реализацию команд ПЛК. Такт- ность работы ГШК задаетс  генератором 5 импульсов. Функционирование устройства управлени  описываетс  с помощью микропрограммы, приведенной на фиГоЗ, Согласно этой микропрограмме блок 4 управлени  вьтолн ет следующие микрооперации:The control unit A provides for the implementation of PLC commands. The working time of the GShK is set by the generator of 5 pulses. The operation of the control unit is described by means of the firmware shown in FIG. According to this firmware, the control unit 4 implements the following micro-operations:

q ) РА - в регистр 3 команд слово из блока 2 пам ти программ по адресу, содержащемус  в счетчике 1 адреса;q) PA - to the register of 3 commands a word from block 2 of the program memory at the address containing in the counter 1 address;

q .) 27- запись содержимого второго разр да регистра 3 команд в триггер 14 вывода i-ro приемопе- редатчика 9;q.) 27- write the contents of the second bit of the register of 3 commands to the trigger 14 of the output of the i-ro transceiver 9;

q..) - содержимое счетчика i адреса увеличиваетс  на, единицу;q ..) - the content of the counter i of the address is increased by, one;

q.) 1- запись содержимого второго разр да регистра 3 ко- манд в i-й триггер регистра 7 внутренних переменных;q.) 1- record the contents of the second register register 3 commands in the i-th trigger register 7 internal variables;

q.) - содержимое счетчика 1 адреса увеличиваетс  на два;q.) - the contents of counter 1 address is increased by two;

q,) 1 - запись содержи- мого второго разр да регистра 3 команд в триггер 17 настройки i-ro приемопередатчика 9;q,) 1 - record of the content of the second bit of the register of 3 commands to the trigger 17 of setting the i-ro transceiver 9;

q) РА:РК - содержимое регистра 3 команд переписываетс  в счетчик 1 адреса.q) PA: RK - the contents of the register of 3 commands are rewritten into the counter 1 address.

Кроме того, на вход устройства 4 управлени  поступают следующие логические переменные:In addition, the following logic variables arrive at the input of the control device 4:

0 0

Q Q

п P

5five

Р,) ВК - если PI I, то данньпй ПЛК Bfii6paH и выполн етс  алгоритм логического управлени , если Р,0, то алгоритм не выполн етс  и все двунаправленные выводы наход тс  в состо нии высокого сопротивлени ;P,) VC — if PI I, then the given PLC Bfii6paH and the logic control algorithm is executed, if P, 0, then the algorithm is not executed and all bidirectional outputs are in a state of high resistance;

Р) - анализ значени  содержимого нулевого (старшего) разр да регистра 3 команд;P) —analysis of the value of the contents of the zero (senior) register register of 3 instructions;

РЗ) PKfl - анализ значени  содержимого первого разр да регистра 3 команд;RZ) PKfl - analysis of the value of the contents of the first register bit of 3 commands;

Р) - анализ значени  переменной V, наход щейс  в i-м триггере регистра 7 внутренних переменных (если РК ) или в введенной с i-ro приемопередатчика 9, если РК (2j 1.P) - analysis of the value of the variable V, which is in the i-th trigger of the register 7 internal variables (if RC) or in the input from the i-ro transceiver 9, if RC (2j 1.

Процесс реализации алгоритмов логического управлени  в ПЛК можно разбить на два зтапа: этап подготовки и этан выполнени .The process of implementing logic control algorithms in a PLC can be divided into two steps: the preparation stage and the ethane of execution.

На этапе подготовки вначале осуществл ютс  все необходимые преобразовани  исходных заданий алгоритмов . логического управлени  с целью приведени  их к прин той в ПЛК форме внутреннего представлени  этих алгоритмов, а затем производитс  запись преобразован- ных алгоритмов в блок 2 пам ти программ, Тое„ если рассматривать как ориентированную на решение логических задач специализированную ЭВМ, то можно счи тать, что этап подготовки - это этап программировани  данной специализированной ЭВМ. На этапе выполнени  осуществл етс  покомандна  реализаци  алгоритмов логического управлени , записанных в блоке 2 программ ПЛК во внутренней форме представлени .At the preparation stage, all the necessary transformations of the initial tasks of the algorithms are first performed. logical control in order to bring them to the internal representation of these algorithms adopted in the PLC, and then the converted algorithms are recorded in block 2 of the program memory. If we consider the specialized computer oriented to the solution of logic problems, that the preparation stage is the programming stage of this specialized computer. At the execution stage, the command implementation of the logic control algorithms written in block 2 of the PLC programs in the internal form of representation is carried out.

Соответствие между номерами входов и выходов блока 4 управлени  и микроопераци ми показано в табл.2. ПЛК работает следующим образом. При включении ПЛК в рабочий режим необходимо, помимо подачи напр жени  питани , подать импульсный сигнал на вход 10 Сброс ПЛК. Сигнал Сброс переводит ПЛК в начальное состо ние , указанное на фиг.З. Дл  рас- c aтpивaeмoгo ПЛК это означает установку в нулевое состо ние всех триггеров счетчика 1 адреса, регистра 3 команд, регистра 7 внутренних переменных , триггеров 14 и 17, приемопередатчиков группы 9 и триггеров 36 и , 25 блока 4 управлени .The correspondence between the input and output numbers of the control unit 4 and micro-operations is shown in Table 2. PLC works as follows. When switching on the PLC, it is necessary to supply a pulse signal to the input 10 Reset of the PLC, in addition to supplying the power supply voltage. The Reset signal transfers the PLC to the initial state indicated in FIG. For expanding an PLC, this means setting all triggers of the counter 1 address, register 3 commands, register 7 internal variables, triggers 14 and 17, transceivers of group 9 and triggers 36 and, 25 of control unit 4 to the zero state.

Затем подаетс  един1гчный потенциал на вход II ВК. При низком уровнеThen, a single potential is applied to the input II of the VK. At low level

на входе I1 ПЛК находитс  в состо нии а, а двунаправленные вьшоды наход тс  в состо нии высокого сопротивлени . Если , то в регистр 3 команд загружаетс  перва  команда, записанна  в нулевой  чейке блока 2 пам ти программ, т.е. Со . Загрузка команды осуществл етс  по стробу записи q,- вырабатываемому блоком 4 управлени .-на вьгоод 26. Содержимое первых двух разр дов регистра 3 команд анализируетс  в устройстве 4 управлени .at the input I1, the PLC is in the a state, and the bidirectional outputs are in the high resistance state. If, then the first command loaded in the zero cell of the program memory block 2, i.e. With. The command is loaded on the write strobe q, which is generated by control unit 4. -Three 26. The contents of the first two bits of register 3 of commands are analyzed in control unit 4.

Если содержимое нулевого разр да регистра 3 команд равно нулю (), то в текущем цикле обработки будет выполн тьс  команда записи содержимого второго разр да регистра 3 команд в i-й триггер регистра 7 внутренних переменных или запись в триггер 14 i-ro приемопередатчика 9. При значении содержимого- первого разр да регистра 3 команд, равном О, блок 4 управлени  вырабатывает строб записи q на выход 47, который поступает на вход записи всех триггеров регистра внутренних переменных через элементы И-НЕ. Вторые входы этих элементов соединены с выходами дешифратора 8. Та ким образом, содержимое РК С21 записываетс  только в 1-й триггер регистра 7 внутренних переменных, а именно в триггер, адрес которого указан в поле команды с 3 по n-l разр д Одновременно блоком управлени  вырабаты-. ваетс  строб qj на выход 45, которьй поступает на вход инкрементировани  содержимого счетчика 1 адреса на единицу . При значении содержимого первого разр да регистра 3 команд, равном 1, блок 4 управлени  вырабатывает строб q записи на выход 20, который поступает на первый вход элемента И 13 всех приемопередатчиков груп- 5 входе 11 ПЖ трехстабипьные буферы 15If the contents of the zero bit of the register of 3 commands is zero (), then the current processing cycle will execute the command to write the contents of the second bit of the register of 3 commands to the i-th trigger of the 7 internal variables register or write to the trigger 14 of the i-ro transceiver 9. When the content value is the first bit of the register of 3 commands equal to O, control block 4 generates a write strobe q at output 47, which is fed to the record of all triggers of the internal variable register through AND-NOT elements. The second inputs of these elements are connected to the outputs of the decoder 8. Thus, the contents of RC C21 are recorded only in the 1st trigger of the register 7 internal variables, namely, the trigger whose address is specified in the command field from 3 to nl bit. -. Gate qj is output 45, which is fed to the input of incrementing the contents of counter 1 address by one. When the value of the contents of the first bit of the register of 3 commands equals 1, the control unit 4 generates a write strobe q at output 20, which is fed to the first input of the AND 13 element of all transceivers in group 5 of input 11 RV three-staged buffers 15

пы 9. Вторые входы элементов И 13 со-всех ПЛК переход т в состо ние: высоединены с выходами дешифратора 8, по кого сопротивлени , т.е. ПЛК отклюэтому строб q поступает на синхро-чаетс  от шины, к которой он подклювход триггера 14 того приемопередат--чен выводами 12. Одновременно с вырачика , адрес которого указан в поле ре-ggботкой строба записи q блок 4 управгистра 3 команд с 3 по п-1 разр д.лени  вырабатывает строб, поступаюЗначение второго регистра 3 командщий на вход инкрементировани  содерпоступает непосредственно на информа-жимого регистра 1 адреса на единицу, ционный вход триггера 14. При этом9. The second inputs of the AND 13 co-all PLC elements go to the state: merged with the outputs of the decoder 8, which resistance, i.e. PLC off gate strobe q goes to sync from bus to which it connects trigger 14 of that transceiver to terminals 12. Simultaneously from the switch whose address is specified in the strobe field of recording strobe q unit 4 of control 3 commands 3 to n The -1 bit of the output generates a strobe; the second commander's register 3 is input to the increment input and goes directly to the address information register 1 per unit, the trigger trigger input 14. In this case

5555

если триггер 17 находитс  в состо нии 1, то элемент И 16 открыт, так как на входе 11 ВК также 1, а следовательно , и трехстабильньм буфер 15 открыт. Поэтому значение РК 2,if trigger 17 is in state 1, then element AND 16 is open, since at the input 11 of the VC it is also 1, and therefore, the three-stable buffer 15 is open. Therefore, the value of RK 2,

Если содержимое нулевого и первого разр дов регистра 3 команд равны единице f ff , то в текущем цикле обработки будет выполн тьс  команда условного перехода. При выполненииIf the contents of the zero and first bits of the register of 3 commands are equal to one f ff, then the conditional branch command will be executed in the current processing cycle. By doing

записанное в триггер 14 i-ro приеме-, передатчика 9, по витс  также и на выходе 12 этого приемопередатчика. Одновременно с выработкой строба за- писи q } блок 4 управлени  вырабатьгаа- ет строб q , поступающий на вход инкрементировани  содержимого счетчика I адреса на единицу.recorded in the trigger 14 i-ro receiver, transmitter 9, also on the output 12 of this transceiver. Simultaneously with the generation of the recording strobe q}, the control unit 4 generates a strobe q arriving at the input of incrementing the contents of the counter I of the address by one.

0 Если содержимое нулевого разр да регистра 3 команд равно единице (Р 1), а содержимое первого разр да этого же регистра равно нулю (), то в текущем цикле обработки будет0 If the contents of the zero bit of the register of the 3 commands are equal to one (P 1), and the contents of the first bit of the same register are zero (), then in the current processing cycle there will be

5 выполн тьс  команда настройки i-ro прлемопередатчика 9 на режим ввода или на режим вьшода Блок 4 управлег НИН вырабатьшает строб записи q на выход 21, которьш поступает на5 execute the i-ro tuning command of the transceiver 9 for the input mode or for the output mode. Block 4 The NIN control generates a recording strobe q on the output 21, which goes to

о первый вход элемента И 18 всех приемопередатчиков группы Вторые входы элементов И 18 соединены с выходами дешифратора В, поэтому строб q / поступает на синхровход 17 того приемо5 передатчика, адрес которого указанAbout the first input of the And 18 element of all transceivers of the group The second inputs of the And 18 elements are connected to the outputs of the decoder B, therefore the strobe q / arrives at the synchronous input 17 of the transmitter's 5 receiving address specified

в поле с 3 по п-1 разр д регистра 3 команд о Выход триггера 17 через элемент И 16 соединен с управл ющим входом трехстабильного буфера 15. Iin field 3 through p-1, the register bit of 3 commands o The output of the trigger 17 through the element 16 is connected to the control input of the three-stable buffer 15. I

0 При этом если РК 2j 1, то в триггер 17 записываетс  единица и данный приемопередатчик ориентирован на вьщачу информации Тое. двунаправленный вывод представл етс  как выход, на кото5 рьгй поступают управл ющие сигналы. Если РК 2 0, то в триггер 17 за- пнсьгоаетс  нуль и данный приемопередатчик ориентирован на прием информации , т„ео трехстабильный буфер 150 At the same time, if the RC 2j 1, then the unit 17 is recorded in the trigger 17, and this transceiver is focused on the Toe information. Bidirectional output is represented as the output to which control signals are received. If RK 2 0, then zero is recorded in the trigger 17 and this transceiver is oriented to receive information, the three-stable buffer is 15

0 находитс  в состо нии высокого сопротивлени  и двунаправленный вывод представл етс  как вход, на который по ступают информационные сигналы извне. При наличии нулевого потенциала на0 is in a high impedance state and the bidirectional output is represented as an input, which receives information signals from the outside. If there is zero potential on

Если содержимое нулевого и первого разр дов регистра 3 команд равны единице f ff , то в текущем цикле обработки будет выполн тьс  команда условного перехода. При выполненииIf the contents of the zero and first bits of the register of 3 commands are equal to one f ff, then the conditional branch command will be executed in the current processing cycle. By doing

команд условного перехода анализируетс  также значение переменной . Адрес устройства, с которого поступает переменна , указан в разр дах с 3 по n-1-й регистра 3 команд, а также в РК 2 . Если РК 2 0, то  вл етс  переменной, хран щейс  в i-M триггере регистра 7 внутренних переменных о Если же РК , то Vfi  вл етс  выходным значением i-ro приемопередатчика группы 9, В зависимости от настройки этого приемопередатчика  вл етс  либо значением внешней входной переменной, поступающей на вход 12, либо значением выходного триггера i-ro приемопередатчика .conditional jump commands also analyze the value of a variable. The address of the device from which the variable is received is specified in bits 3 through n-1 of the register of 3 commands, as well as in RC 2. If PK 2 0, then is the variable stored in the iM trigger register of internal variables 7, o If the RC, then Vfi is the output value of the i-th transceiver of group 9. Depending on the setting of this transceiver, is either the value of the external input variable arriving at input 12, or the value of the output trigger of the i-ro transceiver.

Если анализируема  переменна  , то в счетчике 1 адреса формируетс  адрес следующей команды, который находитс  через одну  чейку бпрка 2 пам ти программ относительно текущей команды. При этом блок 4 управле- ни  вырабатывает строб на вьтод 46,If the variable to be analyzed is, then in the address counter 1 the address of the next command is generated, which is located through one cell of the memory 2 of the program relative to the current command. In this case, the control unit 4 generates a strobe to the gate 46,

1 1eleven

1 0ten

0 10 1

1 0 ten

0 0 0 0

р Ф ФR F

0 0

1 0 0100

по .которому осуществл етс  инкрементирование счетчика 1 адреса на два. Если же анализируема  переменна  Vti 0, то в следующем цикле обработки будет выполн тьс  команда, адрес, которой записан в следующей за текущей командой  чейке блока 2 пам ти программе Дл  записи в счетчик 1 адреса команды, на которую осуществл етс  переход, необходимо выполнить последовательно три микрокоманды. Вначале блок 4 управлени  вырабатывает строб q , по котором.у содержимое счетчика 1 адреса увеличиваетс  на единицу, далее по следующему тактовому импульсу вырабатываетс  строб q на запись в- регистр 3 команд выбранного из блока 2 пам ти программ по адресу, наход щемус  в счетчике 1 адреса, адреса перехода. И далее по .новому,тактовому импульсу на выход 38 вырабатываетс  строб записи q, по которому содержимое регистра 3 команд переписьшаетс  в счетчик 1 адреса,according to which the counter 1 address is incremented by two. If, however, the variable Vti 0 is being analyzed, then in the next processing cycle the command will be executed, the address that is written in the program next to the current command cell of memory 2 To write to the counter 1 the address of the command to which the transition is made, you must perform three successively microinstructions First, control unit 4 generates a strobe q, by which the contents of address 1 are incremented by one, then the next clock impulse produces strobe q to write into the register of 3 commands selected from block 2 of program memory at the address located in counter 1 addresses, addresses of transition. And further on, a new clock pulse to output 38 produces a recording gate strobe q, according to which the contents of register 3 of commands are copied to counter 1 of the address,

Т а б л и ц а 1Table 1

Условный переход по значению внешней т входной переменной Условный переход по значению внутренней переменной Присвоение значени  1 i-й внутренней переменной Присвоение значени The conditional transition by the value of the external m input variable The conditional transition by the value of the internal variable Assignment of value 1 of the i-th internal variable Assignment of value

0i-й внутренней переменной Присвоение значени 0i-th internal variable Assignment of value

1i-й внешней выходной переменной Присвоение значени  О i-й внешней выходной переменной Установка выходного направлени  передачи данных дл  i-ro переключател  Установка входного направлени  переда - чи данных дл  1-го переключател 1i-th external output variable Assignment of value About i-th external output variable Setting the output direction of data transfer for i-ro switch Setting the input direction of data transfer for 1st switch

юYu

rr

Таблица 2table 2

ItIt

I (рл jf,|I (pl jf, |

00

/, «/, "

tttt

Редактор А.Лсжнина Техред М.ХоданичEditor A.Lszhnina Tehred M.Hodanich

Заказ 4445/49 Тираж 668ПодписноеOrder 4445/49 Circulation 668 Subscription

ВНИИПИ Государственного комитета по изобретени м и открыти м при ГКНТ СССР 113035, Москва, Ж-35, Раушска  наб., д. 4/5VNIIPI State Committee for Inventions and Discoveries at the State Committee on Science and Technology of the USSR 113035, Moscow, Zh-35, Raushsk nab. 4/5

Производственно-издательский комбинат Патент, г.Ужгород, ул. Гагарина,101Production and publishing plant Patent, Uzhgorod, st. Gagarin, 101

эuh

MM

J)J)

иand

)t) t

«"

IFIF

EhEh

JOJO

MM

« l-j"L-j

40 fO40 fO

 

4}four}

U(.5U (.5

Корректор Т.КолбProofreader T. Kolb

Claims (1)

ПРОГРАММИРУЕМЫЙ ЛОГИЧЕСКИЙ КОНТРОЛЛЕР, содержащий блок памяти программ, счетчик адреса, регистр команд, дешифратор, генератор тактовых импульсов и блок управления, причем выход поля адресной части команд регистра команд подключен к входу дешифратора и информационному входу счетчика адреса, выход которого подключен к адресному входу блока памяти программ, выход которого подключен к информационному входу регистра команд, синхровход которого подключен к выходу записи команды блока управления, выходы первого и второго старших разрядов кода операции регистра команд подключены соответственно к входам признака команд записи информации и признака команд условного перехода и управления передачей информации блока управления, выход генератора тактовых' импульсов подключен к входу тактовых импульсов блока управления, вход сброса и вход разрешения работы которого подключены соответственно к входу начальной установки контроллера и входу признака разрешения работы контроллера, выходы признаков перехода к следующей команде, пропуска следующей команды и записи адреса блока управления подключены соответственно к входу прибавления единицы, входу прибавления двойки и синхровходу счетчика адреса, отличающийся тем, что, с целью повышения быстродействия, в него введены регистр внутренних переменных, коммутатор и группа магистральных приемопередатчиков, рричем вход начальной установки в ноль регистра команд, регистра внутренних переменных и входам начальной g установки магистральных приемопередат· чиков группы, вход признака разрешения работы контроллера подключен к входам признака разрешения режима Вывода информации магистральных приемопередатчиков группы, выходы которых объединены и подключены к первому информационному входу коммутатора, второй информационный вход и выход которого подключены соответственно к выходу регистра внутренних переменных и входу логических условий блока управления, выход дешифратора и выход младшего разряда кода операции регистра команд подключен к управляющему входу коммутатора, выход младшего разряда кода операции регистра команд подключен к информационному входу регистра внутренних переменных и информационным входам приемопередатчиков группы, К-й выход дешифратора подключен к входу разрешения записи в К-й разряд регистра внутренних переменных и входу выборки К-гоA PROGRAMMABLE LOGIC CONTROLLER containing a program memory block, an address counter, a command register, a decoder, a clock generator and a control unit, the output of the address part of the command register commands being connected to the decoder input and the information counter input, the output of which is connected to the address input of the memory block programs, the output of which is connected to the information input of the command register, the sync input of which is connected to the output of the command record of the control unit, the outputs of the first and second senior bits to Yes, the operations of the command register are connected respectively to the inputs of the sign of the commands for recording information and the sign of the commands of the conditional transition and control the transmission of information of the control unit, the output of the clock 'pulses generator is connected to the input of the clock pulses of the control unit, the reset input and the enable input of which are connected respectively to the input of the initial setting the controller and the input of the sign of permission of the controller, the outputs of the signs of the transition to the next command, skipping the next command and writing the address of the block the equations are connected respectively to the input of adding one, the input of adding two, and the synchro input of the address counter, characterized in that, in order to improve performance, the register of internal variables, the switch and the group of trunk transceivers are entered into it, by which the input of the initial setting to zero of the instruction register, the register of internal variables and inputs of the initial installation g of trunk transceivers of the group, the input of the sign of permission of the controller is connected to the inputs of the sign of permission of the Output mode and formations of the trunk transceivers of the group, the outputs of which are combined and connected to the first information input of the switch, the second information input and output of which are connected respectively to the output of the register of internal variables and the input of the logical conditions of the control unit, the output of the decoder and the low-order output of the operation register code of the command register is connected to the control input switch, the low-order output of the operation code of the instruction register is connected to the information input of the register of internal variables and to the input inputs of the group transceivers, the Kth output of the decoder is connected to the write enable input to the Kth bit of the register of internal variables and the sampling input of the Kth SU 1497616 А1 магистрального приемопередатчика группы (К=1,М, где М - разрядность информационного входа-выхода контроллера), вход-выход которого подключен к К-му $ входу-выходу группы контроллера, выходы признаков записи внутренней переменной, признака записи внешних переменных и признака направления обмена информацией блока управления под- |Q ключены соответственно к синхровходу регистра внутренних переменных, входам записи выводимой информации и записи признака режима работы магист-: ральных приемопередатчиков группы, 15 причем блок управления содержит два элемента ИЛИ, два триггера, элемент И-НЕ и одиннадцать элементов И, причем выход первого элемента ИЛИ подключен к выходу записи команды блока 20 и информационному входу первого триггера, прямой выход которого подключен к первым входам первого и второго элементов И, инверсный выход пер25 вого триггера подключен к первым вхо-1 дам третьего и четвертого элементов И,' вход начальной установки устройства подключен к входам установки в поле первого и второго триггеров, синхровходы которых подключены к входу 30 тактовых импульсов блока, третий вход второго элемента ИЛИ подключен к выходу пятого элемента И, информационный вход второго триггера подключен к выходу второго элемента ИЛИ, прямой 35 выход второго триггера подключен к вторым входам первого и третьего элементов И, инверсный выход второго триггера подключен к вторым входам второго и четвертого элементов И, 40 выход первого элемента И подключен к выходу записи адреса блока, выход второго элемента И подключен к первым входам пятого, шестого, седьмого, восьмого, девятого и десятого элементов И, вторые входы пятого и десятого элементов И подключены соответственно к входу логических условий блока и выходу элемента И-НЕ, выходы девятого и десятого элементов И подключены соответственно к выходам признаков пропуска следующей команды и перехода к следующей команде блока, вход признака команды записи информации блока подключен к третьему входу пятого элемента И, вторым входам шестого, седьмого, восьмого, девятого элемент тов И и первому входу элемента И-НЕ, второй вход которого, подключен к входу логических условий блока, третьи входы элемента И-НЕ, шестого, седьмого, восьмого, девятого элементов И и четвертый вход пятого элемента И подключены к входу признака команд условного перехода и управления передачей информации блока, вход разрешения работы блока подключен к первому входу одиннадцатого элемента И, второй вход и выход которого подключены соответственно к выходу четвертого элемента И и первому входу первого элемента ИЛИ, вторые входы первого и второго элементов ИЛИ подключены к выходу третьего элемента И, вход логических условий блока подключен к четвертому входу девятого элемента И, выходы шестого, седьмого и восьмого элементов И подключены соответственно к выходу признака направления обмена информацией блока, выходу признака записи внутренних переменных блока и выходу признака записи внешних переменных блока.SU 1497616 A1 of the trunk transceiver of the group (K = 1, M, where M is the bit depth of the controller's information input-output), the input-output of which is connected to the K-th $ input-output of the controller group, outputs of signs of recording an internal variable, sign of writing external variables and the sign of the direction of information exchange of the control unit are con- nected | Q to the sync input of the register of internal variables, inputs of the record of the output information, and the record of the sign of the operating mode of the main: group transceivers, 15 and the unit is controlled It contains two OR elements, two triggers, an AND element and eleven AND elements, the output of the first OR element being connected to the output of the command record of block 20 and to the information input of the first trigger, the direct output of which is connected to the first inputs of the first and second AND elements, inverse per25 Vågå output connected to the first latch 1 vho- give third and fourth aND gates' input initial setting device is connected to the inputs of the installation in the first and second flip-flops, which are connected to the clock input 30 clock pulses bl ka, the third input of the second OR element is connected to the output of the fifth AND element, the information input of the second trigger is connected to the output of the second OR element, direct 35 the output of the second trigger is connected to the second inputs of the first and third elements AND, the inverse output of the second trigger is connected to the second inputs of the second and the fourth element And, 40 the output of the first element And is connected to the output of the recording address of the block, the output of the second element And is connected to the first inputs of the fifth, sixth, seventh, eighth, ninth and tenth elements And, the second inputs of the fifth and of the tenth elements AND are connected respectively to the input of the logical conditions of the block and the output of the element AND NOT, the outputs of the ninth and tenth elements AND are connected respectively to the outputs of the signs of skipping the next command and switching to the next command of the block, the input of the sign of the command to write information of the block is connected to the third input of the fifth element And, the second inputs of the sixth, seventh, eighth, ninth elements of the AND components and the first input of the AND element, the second input of which is connected to the input of the logical conditions of the block, the third inputs of the AND element, the sixth oh, the seventh, eighth, ninth elements And and the fourth input of the fifth element And are connected to the input of the sign of the conditional transition commands and control the transmission of information of the block, the input for enabling the block is connected to the first input of the eleventh element And, the second input and output of which are connected respectively to the output of the fourth AND element and the first input of the first OR element, the second inputs of the first and second OR elements are connected to the output of the third AND element, the input of the logical conditions of the block is connected to the fourth input of the ninth element And, the outputs of the sixth, seventh and eighth elements And are connected respectively to the output of the sign of the direction of exchange of information of the block, the output of the sign of recording internal variables of the block and the output of the sign of recording external variables of the block.
SU843822699A 1984-12-07 1984-12-07 Programmable logic controller SU1497616A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
SU843822699A SU1497616A1 (en) 1984-12-07 1984-12-07 Programmable logic controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
SU843822699A SU1497616A1 (en) 1984-12-07 1984-12-07 Programmable logic controller

Publications (1)

Publication Number Publication Date
SU1497616A1 true SU1497616A1 (en) 1989-07-30

Family

ID=21150614

Family Applications (1)

Application Number Title Priority Date Filing Date
SU843822699A SU1497616A1 (en) 1984-12-07 1984-12-07 Programmable logic controller

Country Status (1)

Country Link
SU (1) SU1497616A1 (en)

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Авторское свидетельство СССР № 1236476, кл„ G 06 F 9/22, 1984с, Bonte R.T, The binary decision machine is programmable controllers Euromicro newsteller. 1976, № 2, p.16-22, рис.2а. *

Similar Documents

Publication Publication Date Title
US4490786A (en) Vector processing unit
US4821167A (en) Method and apparatus for sequential control of analogue signals
US4451885A (en) Bit operation method and circuit for microcomputer
US3969704A (en) Word transformation apparatus for digital information processing
US4365312A (en) Sequence controller
US3213427A (en) Tracing mode
SU1497616A1 (en) Programmable logic controller
US4888685A (en) Data conflict prevention for processor with input/output device
JPH1174360A (en) Semiconductor logic circuit device
SU1425683A1 (en) Device for debugging software/hardware blocks
US3967245A (en) Traffic signal control device with core memory
SU1564603A1 (en) Device for processing indistinct information
RU2079876C1 (en) Microprogram control device
SU813412A1 (en) Programming medium
JPH11260928A (en) Semiconductor logic circuit device
SU1295409A1 (en) Device for organizing multiprocessor system
SU960954A1 (en) Logic memory device
SU1213485A1 (en) Processor
SU1211723A1 (en) Control device for scanning-type data logging system
SU1254482A1 (en) Device for generating address of command
JPH0228174B2 (en)
SU732878A1 (en) Device for realization of logical functions
SU794631A1 (en) Input-output control device
SU1179356A1 (en) Information input-output device
SU868749A1 (en) Number sorting device