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]
(Created page with "=== Основные определения и используемые сокращения === {| |- |ПО |  |программное обеспечение. |- |ПК |...")
 
(Programming without a programmer)
 
(14 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=== Основные определения и используемые сокращения ===
+
=== Basic definitions and abbreviations used ===
 
{|
 
{|
 
|-
 
|-
|ПО
+
|PC
 
| 
 
| 
|программное обеспечение.
+
|personal computer.
 
|-
 
|-
|ПК
+
|PLC
 
| 
 
| 
|персональный компьютер.
+
|programmable logic controller
|-
+
|ПЛК
+
| 
+
|программируемый логический контроллер
+
 
|-
 
|-
 
|CFD
 
|CFD
 
| 
 
| 
|Canny Functional Diagram, графический язык программирования использующийся в интегрированной среде разработки CannyLab.
+
|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.

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.