This documentation is out of date.

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

CANNY 7, User Preprogrammed Parameters

From CANNY Wiki
Revision as of 10:46, 24 July 2016 by MEGA (Talk | contribs) (User Preprogrammed Parameters Registers)


Jump to: navigation, search

General description

The user preprogrammed parameters can be set by the end user during loading a software to the controller with Firmware Update Utility. After loading the software and launch the controller in stand-alone mode, the user-defined data become available to the functional diagramin in relevant controller registers.

Proper use of user parameters greatly increases the flexibility and versatility of the controller-based solutions, alloving the end user without expirience working with CannyLab, make safe changes in the operation of the controller algorithm using a simple user interface.

User Preprogrammed Parameters Registers

It is possible define up to 16 user parameters that will be available in the respective 16 controller registers.

Address Expected values
style="padding-left:0.5em;"User Preprogrammed Parameters Register #0
...
User Preprogrammed Parameters Register #15
0...65535 = corresponding user parameter value.

The values in these registers will be established at the start of the controller, after loading software in to it, by the executable stand-alone loading file, and will remain unchanged (constant) throughout the entire period of the functional diagram operation, will not change even when the controller is reset. Change of register data values is possible only by overwriting or erasing controller memory with new software.

The values of the registers relevant to the parameters not listed in the standalone executable file is set to zero.

Note: When loading controller from SDE CannyLab, the values of all user configuration parameters registers set to zero.

Пример использования параметров пользовательской конфигурации

Создавая в среде CannyLab исполняемый файл автономной загрузки ПО в контроллер, указав файл системного ПО контроллера и файл, содержащий приведенную ниже диаграмму, задайте два пользовательский параметра: Имя «Длительность выходного сигнала,мс», Тип «Число» и Имя «Выходной канал контроллера», Тип «Список». В список значений параметра «Выходной канал контроллера» добавьте две строки: Название «Канал 0», Значение «0» и «Канал 1», Значение «1».

6 14 3 1.png

Запустите созданный таким образом исполняемый файла автономной загрузки ПО, установите требуемые значения параметров и запишите ПО в контроллер.

6 14 3 2.png

Выполняя диаграмму контроллер, в момент получения на входе канала №8 отрицательного потенциала, устанавливает на заданном пользователем в соответствующем параметре канале потенциал «GND» и удерживает его заданное пользователем время. Для наглядности, в диаграмме реализована индикация состояния выходного канала контрольным светодиодом.

See also

CANNY 7

CANNY 7, EEPROM Driver

Firmware Update Utility