This documentation is out of date.

The new version of the documentation is here: https://cannylogic.com/docs

Difference between revisions of "CANNY 7, PLC"

From CANNY Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Что такое контроллер?)
(Programming without a programmer)
 
(9 intermediate revisions by 3 users not shown)
Line 23: Line 23:
 
Programmable logic controllers are widely used in embedded systems, monitoring and control systems, have a relatively easy-to-understand architecture. Structurally, it is usually quite compact unit consisting of one or more interconnected electronic modules, containing the connectors for supplying power to the controller and the external input and output power lines to allow the controller to communicate with the outside world.
 
Programmable logic controllers are widely used in embedded systems, monitoring and control systems, have a relatively easy-to-understand architecture. Structurally, it is usually quite compact unit consisting of one or more interconnected electronic modules, containing the connectors for supplying power to the controller and the external input and output power lines to allow the controller to communicate with the outside world.
  
=== Программное обеспечение ПЛК ===
+
=== PLC Software ===
  
Современный ПЛК имеет развитый комплекс программных средств, состоящих из операционной системы ПЛК, предоставляемой производителем контроллера и сторонних или собственных программных средств, предназначенных для разработки, отладки и записи в контроллер пользовательских программ.
+
Modern PLC has developed software complex  consisting of PLC operating  system, provided by the controller manufacturer and third-party or proprietary software, designed for the development, debugging and loading user programs to the controller.
  
Операционная система, отвечающая за выполнение контроллером пользовательского приложения, обслуживает низкоуровневую систему ввода-вывода контроллера, интерфейсы передачи данных, управляет распределением памяти, режимами энергопотребления, таймерами, осуществляет обработку ошибок, позволяя пользователю, разрабатывающему приложение, полностью сосредоточится на алгоритмической части решения прикладной задачи.
+
The operating system, responsible for user application execution, serves controller's low-level IO system , data interfaces, controls memory allocation, power modes, timers, performs error handling, allowing the user develop applications to fully concentrate on the algorithmic solutions of the application.
  
Средства разработки и отладки пользовательских программ, позволяют создавать и корректировать программы, реализующие алгоритмы работы контроллера, моделировать на ПК процесс  выполнения программы контроллером, наблюдать за промежуточными результатами вычислений, а так же записывать программное обеспечение в контроллер.
+
Custom software development and debugging tools create and adjust the programs that implement the controller algorithms, simulate on a PC program execution process, observe the intermediate calculations results , as well as load the software in the controller.
  
 +
=== How does PLC work ===
  
=== Как работает ПЛК ===
+
Before using the PLC, it is necessary to load the operating system and application software, designed for specific applications. ll PLC software is usually located in the non-volatile memory and is protected from damage in the event of a power reset. Change application code in the PLC memory can be carried out repeatedly by the user.
  
Перед применением ПЛК, в него необходимо загрузить операционную систему и пользовательскую программу, разработанную для решения конкретной прикладной задачи. Все программное обеспечение ПЛК обычно располагается в энергонезависимой памяти и защищено от повреждения в случае сброса питания. Изменение кода прикладной программы в памяти ПЛК может быть выполнено пользователем многократно.
+
Typical PLC work outline can be described as followed:
  
Типовая схема работы ПЛК может быть описана следующим образом.
+
The external controllers' input channel connects sensors to output channels  - actuators. When the controller is powered, its operating system immediately begins to cyclically perform users application.
  
К внешним каналам ввода контроллера подключаются датчики, к каналам вывода - исполнительные механизмы.  На контроллер подается питание и его операционная система немедленно начинает циклически исполнять пользовательское приложение.
+
Application execution cycle consists of the following successive stages:
  
Цикл выполнения  приложения состоит из следующих, последовательных этапов:
+
* the operating system reads the status of each input channel and writes it into controller internal memory;
 +
* operating system consistently, command by command, performs whole user application- each executable application command reads from the internal memory of the data it needs, calculates them and records the results of its calculations to the internal memory of the controller;
 +
* the operating system receives the values from the internal memory that needs to be displayed on the controller output, and converts the output channels in the appropriate mode, and then, the entire execution cycle is repeated from the beginning.
  
* операционная система считывает состояние каждого входного канала контроллера и записывает его во внутреннюю память контроллера;
+
This approach presents the architecture of the user program runtime, given an opportunity to realize a logical parallel execution of multiple tasks within a single user program, allowing automatic management of multiple simultaneously occurring processes using a single PLC.
* операционная система, последовательно, команда за командой, выполняет всё пользовательское приложение: каждая исполняемая команда приложения считывает из внутренней памяти необходимые ей данные, производит с ними вычисления и записывает результаты своих расчетов во внутреннюю память контроллера;
+
* операционная система получает из внутренней памяти те значения, которые необходимо отобразить на выходе контроллера, и переводит выходные каналы в соответствующее состояние, после чего, весь цикл выполнения повторяется с начала.
+
  
Рассмотренный подход к архитектуре среды исполнения пользовательской программы, дает возможность реализовать логически параллельное исполнение контроллером нескольких задач в рамках одной пользовательской программы, позволяя автоматизировать управление несколькими одновременно происходящими процессами используя единственный ПЛК.
+
=== Programming without a programmer  ===
  
 +
One of the basic ideas underlying the use of the PLC is to simplify programming system and enhance the clarity of linguistic resources to a level obtainable for understanding by a technician, who knows well about the operation of the equipment, but does not have special knowledge in the field of software development.
  
=== Программирование без программиста ===
+
This is a simple and intuitive tool to express their knowledge of process control algorithms that are in its custody, in many cases, will be able to independently implement and debug the PLC program and reconfigure the parameters of the equipment, and timely change management of the program if necessary.
  
Одной из базовых идей, лежащих в основе использования ПЛК, является упрощение системы программирования и повышение наглядности языковых средств до уровня, доступного для понимания техническому специалисту хорошо знающему и непосредственно эксплуатирующему оборудование, но не обладающему специальными знаниями в области разработки программного обеспечения.
+
Often the quality of PLC programs created by such a specialist is higher than a program developed in his request by professional programmer who is not familiar with all the characteristic of automated process.
 
+
Такой специалист, получив простой и понятный инструмент выражения своих знаний об алгоритмах управления процессами, находящимися в его ведении, во многих случаях будет способен самостоятельно реализовать и отладить программу ПЛК, а при необходимости перенастроить параметры работы оборудования и своевременно изменить программу управления.
+
 
+
Зачастую качество программы ПЛК созданной таким специалистом оказывается выше, чем программы, написанной по его заданию профессиональным программистом не знакомым со всеми особенностями работы автоматизируемого процесса.
+

Latest revision as of 19:09, 5 June 2017

Basic definitions and abbreviations used

PC   personal computer.
PLC   programmable logic controller
CFD   Canny Functional Diagram, graphical programming language used in an integrated environment CannyLab development.

What is the controller?

The controller - a control device, used in industry, on transport, other industries and households, for the automatic control equipment for a given algorithm. The controllers are widely used to control technological process, maintenance of the physical parameters of the control object at a given level, and similar tasks on the content.

One of the most promising types of controllers, to date, is an electronic programmable logic controller (PLC), algorithms of which describes software, are stored in the controller's internal memory and executed by a microprocessor built in PLC. Interaction of electronic controller with the controlling objects occurs through incoming and outgoing electrical signals.

Programmable logic controllers are widely used in embedded systems, monitoring and control systems, have a relatively easy-to-understand architecture. Structurally, it is usually quite compact unit consisting of one or more interconnected electronic modules, containing the connectors for supplying power to the controller and the external input and output power lines to allow the controller to communicate with the outside world.

PLC Software

Modern PLC has developed software complex consisting of PLC operating system, provided by the controller manufacturer and third-party or proprietary software, designed for the development, debugging and loading user programs to the controller.

The operating system, responsible for user application execution, serves controller's low-level IO system , data interfaces, controls memory allocation, power modes, timers, performs error handling, allowing the user develop applications to fully concentrate on the algorithmic solutions of the application.

Custom software development and debugging tools create and adjust the programs that implement the controller algorithms, simulate on a PC program execution process, observe the intermediate calculations results , as well as load the software in the controller.

How does PLC work

Before using the PLC, it is necessary to load the operating system and application software, designed for specific applications. ll PLC software is usually located in the non-volatile memory and is protected from damage in the event of a power reset. Change application code in the PLC memory can be carried out repeatedly by the user.

Typical PLC work outline can be described as followed:

The external controllers' input channel connects sensors to output channels - actuators. When the controller is powered, its operating system immediately begins to cyclically perform users application.

Application execution cycle consists of the following successive stages:

  • the operating system reads the status of each input channel and writes it into controller internal memory;
  • operating system consistently, command by command, performs whole user application- each executable application command reads from the internal memory of the data it needs, calculates them and records the results of its calculations to the internal memory of the controller;
  • the operating system receives the values from the internal memory that needs to be displayed on the controller output, and converts the output channels in the appropriate mode, and then, the entire execution cycle is repeated from the beginning.

This approach presents the architecture of the user program runtime, given an opportunity to realize a logical parallel execution of multiple tasks within a single user program, allowing automatic management of multiple simultaneously occurring processes using a single PLC.

Programming without a programmer

One of the basic ideas underlying the use of the PLC is to simplify programming system and enhance the clarity of linguistic resources to a level obtainable for understanding by a technician, who knows well about the operation of the equipment, but does not have special knowledge in the field of software development.

This is a simple and intuitive tool to express their knowledge of process control algorithms that are in its custody, in many cases, will be able to independently implement and debug the PLC program and reconfigure the parameters of the equipment, and timely change management of the program if necessary.

Often the quality of PLC programs created by such a specialist is higher than a program developed in his request by professional programmer who is not familiar with all the characteristic of automated process.