Variables
variables are used as placeholders as in mathematics. Variables always have a data type and the value of a variable can be changed in the course of the program. Variables can be created as global variables using the blocks. More information about the functions and possible uses of the individual blocks can be found on this page
Retrieve variables
This block gives you access to the variable if you want to query or output it (e.g. on the display). By default, the name of a new variable is "Element", but the drop-down menu gives you access to the following functions:- An overview of all the variables defined in the program
- An option to change the name of the current variable
- Create a new variable
Write variables
With this block you can assign a value or a text to a variable. For example, it is also possible to directly connect the readout of a sensor to the block. The block automatically recognizes the data type of the return value and creates a corresponding variable.Write variables with specific data type
As a rule, the data type of a variable is recognized automatically. But you also have the possibility to assign a specific datatype to the variable. In the dropdown menu you will find the following data types:- characters (Char): Allows single characters to be saved
- Text (String): Saves individual texts
- Boolean (boolean): Can take the value TRUE or FALSE/FALSE
- number (int): integer numbers (-32,768 to 32,767)
- large number (long): -2,147,483,648 to 2,147,483,647
- decimal number (float): Decimal numbers between -3.4028235E+38 and +3.4028235E+38