This documentation is out of date.
The new version of the documentation is here: https://cannylogic.com/docs |
Constant
Appearance | |
---|---|
Symbol | |
:= | |
Group | |
Constants and Registers | |
Version CANNY Lab | |
from 1.0 |
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.