Echelon OpenLNS Commissioning Tool Manuel d'utilisateur Page 207

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 393
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 206
OpenLNS CT User’s Guide 191
Example
The following example demonstrates a function that writes an “ON” value to a SNVT_swtich
data point:
RUNADDONWARGS("LMW Set Value","/SelOverride/ShapeOverride=DataPoint.50
/Value= 100.0 1")
Data Point Field Formula Syntax
RUNADDONWARGS("LMW Set Field Value","/SelOverride/ShapeOverride=<Data
Point SmartShape ID> /Value= <n>")
Example
The following example demonstrates a function that writes to the state field of a
SNVT_swtich data point:
=RUNADDONWARGS("LMW Set Field
Value","/SelOverride/ShapeOverride=DataPoint.50 /Value= 0")
5. Click the accept button (
) in the Formulas box.
6. To have some logic performed on the data point value instead of specifying a value, replace n with
&Scratch.X. The function is as follows: RUNADDONWARGS("LMW Set [Field] Value",
"/SelOverride /ShapeOverride=<Data Point SmartShape ID> /Value=" &Scratch.X). You can
use this type of formula to incrementally change the value of a data point when you double-click
the Visio shape.
In the X cell of the Scratch section, enter a formula. For example, to create a formula that
brightens a lamp when you double-click the Visio shape, enter the following:
=FORMAT(MODULUS("<Data Point SmartShape ID>!User.MonValue"+10,110), "0").
Using a Macro to Write Values
To write to a value to a Data Point SmartShape using a Macro, follow these steps:
1. Click the Developer tab, and then click Macros. The Macros dialog box opens.
Vue de la page 206
1 2 ... 202 203 204 205 206 207 208 209 210 211 212 ... 392 393

Commentaires sur ces manuels

Pas de commentaire