System Properties

<< Click to Display Table of Contents >>

Manual > Server Creation Guide > Tag Edition >

System Properties

What are system properties?

Tag system properties are properties that "units", "folders" and "tags" have as standard. System properties can be accessed in the same way as normal tags, using the following format:

 

For units
 
(unit name)!(property name)

 

For folders
 
(Unit name).(Folder name)!(Property name)

 

For tags
 
(Unit name).(Folder name).(Tag name)!(Property name)

 

 

 

Example of using system properties

For example, the "Alive" property below represents the alive state of the PLC.

 

U01!Alive

 

Below are the steps to check the value of the Alive property on the tag monitor.

 

1.Create units, folders, and tags as needed.
c_tag_0124
 

 

2.Right-click on the following location in the Output View at the bottom of the screen, select "Insert", and add a "Tag Monitor"

 

3.After going online, enter "U01.F01.T01" and "U01!Alive" into the cells.
c_tag_0125
 

 

4.Verify that the value of U01!Alive changes to TRUE/FALSE by turning the PLC power ON/OFF

 

 

 

Using system properties in scripts

When you use system properties in a script, you can treat them just like regular tags.

 

Example) When displaying Alive of U01 in Label control

var vTag = "U01!Alive";

event OnInitialize()
{
this.AddTag(vTag);
this.ReadRefresh(vTag, "device");
}

event OnTagValueChanged(tagname,value)
{
if (tagname == vTag) {
if (value) {
this.Text = "U01 connection_OK";
} else {
this.Text = "U01 Connection_NG" ;
}
} 
}

 

 

hint

If you want to access a system property from a script, first add it like you would a normal tag:

You can then read and write the system properties as tags just like you would access regular tags.
 

To read a value: ReadVal/GetVal etc.

To write a value: WriteVal etc.

 

 

 

 

Using system properties in bindings

When binding to a system property, you can treat it just like a regular tag.

 

However, please note that the "!" character in the system property is a prohibited character for binding, so it must be enclosed in single quotation marks as shown below.

 

c_tag_0129