Back

Topic

[KB656]UCPT and SCPT variables

Tags: LNS, Lonworks

11 years ago
By ACHT
Options
Print
Applies to:

PcVue all versions


Summary:

his article explains how to read Lonworks UCPT and SCPT tags from an equipment.


Details:

There are two methods :

  • Using the SCADA verb “LNS(READCONFIGPROPERTY, NetworkAlias, NodeAlias);” for each Lonworks node
  • Using the trick explained below

It is necessary to use the watch count variable:

The watch count is set to 1 in the following cases :

  • If the variable is in permanent scan
  • If the variable is used in the open mimic
  • If the variable is present into an event action
  • If the variable is present into an expression

UCPT and SCPT variables are refreshed if the watch count goes from 0 to 1. In your project, you must ensure that watch count is 0 and the variable is used in a single open mimic. When opening the mimic the watch count changes from 0 to 1 and the value is updated.



Created on: 10 Jul 2013 Last update: 13 May 2024