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 (logical) |
|||
(12 intermediate revisions by 5 users not shown) | |||
Line 5: | Line 5: | ||
!colspan="2" style="background-color:#AFEEEE;"|Appearance | !colspan="2" style="background-color:#AFEEEE;"|Appearance | ||
|- | |- | ||
− | |colspan="2" align="center" style="padding:10px;"|[[ | + | |colspan="2" align="center" style="padding:10px;"|[[File:5_2_1_2.png]] |
|- | |- | ||
!colspan="2" style="background-color:#AFEEEE;"|Symbol | !colspan="2" style="background-color:#AFEEEE;"|Symbol | ||
Line 13: | Line 13: | ||
!colspan="2" style="background-color:#AFEEEE;"|Group | !colspan="2" style="background-color:#AFEEEE;"|Group | ||
|- | |- | ||
− | |colspan="2" align="center"|[[Built-in Function Blocks | | + | |colspan="2" align="center"|[[Built-in Function Blocks#Constants and Registers | Constants and Registers]] |
|- | |- | ||
!colspan="2" style="background-color:#AFEEEE;"|Version [[CANNY Lab]] | !colspan="2" style="background-color:#AFEEEE;"|Version [[CANNY Lab]] | ||
Line 23: | Line 23: | ||
<div style="min-height:100%;display:block;"> | <div style="min-height:100%;display:block;"> | ||
<div style="float:left;width:70px;"> | <div style="float:left;width:70px;"> | ||
− | [[ | + | [[File:5_2_1_1.png|left|Icon]] |
</div> | </div> | ||
<div> | <div> | ||
− | + | 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]]. | |
</div> | </div> | ||
</div> | </div> | ||
Line 36: | Line 36: | ||
== Features == | == Features == | ||
− | Prior to CANNY Lab version 1.0, | + | 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 == | ||
− | {| | + | {|valign="top" |
− | |[[ | + | |valign="top"|[[File:5_2_1_3.png|thumb|Example 1]] |
− | |[[ | + | |valign="top"|[[File:Const2.png|thumb|Example 2]] |
− | |[[ | + | |valign="top"|[[File:Const3.png|thumb|Example 3]] |
|} | |} | ||
== See also == | == See also == | ||
[[Copy]] | [[Copy]] | ||
+ | |||
+ | [[Input Register]] | ||
+ | |||
+ | [[Output Register]] | ||
[[Built-in_Function_Blocks | Built-in Function Blocks]] | [[Built-in_Function_Blocks | Built-in Function Blocks]] |
Latest revision as of 14:44, 13 December 2020
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.