Creating Tags

<< Click to Display Table of Contents >>

Navigation:  Modbus Universal MasterOPC Server > Lua 5.1 Reference Manual > Examples and Other Useful Things > Example 1. Processing a quality >

Creating Tags

Let's add 2 tags - Value and Status - to the device:

primer_1._obrabotka_prizaka_kachestva.sozdanie_tegov

We place the script in the tag Value. From that script, we will analyze the Status tag and its bits, and, basing on them, form a quality tag. Let's switch execution of a script after reading on, and open the script editor.

primer_1._obrabotka_prizaka_kachestva.sozdanie_tegov1

Now let's start writing the script.