This documentation is out of date.
The new version of the documentation is here: https://cannylogic.com/docs |
Difference between revisions of "Constant"
[unchecked revision] | [unchecked revision] |
m (minor rewrite) |
|||
Line 27: | Line 27: | ||
<div> | <div> | ||
− | + | Constant is a special function diagram element that allows setting 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 logic 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 | + | 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 == |
Revision as of 13:55, 13 December 2020
Appearance | |
---|---|
Symbol | |
:= | |
Group | |
Constants and Registers | |
Version CANNY Lab | |
from 1.0 |
Constant is a special function diagram element that allows setting 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 logic 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.