Module Tag

The class that creates, modifies and uses tags.

Info:

  • Copyright: Debaru Kft. 2017
  • Release:
  • License: GNU
  • Author: Debaru Kft

Functions

Tag () Creates a Tag.
set_value_with_time (value, sec, usec) Sets the value and time at the same time
timestamped_value () Gets the value and timestamp of the variable
changed () Returns true, if the value of the variable has changed since last call.
init (value) Sets the initial value of the variable
label (label) Adds a new label to the variable's label list
name (name) Sets the name of the variable
name (unit) Sets the unit name of the variable
persistent () Enables the persistance of the variable
get (name) Gets the tag by its name

Fields

value Represents the value of the variable tag as a double
bvalue Represents the value of the variable tag as a boolean


Functions

Tag ()
Creates a Tag.
set_value_with_time (value, sec, usec)
Sets the value and time at the same time

Parameters:

Usage:

    Variable = Tag():name("TestVar")
    Variable:set_value_with_time(123,3600,1000)
timestamped_value ()
Gets the value and timestamp of the variable

Returns:

changed ()
Returns true, if the value of the variable has changed since last call. After value initialization it will return false.

Returns:

    bool (default: false)
init (value)
Sets the initial value of the variable

Parameters:

label (label)
Adds a new label to the variable's label list

Parameters:

name (name)
Sets the name of the variable

Parameters:

name (unit)
Sets the unit name of the variable

Parameters:

persistent ()
Enables the persistance of the variable
get (name)
Gets the tag by its name

Parameters:

Fields

value
Represents the value of the variable tag as a double
bvalue
Represents the value of the variable tag as a boolean
  • type bool (default: false)
generated by LDoc 1.4.6 Last updated 2023-09-25 09:31:08