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)
 
(11 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;"|[[Изображение:5_2_1_2.png]]
+
|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#Set and Copy | Set and Copy]]
+
|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;">
[[Изображение:5_2_1_1.png|left|Иконка]]
+
[[File:5_2_1_1.png|left|Icon]]
 
</div>
 
</div>
  
 
<div>
 
<div>
Special functional diagram element allows to set networks or register initial values, constant during 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, send the constant to the register of the controller was possible only by using function block "Setting", appearing on many early demonstration video CANNY Lab. With the release CANNY Lab ver. 1.0 need for this type of blocks disappeared and the block was abolished.
+
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"
|[[Изображение:5_2_1_3.png|thumb|Пример 1]]
+
|valign="top"|[[File:5_2_1_3.png|thumb|Example 1]]
|[[Изображение:Const2.png|thumb|Пример 2]]
+
|valign="top"|[[File:Const2.png|thumb|Example 2]]
|[[Изображение:Const3.png|thumb|Пример 3]]
+
|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
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