Echelon i.LON SmartServer 2.0 Manuel d'utilisateur Page 97

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 266
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 96
i.LON SmartServer 2.0 Programming Tools User’s Guide 83
Writing Data Point Values
You can write updated values to the scalar and structured data points declared in your FPM application
in the Work() routine. The updated values are then written back to the data points when the FPM
application exits the Work() routine. You can directly write an updated value to a scalar data point
by simply assigning it a value.
nviTemp = 25.28;
nviSetPoint = 22.22;
Writing an updated value to a structured data point requires a few additional steps. You can directly
write values to the fields of a structured data point and then mark the data point as modified, or you
can create temporary data point variables and use them to write values to the fields of your structured
data points. The following sections describe how to write values to a structured data point using each
of these methods.
Directly Writing to a Structured Data Point
To directly write a value to a structured data point, you use the -> operator (element selection through
pointer), and you then mark the data point as modified using the PROPAGATE()macro. The
following code demonstrates how to write to a structured data point using this method:
DECLARE(_0000000000000000_0_::SNVT_switch,
nvoAirConditioner_OnOff, OUTPUT_DP);
...
void CUFPTHVACController::Work()
{
// use variable directly and tell the system that this value /
should be written back to the data point
nvoAirConditioner_OnOff->value = 200;
nvoAirConditioner_OnOff->state = 1;
PROPAGATE(nvoAirConditioner_OnOff);
}
Using Temporary Data Point Variables to Write to a Structured Data Point
To use a temporary data point variable to write to a structured data point, you declare a temporary data
point in the Work() routine, store the desired values in the various fields of the temporary data point,
and then assign the declared data point a reference to the temporary data point variable. The following
code demonstrates how to write to a structured data point using this method.
DECLARE(_0000000000000000_0_::SNVT_switch,
nvoAirConditioner_OnOff, OUTPUT_DP)
...
void CUFPTHVACController::Work()
{
SNVT_switch tmp;
tmp.value = 200;
tmp.state = 1;
nvoAirConditioner_OnOff = tmp;
// change detected and written to data point automatically
}
See the
Programmer’s Reference in Appendix A for more information on writing values to structured
data points.
Vue de la page 96
1 2 ... 92 93 94 95 96 97 98 99 100 101 102 ... 265 266

Commentaires sur ces manuels

Pas de commentaire

AEG Electrolux FAVORIT G340 manuels

Manuels d'utilisation et guides de l'utilisateur pour Lave-vaisselle AEG Electrolux FAVORIT G340.
Nous fournissons des manuels en pdf 1 AEG Electrolux FAVORIT G340 à télécharger gratuitement par type de document : Manuel de l'utilisateur






Plus de produits et de manuels pour Lave-vaisselle AEG Electrolux

Modèles Type de document
F35085VI Manuel de l'utilisateur   Aeg-Electrolux F35085VI User Manual, 48 pages
FPOWER Manuel de l'utilisateur   Aeg-Electrolux FPOWER Handleiding [el] , 44 pages
F86070VI Manuel de l'utilisateur   Aeg-Electrolux F86070VI User Manual, 48 pages
FAAAUTO Manuel de l'utilisateur     Aeg-Electrolux FAAAUTO Uživatelský manuál [es] , 80 pages
F54052VI0 Manuel de l'utilisateur   Aeg-Electrolux F54052VI0 User Manual [en] , 24 pages
F85460VI Manuel de l'utilisateur   Aeg-Electrolux F85460VI User Manual [fr] , 48 pages
F98010IMM Manuel de l'utilisateur   Aeg-Electrolux F98010IMM Manuel utilisateur [en] [es] [fr] , 48 pages
F60870 Manuel de l'utilisateur   Aeg-Electrolux F60870 Uživatelský manuál, 48 pages
F50870M Manuel de l'utilisateur   Aeg-Electrolux F50870M User Manual, 48 pages
F88090IM Manuel de l'utilisateur   Aeg-Electrolux F88090IM Používateľská príručka, 48 pages
F55210S0 Manuel de l'utilisateur   Aeg-Electrolux F55210S0 User Manual, 24 pages
F44860S Manuel de l'utilisateur   Aeg-Electrolux F44860S User Manual, 48 pages
FPERFORMIW Manuel de l'utilisateur   Aeg-Electrolux FPERFORMIM User Manual, 48 pages
FAVG330 Manuel de l'utilisateur   Aeg-Electrolux FAVG330 Kullanım kılavuzu [hu] , 40 pages
FAAAUTO Manuel de l'utilisateur   Aeg-Electrolux FAAAUTO Instrukcja obsługi [fr] [nl] , 44 pages
FAV45250VI Manuel de l'utilisateur   Aeg-Electrolux FAV45250VI User Manual, 36 pages
F65080VIL Manuel de l'utilisateur   Aeg-Electrolux F65080VIL User Manual, 52 pages
FPROTECT-N Manuel de l'utilisateur    Aeg-Electrolux FPROTECT-N Korisnički priručnik, 40 pages
F44860 Manuel de l'utilisateur   Aeg-Electrolux F44860 Instrukcja obsługi, 40 pages
F34032VI0 Manuel de l'utilisateur   Aeg-Electrolux F34032VI0 User Manual, 24 pages