This documentation is out of date.

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

Difference between revisions of "CANNY Lab"

From CANNY Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Назначение интегрированной среды разработки CannyLab)
m (better wording)
 
(44 intermediate revisions by 6 users not shown)
Line 1: Line 1:
'''CANNY Lab''' — integrated software development environment for PLCs [[CANNY 7]].
+
'''CannyLab''' — integrated software development environment for PLCs [[CANNY 7]].
  
== Purpose of integrated development environment Canny Lab ==
+
== Purpose of integrated development environment CannyLab ==
  
IDE Canny Lab is a tool for application development using functional block diagrams language - CFD. It is used to write, debug, and uploading program to the internal memory of programmable logic controllers [[CANNY 7]].
+
IDE CannyLab is a tool for application development using function block diagram language - CFD. It is used to write, debug, and upload programs to the internal memory of programmable logic controllers [[CANNY 7]].
  
== Минимальные системные требования для работы СannyLab ==
+
== Minimum system requirements for СannyLab operation ==
  
 
{|
 
{|
 
|-
 
|-
|width="400px" valign="top"|Тип центрального процессора,тактовая частота процессора:
+
|width="400px" valign="top"|CPU type, CPU clock speed:
|width="400px" valign="top"|Intel ® Pentium ® 233MHz или выше.
+
|width="400px" valign="top"|Intel ® Pentium ® 233MHz or higher.
 
|-
 
|-
|valign="top"|Операционная система:
+
|valign="top"|OS:
|valign="top"|Windows ® 2000, Windows XP ™, или выше.
+
|valign="top"|Windows ® 2000, Windows XP ™, or higher.
 
|-
 
|-
|valign="top"|Объем оперативной памяти:
+
|valign="top"|RAM size:
|valign="top"|128 Мбайт (256 МБ рекомендуется).
+
|valign="top"|128 MB (256 MB recommended).
 
|-
 
|-
|valign="top"|Видеоадаптер и монитор:
+
|valign="top"|Video adapter and monitor:
|valign="top"|SVGA или монитор с более высоким разрешением (1024x768 рекомендуется).
+
|valign="top"|SVGA or higher resolution monitor (1024x768 recommended).
 
|-
 
|-
|valign="top"|Свободное место на жестком диске:
+
|valign="top"|Free disk space:
|valign="top"|110 Мбайт (150 МБ рекомендуется).
+
|valign="top"|110 MB (150 МB recommended).
 
|-
 
|-
|valign="top"|Устройства ввода:
+
|valign="top"|Input Devices:
|valign="top"|клавиатура, мышь.
+
|valign="top"|Keyboard, mouse.
 
|-
 
|-
|valign="top"|Интерфейс USB:
+
|valign="top"|USB:
|valign="top"|версии 1.1 или выше.
+
|valign="top"|1.1 or higher.
 
|}
 
|}
  
== Установка и запуск программы ==
+
== Installing and program launch ==
  
Интегрированная среда разработки CannyLab распространяется в варианте "portable", не требующем установки и может запускаться со съемных носителей. Загрузите архив программы, расположенный с интернет-сайта http://www.cannylogic.com/c7 и разархивируйте его в папку на своем ПК или на внешнем носителе. Запустите файл '''cannylab.exe''' из папки программы. Запуск нескольких экземпляров программы не рекомендуется.
+
Integrated Development Environment CannyLab is distributed as a "portable" version. It does not require installation and can be run from removable media. Download the program archive from the website http://www.cannylogic.com/c7 and unzip it to a folder on your PC or an external drive. Run the file '''cannylab.exe''' from the program folder. It is not recommended to run multiple program instances.
  
== Интерфейс пользователя ==
+
== The user interface ==
  
:''Основная статья'': '''[[CANNY Lab Main window]]'''
+
:''Main artcle'': '''[[CANNY Lab Main window]]'''
  
Интерфейс пользователя CannyLab состоит из единственного окна - главного окна программы.
+
CannyLab user interface consists of a single window - the main application window.
  
Главное окно программы делится на несколько областей:
+
The main window is divided into several areas:
* заголовок окна;
+
* window title;
* панель главного меню;
+
* main menu;
* панели инструментов редактора;
+
* toolbar;
* панель функциональных блоков;
+
* function block panel;
* рабочая область;
+
* workspace;
* строка состояния.
+
* status bar.
  
В зависимости от текущего режима работы редактора те или иные элементы меню и панелей CannyLab могут быть недоступны или скрыты.
+
Depending on the current operating mode of the editor, some of CannyLab menu items and panels  may not be available or hidden.
  
 
[[File:4_4_1.png]]
 
[[File:4_4_1.png]]
  
 +
== Working with Files ==
  
== Работа с файлами ==
+
Integrated Development Environment CannyLab supports three types of files:
  
Интегрированная среда разработки CannyLab поддерживает работу с тремя типами файлов:
+
* «cfd» function diagram files;
 +
* «ccx» system software files;
 +
* «exe» standalone executable files for autonomous software upload to the controller without using CannyLab.
  
* «cfd» файлы функциональных диаграмм;
+
Function diagram files and standalone executable files for software upload to the controller, can be created in the CannyLab environment. System software files are supplied by the controller manufacturer and can be uploaded directly to the controller from the CannyLab application or used during creation of a standalone executable file.
* «ccx» файлы системного программного обеспечения, с расширением «ccx»;
+
* «exe» исполняемые файлы автономной загрузки программного обеспечения в контроллер без использования CannyLab.
+
  
Файлы функциональных диаграмм  и исполняемые файлы для автономной загрузки программного обеспечения в контроллер, могут быть созданы в среде CannyLab. Файлы системного программного обеспечения контроллера поставляются производителем контроллера и могут быть загружены в контроллер из среды CannyLab или использованы при создании исполняемого файла автономной загрузки программного обеспечения в контроллер.
+
=== Creating a new function diagram file ===
  
=== Создание нового файла функциональной диаграммы ===
+
Create a new function diagram file by selecting "File" → "New" in the main menu, with the hotkey «Ctrl+N», or by clicking [[File:4_5_1_1.png]] on the toolbar.
  
Создание нового файла функциональной диаграммы производится выбором пункта «Файл» →  «Создать» главного меню программы, с помощью комбинации клавиш «Ctrl+N», или при помощи кнопки [[Изображение:4_5_1_1.png]] панели инструментов.
+
The symbol "*" appears at the end of the file name in the header of the main window if any changes were made to the currently open file. If there were any changes made to the file, the user will be prompted to save it upon exiting the editor or creating a new function diagram.
  
При внесении в открытый файл изменений, в конце имени файла в заголовке главного окна программы отображается символ «*». При наличии изменений в открытом файле, во время выхода из редактора или создания нового файла функциональной диаграммы пользователю будет предложено сохранить текущий файл.
+
=== Saving the function diagram file ===
  
=== Сохранение файла функциональной диаграммы ===
+
Save the function diagram file under a new name by selecting "File" → "Save as..." in the main menu, in this case the name of the saved file and the path to it is set in the pop-up dialog box.
  
Сохранение файла функциональной диаграммы с новым именем возможно при выборе пункта «Файл» «Сохранить как...» главного меню программы, при этом имя сохраняемого файла и путь к нему задается во всплывающем диалоговом окне.
+
Save the file under the same name by selecting "File" "Save" in the main menu, using the hotkey «Ctrl+S» or by clicking [[File:4_5_2_1.png]] on the toolbar.
  
Сохранение файла под прежним именем происходит при выборе пункта «Файл» →  «Сохранить» главного меню программы, либо при нажатии комбинации клавиш «Ctrl+S» или кнопки [[Изображение:4_5_2_1.png]] панели инструментов.
+
If the diagram being saved would overwrite a file created in an earlier CannyLab version, the user is presented with a warning stating that the file won’t be able to be opened in older versions of CannyLab.
  
Если сохраняемая диаграмма перезапишет файл, созданный в более ранней версии CannyLab, последует предупреждение о том, что этот файл будет невозможно открыть в CannyLab предыдущих версий.
+
=== Opening of the function diagram file ===
  
=== Открытие файла функциональной диаграммы ===
+
Open an existing function diagram file, by selecting "File" → "Open..." in the main menu, using the hotkey «Ctrl+O» or by clicking [[File:4_5_3_1.png]] on the toolbar.
  
Открытие сохраненного ранее файла диаграммы, возможно при выборе пункта «Файл» → «Открыть...» главного меню программы, нажатием комбинации клавиш «Ctrl+O» или кнопки [[Изображение:4_5_3_1.png]] панели инструментов, при этом выбор файла для открытия осуществляется пользователем в диалоговом окне.
+
Alternatively, the diagram file can be opened by dragging it into the CannyLab open window.
  
Кроме того, открыть файл диаграммы можно просто перетащив его в открытое окно CannyLab.
+
The user is presented with a warning when they open a file created in an earlier version of CannyLab. An additional warning will appear if the current version of CannyLab can not correctly display all the information contained in the legacy file format.
  
При открытии файла, созданного в более ранней версии CannyLab, будет выведено соответствующее предупреждение. Если при этом текущая версия CannyLab не сможет корректно отобразить всю информацию содержащуюся в файле устаревшего формата, последует предупреждение и об этом.
+
== Function Diagram Editor ==
  
== Редактор функциональных диаграмм ==
+
:''Main article'': '''[[CANNY Lab Functional Diagram Editor]]'''
  
:''Основная статья'': '''[[CANNY Lab Functional Diagram Editor]]'''
+
The function diagram editor is the main method of working within CannyLab. In function diagram editor mode, the user can:
  
Основным режимом работы CannyLab является режим редактора функциональных диаграмм. В этом режиме, пользователь имеет возможность:
+
* add function blocks to the diagram;
 +
* move function blocks within the diagram;
 +
* select and delete diagram elements;
 +
* add connections between the function blocks to the diagram. These are called networks;
 +
* add and edit the names of networks on the diagram;
 +
* merge, split and change the configuration of networks;
 +
* change the numbering of function blocks;
 +
* assign input data sources and output data recipients of function blocks by using constants and controller resource registers.
  
* добавлять на диаграмму функциональные блоки;
+
== CannyLab Simulator ==
* перемещать функциональные блоки в пределах диаграммы;
+
* выделять и удалять элементы диаграммы;
+
* добавлять на диаграмму связи между функциональными блоками — сети;
+
* добавлять на диаграмму и изменять имена сетей;
+
* объединять, разделять и изменять конфигурацию сетей;
+
* изменять нумерацию функциональных блоков;
+
* назначать источники данных входов и получателей данных выходов функциональных блоков, используя константы и адреса ресурсов контроллера.
+
  
== Симулятор CANNY Lab ==
+
:''Main Article'': '''[[CANNY Lab Simulator]]'''
  
:''Основная статья'': '''[[CANNY Lab Simulator]]'''
+
Working in simulator mode, CannyLab performs actions to diagram data that are equivalent to the compute actions that would be carried out on them by the controller kernel, which allows the user to simulate the operation of the controller on the PC.
  
Работая в режиме симулятора, CannyLab выполняет с данными диаграммы действия, эквивалентные тем, которые будут выполнены с ними вычислительным ядром контроллера при запуске диаграммы на нем, что позволяет моделировать работу контроллера на ПК.
+
The user has the ability to simulate the execution of the function diagram for debugging and testing at any stage of its development. In simulator mode, it is possible to run the diagram on a per-cycle and per-step basis, set the conditions for suspension of execution, forcibly set the input and output values of the function blocks, control intermediate values.
 
+
Пользователь имеет возможность запустить симуляцию выполнения функциональной диаграммы для отладки и тестирования на любом этапе ее создания. В режиме симулятора возможно циклическое и пошаговое выполнение диаграммы, задание условий приостановки выполнения, принудительная установка значений входов и выходов функциональных блоков, контроль промежуточных значений.
+
  
 
{|
 
{|
|valign="top" style="padding-left:0.5em;"|''Примечание:''
+
|valign="top" style="padding-left:0.5em;"|''Note:''
|valign="top" style="padding-left:0.5em;"|''В текущей версии симулятора CannyLab отсутствует поддержка аппаратных ресурсов контроллера, поэтому результаты чтения из адреса и записи по адресу в симуляторе могут отличаться от результатов полученных при выполнении диаграммы контроллером.''
+
|valign="top" style="padding-left:0.5em;"|''Current CannyLab simulator version is not supporting controller hardware resources, so the reading results of addresses and write to the address in the simulator may differ from the results obtained during diagram execution by the controller.''
 
|}
 
|}
  
== Работа с контроллером ==
+
== Interaction with the controller ==
 
+
:''Основная статья'': '''[[Interaction with equipment]]'''
+
  
Интегрированная среда разработки CannyLab предоставляет пользователям возможность загрузки в контроллер системного программного обеспечения, необходимого для выполнения функциональной диаграммы, а так же самой функциональной диаграммы.
+
:''Main article'': '''[[Interaction with equipment]]'''
  
 +
IDE CannyLab gives users the ability to upload system software to the controller. System software is required for execution of the function diagram, as well as the function diagram itself.
  
== Исполняемые файлы автономной загрузки ПО в контроллер ==
+
== Executable files for autonomously uploading software into the controller ==
  
:''Основная статья'': '''[[Firmware Update Utility]]'''
+
:''Main article'': '''[[Firmware Update Utility]]'''
  
Интегрированная среда разработки CannyLab предоставляет пользователям возможность создания настраиваемого автономного исполняемого EXE-файла содержащего системное программное обеспечение контроллера и функциональную диаграмму.
+
IDE CannyLab allows users to create a custom standalone executable EXE-file containing controller system software and a function diagram.
  
Назначением такого файла является быстрое задание параметров работы контроллера в понятном конечному потребителю виде и простая загрузка программного обеспечения в контроллер используя компьютер, на котором не установлена среда CannyLab. В дальнейшем, такой файл будем называть: утилита автоматической загрузки ПО в контроллер или SFX-файл.
+
The purpose of this file is quick and easy controller configuration in a fashion that’s comprehensible to the end user, as well as uploading software to the controller without relying on CannyLab IDE. From now on, we will refer to such files as firmware update utilities or SFX-files (SFX standing for self-flashing).

Latest revision as of 12:06, 11 December 2020

CannyLab — integrated software development environment for PLCs CANNY 7.

Purpose of integrated development environment CannyLab

IDE CannyLab is a tool for application development using function block diagram language - CFD. It is used to write, debug, and upload programs to the internal memory of programmable logic controllers CANNY 7.

Minimum system requirements for СannyLab operation

CPU type, CPU clock speed: Intel ® Pentium ® 233MHz or higher.
OS: Windows ® 2000, Windows XP ™, or higher.
RAM size: 128 MB (256 MB recommended).
Video adapter and monitor: SVGA or higher resolution monitor (1024x768 recommended).
Free disk space: 110 MB (150 МB recommended).
Input Devices: Keyboard, mouse.
USB: 1.1 or higher.

Installing and program launch

Integrated Development Environment CannyLab is distributed as a "portable" version. It does not require installation and can be run from removable media. Download the program archive from the website http://www.cannylogic.com/c7 and unzip it to a folder on your PC or an external drive. Run the file cannylab.exe from the program folder. It is not recommended to run multiple program instances.

The user interface

Main artcle: CANNY Lab Main window

CannyLab user interface consists of a single window - the main application window.

The main window is divided into several areas:

  • window title;
  • main menu;
  • toolbar;
  • function block panel;
  • workspace;
  • status bar.

Depending on the current operating mode of the editor, some of CannyLab menu items and panels may not be available or hidden.

4 4 1.png

Working with Files

Integrated Development Environment CannyLab supports three types of files:

  • «cfd» function diagram files;
  • «ccx» system software files;
  • «exe» standalone executable files for autonomous software upload to the controller without using CannyLab.

Function diagram files and standalone executable files for software upload to the controller, can be created in the CannyLab environment. System software files are supplied by the controller manufacturer and can be uploaded directly to the controller from the CannyLab application or used during creation of a standalone executable file.

Creating a new function diagram file

Create a new function diagram file by selecting "File" → "New" in the main menu, with the hotkey «Ctrl+N», or by clicking 4 5 1 1.png on the toolbar.

The symbol "*" appears at the end of the file name in the header of the main window if any changes were made to the currently open file. If there were any changes made to the file, the user will be prompted to save it upon exiting the editor or creating a new function diagram.

Saving the function diagram file

Save the function diagram file under a new name by selecting "File" → "Save as..." in the main menu, in this case the name of the saved file and the path to it is set in the pop-up dialog box.

Save the file under the same name by selecting "File" → "Save" in the main menu, using the hotkey «Ctrl+S» or by clicking 4 5 2 1.png on the toolbar.

If the diagram being saved would overwrite a file created in an earlier CannyLab version, the user is presented with a warning stating that the file won’t be able to be opened in older versions of CannyLab.

Opening of the function diagram file

Open an existing function diagram file, by selecting "File" → "Open..." in the main menu, using the hotkey «Ctrl+O» or by clicking 4 5 3 1.png on the toolbar.

Alternatively, the diagram file can be opened by dragging it into the CannyLab open window.

The user is presented with a warning when they open a file created in an earlier version of CannyLab. An additional warning will appear if the current version of CannyLab can not correctly display all the information contained in the legacy file format.

Function Diagram Editor

Main article: CANNY Lab Functional Diagram Editor

The function diagram editor is the main method of working within CannyLab. In function diagram editor mode, the user can:

  • add function blocks to the diagram;
  • move function blocks within the diagram;
  • select and delete diagram elements;
  • add connections between the function blocks to the diagram. These are called networks;
  • add and edit the names of networks on the diagram;
  • merge, split and change the configuration of networks;
  • change the numbering of function blocks;
  • assign input data sources and output data recipients of function blocks by using constants and controller resource registers.

CannyLab Simulator

Main Article: CANNY Lab Simulator

Working in simulator mode, CannyLab performs actions to diagram data that are equivalent to the compute actions that would be carried out on them by the controller kernel, which allows the user to simulate the operation of the controller on the PC.

The user has the ability to simulate the execution of the function diagram for debugging and testing at any stage of its development. In simulator mode, it is possible to run the diagram on a per-cycle and per-step basis, set the conditions for suspension of execution, forcibly set the input and output values of the function blocks, control intermediate values.

Note: Current CannyLab simulator version is not supporting controller hardware resources, so the reading results of addresses and write to the address in the simulator may differ from the results obtained during diagram execution by the controller.

Interaction with the controller

Main article: Interaction with equipment

IDE CannyLab gives users the ability to upload system software to the controller. System software is required for execution of the function diagram, as well as the function diagram itself.

Executable files for autonomously uploading software into the controller

Main article: Firmware Update Utility

IDE CannyLab allows users to create a custom standalone executable EXE-file containing controller system software and a function diagram.

The purpose of this file is quick and easy controller configuration in a fashion that’s comprehensible to the end user, as well as uploading software to the controller without relying on CannyLab IDE. From now on, we will refer to such files as firmware update utilities or SFX-files (SFX standing for self-flashing).