Adding variables in the text view
The text view offers the possibility to create variables even faster.
For this it is absolutely necessary that you exactly familiar with the matter, since it can come here faster to mistakes.
Open the text view for variables as described in the previous chapter. You can simply copy and paste an existing variable (the complete text line).
Then, you can redefine added variable by changing the all required values of the new variable.
A variable is divided into the following elements, which can be defined manually.
| ---> Pipe
All elements are separated by the pipe symbol.
1018 ---> ID
The ID is the number for uniquely identifying a variable. However, when copying a line or writing a new line, you don´t have to assign a new ID yourself.
Just leave the field empty (so that the line starts with a pipe) or just leave the copied ID standing. By saving the software automatically assigns the next free ID.
s7 dq ---> Data source
Here, the name of an already created data source must be specified.
alarm ---> Name of the variable to be created
Here, a unique name must be specified for the variable to be created.
DB1.X0.0 ---> Address syntax
Write the address of the variable.
[Format] (Brackets serve as placeholders)
Only interesting for data types. The syntax for this is based on the Java date formatting syntax. See external Website.
[Value Manipulation] (Brackets serve as placeholders)
This area must contain the operation, space key, and then the value. So, for example ADD 5.
See also the "Value manipulation" chapter:
Error ---> Alarm type
If an alarm variable is created, the alarm type must be specified here. This can be "Message", "Warning" or "Error".
If it's not an alarm variable, simply enter "None" here. Then, the following steps will be omitted.
False ---> Linkable
Indicates whether the variable should be linkable or not. This will be defined here by "True" or "False". Variables are thereby made available for rules and actions.
[Message] (Brackets serve as placeholders)
Set here the message to be output when the alarm is active (alarm type "Message").
[Location] (Brackets serve as placeholders)
This is just a text for information about where the alarm is triggered.
[Navigation Target] (Brackets serve as placeholders)
Here, the navigation target is specified. This navigates when selecting the alarm directly to a component (for example, a control element) on the surface or to a desired view.
True ---> Trigger
Determine whether the alarm variable is triggered by "True" or "False".
[Sound] (Brackets serve as placeholders)
Here, a sound can select that will be played when the alarm sounds. The complete name of the sound file must be entered including file extension.
It is also possible to create the variables from the beginning within the text view.
To do this, click directly on the text view and start creating the variables by manual entry as described.
* | We have no influence on the content of external websites