This documentation is out of date.

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

Difference between revisions of "CANNY 7, User Preprogrammed Parameters"

From CANNY Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(Смотри также)
(General description: (delete in))
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
=== Общее описание ===
+
== 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 diagram in relevant controller registers.
  
Параметры пользовательской конфигурации могут быть заданы конечным пользователем контроллера в момент загрузки в него программного обеспечения с использованием [[Firmware Update Utility]]. После загрузки ПО и запуска контроллера в автономном режиме, установленные пользователем таким образом данные, становятся доступны функциональной диаграмме в соответствующих регистрах контроллера.
+
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.
  
Грамотное использование пользовательских параметров существенно повышает гибкость и универсальность решений на базе контроллера, позволяя конечному пользователю, не имеющему навыков работы с CannyLab, вносить безопасные изменения в работу алгоритма контроллера используя простой пользовательский интерфейс.
+
=== User Preprogrammed Parameters Registers ===
  
=== Регистры параметров пользовательской конфигурации ===
+
It is possible define up to 16 user parameters that will be available in the respective 16 controller registers.
 
+
Возможно задать до 16 пользовательских параметров, которые будут доступны в 16 соответствующих регистрах контроллера.
+
  
 
{|border="1" style="border-collapse:collapse;" align="left" width="100%"
 
{|border="1" style="border-collapse:collapse;" align="left" width="100%"
 
|- align="center" valign="top"
 
|- align="center" valign="top"
!width="250px"|Адрес
+
!width="250px"|Address
!Ожидаемые значения
+
!Expected values
 
|- valign="top"
 
|- valign="top"
 
|
 
|
 
{|border="0" align="left"
 
{|border="0" align="left"
 
|- valign="top"
 
|- valign="top"
|style="padding-left:0.5em;"|Регистр параметра пользовательской конфигурации №0
+
|style="padding-left:0.5em;"|User Preprogrammed Parameters Register 0
 
|- valign="top"
 
|- valign="top"
 
|style="padding-left:0.5em;"|...
 
|style="padding-left:0.5em;"|...
 
|- valign="top"
 
|- valign="top"
|style="padding-left:0.5em;"|Регистр параметра пользовательской конфигурации №15
+
|style="padding-left:0.5em;"|User Preprogrammed Parameters Register 15
 
|}
 
|}
 
|valign="top"|
 
|valign="top"|
Line 28: Line 27:
 
|width="70px" style="padding-left:0.5em;"|0...65535
 
|width="70px" style="padding-left:0.5em;"|0...65535
 
|style="padding-left:0.5em;"|=
 
|style="padding-left:0.5em;"|=
|style="padding-left:0.5em;"|значение соответствующего пользовательского параметра.
+
|style="padding-left:0.5em;"|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.
  
 
{|
 
{|
|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;"|''When loading controller from SDE CannyLab, the values of all user configuration parameters registers set to zero.''
 
|}
 
|}
  
=== Пример использования параметров пользовательской конфигурации ===
+
=== An example of using user configuration parameters ===
  
Создавая в среде CannyLab исполняемый файл автономной загрузки ПО в контроллер, указав файл системного ПО контроллера и файл, содержащий приведенную ниже диаграмму, задайте два пользовательский параметра: Имя «Длительность выходного сигнала,мс», Тип «Число» и Имя «Выходной канал контроллера», Тип «Список». В список значений параметра «Выходной канал контроллера» добавьте две строки: Название «Канал 0», Значение «0» и «Канал 1», Значение «1».
+
Creating in CannyLab environment an executable stand-alone loading software, specified controller system software file and the file containing the diagram below, set two user parameters: Name «The duration of the output signal,ms», Type «Number» and Name «Controller output channel», Type «List». In the list of parameter values «Controller output channel» add two lines: Name «Cannel 0», Value «0» and «Cannel 1», Value «1».
  
 
[[File:6_14_3_1.png|center|1100px]]
 
[[File:6_14_3_1.png|center|1100px]]
  
Запустите созданный таким образом исполняемый файла автономной загрузки ПО, установите требуемые значения параметров и запишите ПО в контроллер.
+
Run created in this way the executable autonomous software loading file, set the required parameter values and write the software in the controller.
  
 
[[File:6_14_3_2.png|center]]
 
[[File:6_14_3_2.png|center]]
  
Выполняя диаграмму контроллер, в момент получения на входе канала №8 отрицательного потенциала, устанавливает на заданном пользователем в соответствующем параметре канале потенциал «GND» и удерживает его заданное пользователем время. Для наглядности, в диаграмме реализована индикация состояния выходного канала контрольным светодиодом.
+
Performing the diagram, controller at the time of receiving negative potential on input channel #8, set on a user-defined in the corresponding parameter channel potential «GND» and keeps it user-specified time. For clarity, in the diagram is implemented indication of the output channel status by control LED.
  
== Смотри также ==
+
== See also ==
 
[[CANNY 7]]
 
[[CANNY 7]]
  

Latest revision as of 23:32, 29 August 2020

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 diagram 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
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.

An example of using user configuration parameters

Creating in CannyLab environment an executable stand-alone loading software, specified controller system software file and the file containing the diagram below, set two user parameters: Name «The duration of the output signal,ms», Type «Number» and Name «Controller output channel», Type «List». In the list of parameter values «Controller output channel» add two lines: Name «Cannel 0», Value «0» and «Cannel 1», Value «1».

6 14 3 1.png

Run created in this way the executable autonomous software loading file, set the required parameter values and write the software in the controller.

6 14 3 2.png

Performing the diagram, controller at the time of receiving negative potential on input channel #8, set on a user-defined in the corresponding parameter channel potential «GND» and keeps it user-specified time. For clarity, in the diagram is implemented indication of the output channel status by control LED.

See also

CANNY 7

CANNY 7, EEPROM Driver

Firmware Update Utility