Using Tags in Structured Text

<< Click to Display Table of Contents >>

Navigation:  Project > Scripts > ST language >

Using Tags in Structured Text

Previous pageReturn to chapter overviewNext page

Of course for our purposes we need to use Tags in our scripts written in Structured Text language. How to do that? You can include Tags in your project’s scripts by using keyword Tags. Then type dot (.) and name of your Tag. For possibility to compile this code the name of the tag should contain only English letters without white spaces and any signs.

Example:

int var = 10;

Tags.Tag1 = var;

In this example value of the variable var will be assigned to tag's value with name Tag1.

Other  Example:

float f = Tags.Float1;

In this example value of the tag with name Float1 will be assigned to variable f.