This documentation is out of date.

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

Difference between revisions of "Constant"

From CANNY Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
m (logical)
 
(2 intermediate revisions by the same user not shown)
Line 27: Line 27:
  
 
<div>
 
<div>
Special functional diagram element allows to set networks or register initial constant values for entire operation time of the diagram.
+
Constant is a special function diagram element that allows the user to set network or register values that remain constant and unchanging, irrespective of how long the diagram has been running for. It is most frequently used for configuring the controller’s hardware resources, granting access to those resources, or introducing parameters to the function diagram.
Most often, this element is used to configure controllers' hardware resources or functional diagram parameters initiation.
+
 
Constants can be set manually to use in arithmetic and logical operations in various numbering systems, using constants setting dialogue [[Редактор функциональных диаграмм#Константы|установки значения константы]]  or using constants set values ​​for some of the registers in the controller, by selecting from constants directory [[Редактор функциональных диаграмм#Константы|справочника именованных констант]].
+
You can set the value of a constant manually, which is generally used for arithmetic and logical operations in various numbering systems, by using the Enter Constant Value dialog. Alternatively, you can use a named constant for setting values of specialized controller registers, by selecting one from the constants directory. Read how to do both of these in [[CANNY Lab Functional Diagram Editor#Constants]].
 
</div>
 
</div>
 
</div>
 
</div>
Line 36: Line 36:
 
== Features ==
 
== Features ==
  
Prior to CANNY Lab version 1.0, sending constant to the register of the controller was possible only by using functional block "Constant value assignment", as seen on many early video demonstrations [http://www.youtube.com/channel/UCaYNvBE72LYxQQz1PSY5SCQ videos of CANNY Lab]. With the release of CANNY Lab ver. 1.0, this step has been simplified.
+
Prior to CANNY Lab version 1.0, sending a constant to a controller register was only possible through the use of the function block "Constant value assignment", as seen in many early video demonstrations [http://www.youtube.com/channel/UCaYNvBE72LYxQQz1PSY5SCQ videos of CANNY Lab]. With the release of CANNY Lab ver. 1.0, it became no longer necessary to use this type of function block and it was removed.
  
 
== Examples ==
 
== Examples ==

Latest revision as of 14:44, 13 December 2020

Appearance
5 2 1 2.png
Symbol
:=
Group
Constants and Registers
Version CANNY Lab
from 1.0
Icon

Constant is a special function diagram element that allows the user to set network or register values that remain constant and unchanging, irrespective of how long the diagram has been running for. It is most frequently used for configuring the controller’s hardware resources, granting access to those resources, or introducing parameters to the function diagram.

You can set the value of a constant manually, which is generally used for arithmetic and logical operations in various numbering systems, by using the Enter Constant Value dialog. Alternatively, you can use a named constant for setting values of specialized controller registers, by selecting one from the constants directory. Read how to do both of these in CANNY Lab Functional Diagram Editor#Constants.


Features

Prior to CANNY Lab version 1.0, sending a constant to a controller register was only possible through the use of the function block "Constant value assignment", as seen in many early video demonstrations videos of CANNY Lab. With the release of CANNY Lab ver. 1.0, it became no longer necessary to use this type of function block and it was removed.

Examples

Example 1
Example 2
Example 3

See also

Copy

Input Register

Output Register

Built-in Function Blocks