CANNY Lab

From CANNY Wiki
Jump to: navigation, search

CANNY Lab — integrated software development environment for PLCs CANNY 7.

Purpose of integrated development environment Canny Lab[edit]

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

Minimum system requirements for СannyLab operation[edit]

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[edit]

Integrated Development Environment CannyLab is distributed in "portable" version. It does not require installation and can run from removable media. Download 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[edit]

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[edit]

Integrated Development Environment CannyLab supports three types of files:

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

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

Creation of a new functional diagram file[edit]

Create a new functional 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.

Symbol "*" appears when making changes to the open file, at the end of the file name in the header of the main window. When there are changes in the open file at the time of exit from the editor or create a new functional diagram file, the user will be prompted to save the current file.

Saving the functional diagram file[edit]

Saving the functional diagram file with new name by selecting "File" → "Save as..." of 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" of the main menu, using hotkey «Ctrl+S» or by clicking button 4 5 2 1.png on the toolbar.

If saving diagram will overwrite a file created in an earlier CannyLab version, a warning will show that the file will not be opened in previous versions CannyLab.

Opening of the functional diagram file[edit]

Opening a previously saved function diagram file, by selecting "File" → "Open..." on the main menu, hotkey «Ctrl+O» or button 4 5 3 1.png on the toolbar.

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

When opening file created in an earlier version of CannyLab, a warning message will be displayed. If the current version of CannyLab can not correctly display all the information contained in the legacy file format, a warning about this will be displayed.

Functional Diagram Editor[edit]

Main article: CANNY Lab Functional Diagram Editor

In the functional diagram editor mode, the user has the opportunity to:

  • Add function blocks to the diagram;
  • move function blocks within the diagram;
  • select and delete diagram elements;
  • add connections to the diagram between the functional blocks - networks;
  • add and edit names of the networks to the diagram;
  • merge, split and change networks configuration;
  • change functional blocks numbering;
  • assign input data sources and recipients of function block output data, using constant and controller resources address.

CANNY Lab Simulator[edit]

Main Article: CANNY Lab Simulator

Working in the simulator mode, Canny Lab performs action to diagram data , equivalent to those to be carried with them by a computing controller kernel when running diagram on it, that allows to simulate the operation of the controller to the PC.

User has the ability to run the simulation of executing the functional diagram for debugging and testing at any stage of its development. In the simulator mode, it is possible to cycling and stepping through diagram, setting the conditions for suspension, forced IO values setting of the function blocks, and control of 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[edit]

Main article: Interaction with equipment

IDE CannyLab gives users the ability to upload system software to the controller, required to perform the functional diagram, as well as the functional diagram itself.

Executable files autonomous loading of software into the controller[edit]

Main article: Firmware Update Utility

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

This file is a fast configure of the controller in comprehensible to the final consumer form and a simple software upload to the controller using a computer with no CannyLab IDE installed on it. In future, such a file will be called: automatic loading software utility to the controller or the SFX-file.txt