RU2743247C1 - Method of programmable logic controller operation - Google Patents

Method of programmable logic controller operation Download PDF

Info

Publication number
RU2743247C1
RU2743247C1 RU2020121116A RU2020121116A RU2743247C1 RU 2743247 C1 RU2743247 C1 RU 2743247C1 RU 2020121116 A RU2020121116 A RU 2020121116A RU 2020121116 A RU2020121116 A RU 2020121116A RU 2743247 C1 RU2743247 C1 RU 2743247C1
Authority
RU
Russia
Prior art keywords
module
bus
data
packet
modules
Prior art date
Application number
RU2020121116A
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 RU2020121116A priority Critical patent/RU2743247C1/en
Application granted granted Critical
Publication of RU2743247C1 publication Critical patent/RU2743247C1/en

Links

Images

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/04Programme control other than numerical control, i.e. in sequence controllers or logic controllers
    • G05B19/05Programmable logic controllers, e.g. simulating logic interconnections of signals according to ladder diagrams or function charts
    • G05B19/058Safety, monitoring
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/18Numerical control [NC], i.e. automatically operating machines, in particular machine tools, e.g. in a manufacturing environment, so as to execute positioning, movement or co-ordinated operations by means of programme data in numerical form
    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B19/00Programme-control systems
    • G05B19/02Programme-control systems electric
    • G05B19/418Total factory control, i.e. centrally controlling a plurality of machines, e.g. direct or distributed numerical control [DNC], flexible manufacturing systems [FMS], integrated manufacturing systems [IMS] or computer integrated manufacturing [CIM]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Automation & Control Theory (AREA)
  • General Engineering & Computer Science (AREA)
  • Manufacturing & Machinery (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Human Computer Interaction (AREA)
  • Programmable Controllers (AREA)

Abstract

FIELD: computer technology.SUBSTANCE: invention relates to the field of computer technology, in particular to a method for operating a programmable logic controller. The method comprises the stages at which the modules are connected to an address assignment bus with a serial connection and to a data exchange bus with a parallel connection; exchange data via the address assignment bus in case of failure of the data exchange bus; automatically assign an address to at least one module via the address assignment bus, moreover, the data packet forms a computing module and transmits this packet to at least one module, which receives the data packet, writes the value of the counter as an address on the bus, adds the value of one to the value of the counter, and transmits the packet to at least the next module, in which the operation is repeated; the exchange of working data is carried out at the request of the computing module, or at the request of at least one module, or a broadcast request is made; operating ability of at least one module is monitored by checking the time of the packet acceptance via the data exchange bus connected in series; and if the time exceeds the specified value, the connection with the module is considered lost; at least one module is replaced in case of malfunction, and the new module is configured automatically.EFFECT: increased reliability of the controller modules.6 cl, 1 dwg

Description

ОБЛАСТЬ ТЕХНИКИFIELD OF TECHNOLOGY

Настоящее техническое решение относится к области вычислительной техники, в частности, к способу работы программируемого логического контроллера (далее - ПЛК).The present technical solution relates to the field of computing, in particular, to the method of operation of a programmable logic controller (hereinafter - PLC).

УРОВЕНЬ ТЕХНИКИLEVEL OF TECHNOLOGY

Из уровня техники известен источник информации US 5,179,670 A, 12.01.1993, который раскрывает автоматическое назначение адресов модулям. Блок интерфейса шины для использования в системе обработки данных, в которой несколько таких блоков подключены к шине, содержащей: определение входа, называемого входом BusLeft, определение выхода, называемого выходом BusRight, входа, называемого входом BusRight, и выхода, называемого выходом BusLeft; первое средство, реагирующее на прием первого числа импульсов на входе BusLeft, для подачи первого измененного количества импульсов на выход BusRight; а также второе средство, реагирующее на прием второго числа импульсов на входе BusRight, для возбуждения второго модифицированного количества импульсов на выходе BusLeft; а также средство, отвечающее указанным первым и вторым числам, для определения относительного положения на основе упомянутых первого и второго чисел.A source of information US 5,179,670 A, 01/12/1993 is known from the prior art, which discloses the automatic assignment of addresses to modules. A bus interface block for use in a data processing system in which several such blocks are connected to a bus comprising: defining an input called a BusLeft input, defining an output called a BusRight output, an input called a BusRight input, and an output called a BusLeft output; first means, responsive to receiving the first number of pulses at the BusLeft input, for supplying the first changed number of pulses to the BusRight output; as well as a second means responsive to receiving a second number of pulses at the BusRight input for driving a second modified number of pulses at the BusLeft output; and means corresponding to said first and second numbers for determining a relative position based on said first and second numbers.

В предлагаемом решение не отсылают импульсы по шине назначения адреса, а направляют пакет данных с установкой логического уровня в виде логической “1” соседнему модулю (следующему по порядку) о том, что текущий модуль сформировал пакет данных и отсылает его на шину и в этом пакете данных содержится адрес, соседний модуль понимает, что данный пакет для него и адрес в данном пакете данных также предназначен для него, сохраняет передаваемый адрес себе в память и повторяет процедуру для последующего модуля.In the proposed solution, pulses are not sent along the address assignment bus, but a data packet is sent with the setting of a logic level in the form of a logical “1” to a neighboring module (next in order) that the current module has formed a data packet and sends it to the bus and in this packet data contains the address, the neighboring module understands that this packet is for him and the address in this data packet is also intended for him, saves the transmitted address in memory and repeats the procedure for the next module.

В качестве наиболее близкого аналога выбран программируемый логический контроллер FASTWEL I/O (https://www.cta.ru/cms/f/352126.pdf), в котором используется стандарт физического уровня для асинхронного интерфейса RS485. Данный стандарт предполагает только работу по запросу. Подчинённое устройство не может начать передавать данные запросившему устройству. Таким образом на указанной шине всегда есть устройство-master и ряд подчинённый (slave) устройств. Master запрашивает, slave отвечает. The FASTWEL I / O programmable logic controller (https://www.cta.ru/cms/f/352126.pdf), which uses the physical layer standard for the asynchronous RS485 interface, is chosen as the closest analogue. This standard assumes only work on demand. The slave device cannot start transmitting data to the requesting device. Thus, on the specified bus there is always a master device and a number of slave devices. Master asks, slave responds.

В предлагаемом решении возможны 2 варианта: ответ модуля по запросу и когда любое устройство может начать передавать данные в шину обмена данными.In the proposed solution, 2 options are possible: the response of the module upon request and when any device can start transmitting data to the data exchange bus.

В случае использования RS485 для получения данных устройство - master должно регулярно (например, 1 раз в секунду) запрашивать данные у подчинённого (slave) устройства данные. Этот механизм приводит к перегрузке шины обмена данными. In the case of using RS485 to receive data, the master device must regularly (for example, once a second) request data from the slave device for data. This mechanism overloads the communication bus.

В предлагаемом решении устройство-вычислитель не запрашивает данные у модулей на шине, к которому подключены какие-либо датчики. Если изменились входные параметры у модуля, к которому подключены датчики, то модуль сам инициирует передачу данных на шину обмена данных и приёмником данного сообщения не обязательно будет устройство-вычислитель. Это значительно снижает информационную нагрузку на шину обмена данными, так как не происходит ежесекундный опрос данных, которые по сути не изменились. In the proposed solution, the calculator device does not request data from modules on the bus to which any sensors are connected. If the input parameters of the module to which the sensors are connected have changed, then the module itself initiates data transfer to the data exchange bus and the receiver of this message will not necessarily be the computer device. This significantly reduces the information load on the data exchange bus, since there is no every second polling of data that has not essentially changed.

В FastwelI/O при назначении адреса модулям ввода-вывода информационный пакет данных для назначения адреса формирует master-устройство. In FastwelI / O, when assigning an address to I / O modules, an information data packet for assigning an address is formed by a master device.

В предлагаемом решении благодаря применению шины UART только первый пакет формирует модуль-вычислитель. Первое устройство приняло пакет, записало адрес, увеличило счётчик, отправило пакет на шину соседнему модулю. In the proposed solution, due to the use of the UART bus, only the first packet forms a calculator module. The first device received the packet, wrote down the address, increased the counter, sent the packet to the bus to the neighboring module.

СУЩНОСТЬ ИЗОБРЕТЕНИЯSUMMARY OF THE INVENTION

Технической проблемой, на решение которой направлено заявленное решение, является создание способа работы программируемого логического контроллера, которое охарактеризовано в независимом пункте формулы. Дополнительные варианты реализации настоящего изобретения представлены в зависимых пунктах изобретения.The technical problem to be solved by the claimed solution is the creation of a method for the operation of a programmable logic controller, which is described in an independent claim. Additional embodiments of the present invention are presented in the dependent claims.

Технический результат заключается в повышении надежности и эффективности работы контроллера.The technical result consists in increasing the reliability and efficiency of the controller.

Заявленный результат достигается за счет осуществления способа работы программируемого логического контроллера, содержащий этапы, на которых:The claimed result is achieved by implementing the method of operation of the programmable logic controller, containing the stages at which:

по меньшей мере два модуля подключают по шине назначения адреса с последовательным подключением и к шине обмена данными с параллельным подключением; at least two modules are connected via an address assignment bus with a serial connection and a data exchange bus with a parallel connection;

осуществляют обмен данными по шине назначения адреса, в случае выхода из строя шины обмена данными;exchange data via the address assignment bus in case of failure of the data exchange bus;

автоматически присваивают адрес по меньшей мере одному модулю по шине, причем пакет данных формирует модуль-вычислитель и передает этот пакет на по меньшей мере один модуль, первый модуль принял пакет данных и записывает значение счетчика как адрес на шине, прибавляет к значению счетчика значение единицы и передает пакет по меньшей мере следующему модулю, в котором операция повторяется;automatically assign an address to at least one module via the bus, and the data packet forms a calculator module and transmits this packet to at least one module, the first module received the data packet and writes the counter value as an address on the bus, adds the value of one to the counter value, and transfers the packet to at least the next module, in which the operation is repeated;

обмен рабочими данными осуществляют по запросу модуля-вычислителя либо по запросу по меньшей мере одного модуля, либо осуществляют широковещательный запрос;the exchange of working data is carried out at the request of the calculator module, or at the request of at least one module, or a broadcast request is carried out;

осуществляют отслеживание работоспособности по меньшей мере одного модуля, проверяя время принятия пакета по шине обмена данными подключенной последовательно;monitoring the health of at least one module, checking the time of receiving the packet on the data exchange bus connected in series;

осуществляют замену по меньшей мере одного модуля в случае неработоспособности, настройка нового модуля осуществляется в автоматическом режиме.at least one module is replaced in case of inoperability, the new module is configured in an automatic mode.

В частном варианте реализации предлагаемого способа, на шине обмена данными используют CAN-интерфейс.In a particular embodiment of the proposed method, a CAN interface is used on the data exchange bus.

В другом частном варианте реализации предлагаемого способа, на шине назначения адреса используется UART- интерфейс.In another particular embodiment of the proposed method, a UART interface is used on the address assignment bus.

В другом частном варианте реализации предлагаемого способа, при последовательном подключении к шине обмена данными по меньшей мере два модуля объединяются в петлю.In another particular embodiment of the proposed method, when serially connected to the data exchange bus, at least two modules are combined into a loop.

В другом частном варианте реализации предлагаемого способа, предусмотрена возможность подключения до 128 модулей.In another particular embodiment of the proposed method, it is possible to connect up to 128 modules.

В другом частном варианте реализации предлагаемого способа, пользователь может взаимодействовать с контроллером через web-интерфейс.In another particular embodiment of the proposed method, the user can interact with the controller via a web interface.

ОПИСАНИЕ ЧЕРТЕЖЕЙDESCRIPTION OF DRAWINGS

Реализация изобретения будет описана в дальнейшем в соответствии с прилагаемыми чертежами, которые представлены для пояснения сути изобретения и никоим образом не ограничивают область изобретения. К заявке прилагаются следующие чертежи:The implementation of the invention will be described in the following in accordance with the accompanying drawings, which are presented to clarify the essence of the invention and in no way limit the scope of the invention. The following drawings are attached to the application:

Фиг.1. иллюстрирует способ подключения модулей к шинам данных.Fig. 1. illustrates how to connect modules to data buses.

ДЕТАЛЬНОЕ ОПИСАНИЕ ИЗОБРЕТЕНИЯDETAILED DESCRIPTION OF THE INVENTION

В приведенном ниже подробном описании реализации изобретения приведены многочисленные детали реализации, призванные обеспечить отчетливое понимание настоящего изобретения. Однако, квалифицированному в предметной области специалисту, будет очевидно каким образом можно использовать настоящее изобретение, как с данными деталями реализации, так и без них. В других случаях хорошо известные методы, процедуры и компоненты не были описаны подробно, чтобы не затруднять излишне понимание особенностей настоящего изобретения.In the following detailed description of an implementation of the invention, numerous implementation details are set forth to provide a thorough understanding of the present invention. However, it will be obvious to those skilled in the art how the present invention can be used, with or without these implementation details. In other instances, well-known techniques, procedures, and components have not been described in detail so as not to obscure the details of the present invention.

Кроме того, из приведенного изложения будет ясно, что изобретение не ограничивается приведенной реализацией. Многочисленные возможные модификации, изменения, вариации и замены, сохраняющие суть и форму настоящего изобретения, будут очевидными для квалифицированных в предметной области специалистов.In addition, it will be clear from the above description that the invention is not limited to the above implementation. Numerous possible modifications, changes, variations and substitutions, while retaining the spirit and form of the present invention, will be apparent to those skilled in the art.

Настоящее изобретение направлено на обеспечение способа работы ПЛК и может быть использовано в автоматизированной системе управления технологическими процессами (далее - АСУ ТП). Также решение может применяться в любых областях, где нужно автоматизировать ручной человеческий труд (теплицы, коровники, нефте или горнодобывающая отрасль).The present invention is aimed at providing a method for the operation of a PLC and can be used in an automated process control system (hereinafter - APCS). Also, the solution can be applied in any areas where manual human labor needs to be automated (greenhouses, cowsheds, oil or mining).

Система, осуществляющая работу предлагаемого способа, состоит из вычислителя, который включает в себя по меньшей мере, но не ограничиваясь, центральный процессор, ОЗУ, NAND-flash память, часы реального времени, порты ввода вывода (RS232, RS485, CAN, Ethernet, UART), система также состоит из по меньшей мере одного модуля ввода-вывода, а также двух шин обмена данными с интерфейсами UART и CAN. Данная система является программируемым логическим контроллером (ПЛК). Программа для функционирования ПЛК записывается в вычислитель, который управляет всеми модулями вывода, считывает информацию с модулей ввода, находящимися на шине обмена данными. The system performing the work of the proposed method consists of a calculator, which includes at least but not limited to a central processor, RAM, NAND-flash memory, real time clock, input / output ports (RS232, RS485, CAN, Ethernet, UART ), the system also consists of at least one I / O module, as well as two communication buses with UART and CAN interfaces. This system is a programmable logic controller (PLC). The program for the operation of the PLC is written to the calculator, which controls all output modules, reads information from the input modules located on the data exchange bus.

Заявленный способ работы ПЛК, осуществляется посредством, представленной на фиг.1, схеме подключения модулей ввода-вывода информации к шинам обмена данными.The claimed method of operation of the PLC is carried out by means of the diagram for connecting the input-output modules of information to the data exchange buses shown in Fig. 1.

Первая шина - это последовательная UART шина передачи данных, соединённая в петлю. Эта шина имеет один последовательный приемник и один последовательный передатчик. Приемник и передатчик находятся в вычислителе. Все модули по этой шине подключаются тоже последовательно, то есть передатчик вычислителя подключается к приемнику первого модуля, передатчик первого модуля подключается к приемнику второго модуля, и так далее, передатчик последнего модуля подключается к приемнику вычислителя. Таким образом образуется петля. По данной шине осуществляется автоматическое назначение адреса модулям ввода-вывода, а также обмен данными между модулями и вычислителем.The first bus is a serial UART data bus connected in a loop. This bus has one serial receiver and one serial transmitter. The receiver and transmitter are located in the computer. All modules are also connected in series via this bus, that is, the transmitter of the calculator is connected to the receiver of the first module, the transmitter of the first module is connected to the receiver of the second module, and so on, the transmitter of the last module is connected to the receiver of the calculator. Thus, a loop is formed. This bus is used to automatically assign addresses to I / O modules, as well as to exchange data between the modules and the calculator.

В дополнительном варианте реализации возможно подключение модулей ввода-вывода информации без соединения в петлю.In an additional embodiment, it is possible to connect information input-output modules without connecting to a loop.

Вторая шина - это также последовательная шина, но с параллельным подключением модулей к ней, по данной шине осуществляют обмен данными между модулями и вычислителем.The second bus is also a serial bus, but with a parallel connection of modules to it, this bus is used to exchange data between the modules and the calculator.

В случае неисправности CAN-шины, весь функционал неисправной шины ложится на оставшуюся, работоспособную шину назначения адреса UART. Через шину назначения адреса в полудуплексном режиме можно получить данные из модулей ввода-вывода. То есть модуль-вычислитель может инициировать обмен данными по однопроводной, полудуплексной, последовательной шине назначения адреса (это аварийная нештатная ситуация и предназначена для резервирования шины обмена данными).In the event of a CAN bus failure, all the functionality of the faulty bus falls on the remaining, functional UART address assignment bus. Through the address bus in half-duplex mode, you can receive data from the I / O modules. That is, the calculator module can initiate data exchange via a single-wire, half-duplex, serial address assignment bus (this is an emergency emergency and is intended to back up the data exchange bus).

Работа ПЛК осуществляется посредством программных алгоритмов, которые описаны ниже.The operation of the PLC is carried out by means of software algorithms, which are described below.

При первом подключении модулей к шинам передачи данных, каждому модулю автоматически назначается адрес, предусмотрено подключение до 128 модулей. По UART шине, по которой модули подключены последовательно, из вычислителя посылается пакет данных, в котором одно из полей является инкрементным счетчиком. Первый (ближний к вычислителю) модуль получает этот пакет первым, берет значение из счетчика, и устанавливает это значение как адрес на шине назначения адреса, по которой модули подключены параллельно, далее прибавляет к счетчику логическую единицу, и передает пакет следующему модулю. В следующих модулях операция повторяется. When the modules are connected to the data buses for the first time, each module is automatically assigned an address, and up to 128 modules can be connected. A data packet is sent from the calculator via the UART bus, along which the modules are connected in series, in which one of the fields is an incremental counter. The first (closest to the calculator) module receives this packet first, takes the value from the counter, and sets this value as the address on the address assignment bus through which the modules are connected in parallel, then adds a logical unit to the counter and transfers the packet to the next module. The operation is repeated in the following modules.

Таким образом модули автоматически получают уникальные, последовательные адреса на шине (адрес соответствует физической позиции модуля), по которой модули подключены последовательно. От последнего модуля пакет передается вычислителю, для контрольной проверки целостности всего ПЛК.Thus, the modules automatically receive unique, sequential addresses on the bus (the address corresponds to the physical position of the module), along which the modules are connected in series. From the last module, the packet is transmitted to the calculator, for a control check of the integrity of the entire PLC.

После того, как каждому модулю ввода-вывода назначили адрес, начинается обмен рабочими данными.After each I / O module has been assigned an address, the exchange of operating data begins.

Рабочие данные - это информация для контроля и управления объектом АСУ ТП. Информация делится на два типа: входная и выходная. Входная информация - это информация, по которой через модули ввода-вывода в программу ПЛК передаются физические величины, соответствующие измеряемым данным при помощи сенсоров, подключенным к модулям. Выходная информация- это информация, которая передается из вычислителя в модули ввода-вывода, выходами которых управляется объект АСУТП.Work data is information for the control and management of an ICS facility. Information is divided into two types: input and output. Input information is information according to which physical quantities corresponding to the measured data using sensors connected to the modules are transmitted to the PLC program through the I / O modules. Output information is information that is transmitted from the calculator to the input-output modules, the outputs of which are controlled by the APCS object.

Обмен информацией делится на 3 типа: транзакция, прерывание, широковещательный запрос.Information exchange is divided into 3 types: transaction, interrupt, broadcast request.

Транзакция - это запрос от вычислителя к модулю и ответ от него (транзакция происходит по инициативе вычислителя).A transaction is a request from a calculator to a module and a response from it (a transaction is initiated by the calculator).

Прерывание - это передача от модуля к вычислителю (по инициативе модуля).An interrupt is a transfer from a module to a calculator (at the initiative of the module).

Широковещательный запрос - это запрос в котором участвует вычислитель и несколько модулей, начинается с запроса со стороны вычислителя и необязательным (зависит от типа запроса) ответом от нескольких модулей.A broadcast request is a request in which a calculator and several modules participate, begins with a request from the calculator and an optional (depending on the type of request) response from several modules.

Обмен данными, количество и порядок модулей, какой тип передачи выбрать, сколько байт передавать, с какой частотой опрашивать модули и прочее определяется на стадии написания программы для ПЛК.Data exchange, the number and order of modules, what type of transfer to choose, how many bytes to transfer, how often to poll modules, etc. is determined at the stage of writing a program for the PLC.

Например, если изменились входные параметры у модуля, к которому подключены датчики, то модуль сам инициирует передачу данных на шину обмена данными, приёмником данного сообщения не обязательно будет модуль-вычислитель. Это значительно снижает информационную нагрузку на шину обмена данными, так как не происходит ежесекундный опрос данных, которые по сути не изменились.For example, if the input parameters of the module to which the sensors are connected have changed, then the module itself initiates data transfer to the data exchange bus; the receiver of this message will not necessarily be the calculator module. This significantly reduces the information load on the data exchange bus, since there is no every second polling of data that has not essentially changed.

Для обеспечения надежности работы программируемого контроллера отслеживают работоспособность модулей ввода-вывода, а также при неисправности модуля осуществляют «горячую замену» модулей.To ensure the reliability of the programmable controller, the operability of the input-output modules is monitored, and in the event of a module failure, the modules are “hot swapped”.

Отслеживание работоспособности модулей ввода-вывода заключается в проверке времени после последнего принятого пакета по CAN шине, по которой модули подключены параллельно. Если время превышает определённую величину (эта величина задаётся при написании программы для ПЛК), то связь с модулем считается потерянной. При потере связи, вычислитель будет продолжать попытки установить связь с отсутствующим модулем. При успешной попытке (успех определяется наличием ответа от модуля при запросе к нему) модуль вновь настраивается, путем записи в него настроек, и включается, а работу.Tracking the operability of I / O modules consists in checking the time after the last received packet via the CAN bus, through which the modules are connected in parallel. If the time exceeds a certain value (this value is set when writing a program for the PLC), then communication with the module is considered lost. If communication is lost, the calculator will continue trying to establish communication with the missing module. If the attempt is successful (success is determined by the presence of a response from the module when requesting it), the module is configured again by writing the settings to it, and it turns on and works.

В случае выхода из строя модуля или его отключения продолжается штанная работа с оставшимися модулями.In the event of a module failure or its shutdown, regular work continues with the remaining modules.

Под «горячей заменой» модуля понимается отключение или подключение электронного оборудования в системе во время её работы без выключения питания и остановки работы, а также замену (переподключение) блока в целом."Hot swapping" of a module means disconnecting or connecting electronic equipment in the system during its operation without turning off the power and stopping operation, as well as replacing (reconnecting) the unit as a whole.

Если происходит “горячая” замена модуля, то модуль, появившийся на CAN шине сам передаёт в CAN шину информацию о том, что он появился. Далее модуль-вычислитель получает информацию о том, что на CAN шине в определённой позиции появился новый безадресный модуль или модуль с не верным адресом. Информация появится в web-интерфейсе модуля-вычислителя. Пользователь сможет взять компьютер, подключиться к прибору, открыть любой браузер, зайти на web-интерфейс прибора и увидеть таблицу модулей контроллера. Номер по порядку в web-интерфейсе будет соответствовать номеру позиции на шине. Далее пользователь сможет увидеть новый модуль в позиции, которой был установлен модуль. Данный модуль либо не имеет адреса, либо имеет не верный адрес. Пользователь сможет с помощью web-интерфейса установить необходимый адрес модуля или нажать кнопку “Поиск” и произойдёт автоматическая адресация модулей на шине. Таким образом автоматически присвоится адрес на вновь установленный модуль.If there is a “hot” replacement of a module, the module that appears on the CAN bus itself transmits to the CAN bus information that it has appeared. Further, the calculator module receives information that a new unaddressed module or a module with an incorrect address has appeared on the CAN bus in a certain position. The information will appear in the web-interface of the calculator module. The user can take a computer, connect to the device, open any browser, go to the device web interface and see the table of controller modules. The order number in the web interface will correspond to the position number on the bus. Then the user will be able to see the new module in the position where the module was installed. This module either does not have an address, or has a wrong address. The user can use the web interface to set the required module address or press the "Search" button and the automatic addressing of the modules on the bus will take place. This will automatically assign an address to the newly installed module.

Таким образом при замене модуля можно принудительно назначить установленному модулю адрес. Прикладная программа в вычислителе совершенно спокойно отработает отсутствие модуля (будет работать с оставшимися модулями) и также спокойно начнёт работать с появившимся модулем на шине обмена. Какие-либо перезапуски программы вычислителя или перепрограммирования не потребуется. Всё произойдёт без остановки технологической программы.This way, when replacing a module, you can force an address for the installed module. The application program in the calculator will work out the absence of the module quite calmly (it will work with the remaining modules) and will also calmly start working with the module that has appeared on the exchange bus. No restarting of the calculator program or reprogramming is required. Everything will happen without stopping the technological program.

В настоящих материалах заявки было представлено предпочтительное раскрытие осуществление заявленного технического решения, которое не должно использоваться как ограничивающее иные, частные воплощения его реализации, которые не выходят за рамки испрашиваемого объема правовой охраны и являются очевидными для специалистов в соответствующей области техники.In the present application materials, the preferred disclosure of the implementation of the claimed technical solution was presented, which should not be used as limiting other, particular embodiments of its implementation, which do not go beyond the scope of the claimed scope of legal protection and are obvious to specialists in the relevant field of technology.

Claims (12)

1. Способ работы программируемого логического контроллера, содержащий этапы, на которых:1. A method of operation of a programmable logic controller, comprising the stages at which: по меньшей мере два модуля подключают к шине назначения адреса с последовательным подключением и к шине обмена данными с параллельным подключением;at least two modules are connected to an address assignment bus with a serial connection and a data exchange bus with a parallel connection; осуществляют обмен данными по шине назначения адреса, в случае выхода из строя шины обмена данными;exchange data via the address assignment bus in case of failure of the data exchange bus; автоматически присваивают адрес по меньшей мере одному модулю по шине назначения адреса, причем пакет данных формирует модуль-вычислитель и передает этот пакет на по меньшей мере один модуль, первый модуль принимает пакет данных и записывает значение счетчика как адрес на шине, прибавляет к значению счетчика значение единицы и передает пакет по меньшей мере следующему модулю, в котором операция повторяется;automatically assign an address to at least one module via the address assignment bus, and the data packet forms a calculator module and transmits this packet to at least one module, the first module receives the data packet and writes the counter value as an address on the bus, adds the value to the counter value units and transmits the packet to at least the next module, in which the operation is repeated; обмен рабочими данными осуществляют по запросу модуля-вычислителя либо по запросу по меньшей мере одного модуля, либо осуществляют широковещательный запрос;the exchange of working data is carried out at the request of the calculator module, or at the request of at least one module, or a broadcast request is carried out; осуществляют отслеживание работоспособности по меньшей мере одного модуля, проверяя время принятия пакета по шине обмена данными подключенной последовательно, при этом если время превышает заданную величину, то связь с модулем считается потерянной;monitoring the operability of at least one module, checking the time of receiving the packet on the data exchange bus connected in series, while if the time exceeds a predetermined value, then the communication with the module is considered lost; осуществляют замену по меньшей мере одного модуля в случае неработоспособности, при этом настройка нового модуля осуществляется в автоматическом режиме.at least one module is replaced in case of inoperability, while the adjustment of the new module is carried out in automatic mode. 2. Способ по п. 1, отличающийся тем, что на шине обмена данными используют CAN-интерфейс.2. The method according to claim 1, characterized in that a CAN interface is used on the data exchange bus. 3. Способ по п. 1, отличающийся тем, что на шине назначения адреса используется UART-интерфейс.3. The method according to claim 1, characterized in that a UART interface is used on the address assignment bus. 4. Способ по п. 1, отличающийся тем, что при последовательном подключении к шине обмена данными по меньшей мере два модуля объединяются в петлю.4. The method according to claim. 1, characterized in that when serially connected to the data exchange bus, at least two modules are combined into a loop. 5. Способ по п. 1, отличающийся тем, что предусмотрена возможность подключения до 128 модулей.5. The method according to claim 1, characterized in that it is possible to connect up to 128 modules. 6. Способ по п. 1, отличающийся тем, что пользователь может взаимодействовать с контроллером через web-интерфейс.6. The method according to claim 1, characterized in that the user can interact with the controller via a web interface.
RU2020121116A 2020-06-25 2020-06-25 Method of programmable logic controller operation RU2743247C1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
RU2020121116A RU2743247C1 (en) 2020-06-25 2020-06-25 Method of programmable logic controller operation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
RU2020121116A RU2743247C1 (en) 2020-06-25 2020-06-25 Method of programmable logic controller operation

Publications (1)

Publication Number Publication Date
RU2743247C1 true RU2743247C1 (en) 2021-02-16

Family

ID=74666151

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2020121116A RU2743247C1 (en) 2020-06-25 2020-06-25 Method of programmable logic controller operation

Country Status (1)

Country Link
RU (1) RU2743247C1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0283601A (en) * 1987-10-07 1990-03-23 Allen Bradley Co Inc Programmable-controller
US5179670A (en) * 1989-12-01 1993-01-12 Mips Computer Systems, Inc. Slot determination mechanism using pulse counting
SU1833870A1 (en) * 1991-01-11 1993-08-15 Kh N Proizv Ob Edinenie Sistem Programmable controller
RU2431174C1 (en) * 2010-08-20 2011-10-10 Федеральное государственное унитарное предприятие "Всероссийский научно-исследовательский институт автоматики им. Н.Л. Духова" (ФГУП "ВНИИА") Backup software-hardware system for automatic monitoring and control
US20140025185A1 (en) * 2012-07-23 2014-01-23 Fanuc Corporation Numerical controller for communication with i/o units

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0283601A (en) * 1987-10-07 1990-03-23 Allen Bradley Co Inc Programmable-controller
US5179670A (en) * 1989-12-01 1993-01-12 Mips Computer Systems, Inc. Slot determination mechanism using pulse counting
SU1833870A1 (en) * 1991-01-11 1993-08-15 Kh N Proizv Ob Edinenie Sistem Programmable controller
RU2431174C1 (en) * 2010-08-20 2011-10-10 Федеральное государственное унитарное предприятие "Всероссийский научно-исследовательский институт автоматики им. Н.Л. Духова" (ФГУП "ВНИИА") Backup software-hardware system for automatic monitoring and control
US20140025185A1 (en) * 2012-07-23 2014-01-23 Fanuc Corporation Numerical controller for communication with i/o units

Similar Documents

Publication Publication Date Title
US5428526A (en) Programmable controller with time periodic communication
JP3168552B2 (en) Memory access control system and method
CN100524119C (en) Interface of programmable logic controller and expansion module
US8255095B2 (en) Modular avionics system of an aircraft
JPS61114322A (en) Power control network
CN100383544C (en) Method and apparatus for real-time monitoring level signal
EP3306422B1 (en) Arithmetic device and control apparatus
CN101609421A (en) The multi-control system of arithmetic processing apparatus and multiple control method
CN105653306A (en) Method and device for displaying start Setup interface
RU2743247C1 (en) Method of programmable logic controller operation
US5115511A (en) Arrangement for loading the parameters into active modules in a computer system
CN117312067A (en) Network card debugging system, method, equipment and storage medium
EP1623321B1 (en) Real time-capable control system having an sps application under a non-real time-capable operating system
CN109873741B (en) System and working method of single-wire shared bus protocol
RU2705421C1 (en) Method of transmitting data over a bus, a communication system for realizing said method and an automatic protection device for preventing an emergency situation at a control object
EP0375981B1 (en) Method and apparatus for applying electric power to electronic components
CN111078611A (en) PLC high-speed backplate bus based on FPGA
RU12478U1 (en) MULTIFUNCTIONAL ON-BOARD COMPUTER COMPLEX
KR102244297B1 (en) Plc analog module with hart pass-through interface
JP6144151B2 (en) Communication control method
EP0306855A2 (en) Arrangement for loading the parameters into active modules in a computer system
RU190384U1 (en) MODULAR ENGINEERING PLATFORM
CN111752210B (en) Automatic address negotiation system and method for PLC (programmable logic controller) expansion module
JP7430694B2 (en) Control system, control method, and program
CN110647127B (en) Module combined power process control device and initialization configuration method thereof