Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this example, a water tank will display its status using a string value object, which in turn changes based on an analog tag value. Strings may be defined and configured using the ‘String Editor’ tool.

※    Please refer to section 6.8 (‘String Editor’) the String Editor section for more information.

a)     Create  Create a new analog tag and name it ‘VALUE’.

...

b)      Go to [Tools] – [String Editor] to configure the contents of the string table. If you have not already done so, create a new group (0). Add the strings shown strings below to group 0.

...

  • When the ‘VALUE’ tag is equal to 0, “The water tank is empty.” will be displayed.

  • When the ‘VALUE’ tag is equal to 1, “The water has been stored in the tank.” will be displayed.

  • When the ‘VALUE’ tag is equal to 2, “The water tank is full.” will be displayed.

c)     Select  Select [Draw] – [String Value] and enter the tag name ‘VALUE’ in the ‘Tag’ field. Specify the string group as 0.

...

d)     Select  Select [Draw] – [Switch/Lamp] to create a word switch. Define the action as ‘Tag operation’ to increase the value of the ‘VALUE’ tag by 1 every time the switch is pressed.

...

(blue star)

No string will be displayed if there is no corresponding string in the specified group with the analog tag’s value. In the example above, a string will only be displayed when ‘VALUE’ is equal to 0, 1, or 2.