Herunterladen Inhalt Inhalt Diese Seite drucken

Digitronic Automationsanlagen DigiWEB Bedienungsanleitung Seite 18

C-schnittstelle
Vorschau ausblenden Andere Handbücher für DigiWEB:
Inhaltsverzeichnis

Werbung

DigiWEB
C-Schnittstelle
Beispiel:
Zugriff in Visualisierung:
typedef struct
{
long dummy;
}tAppData;
tAppData ApplicationData = {0};
long tAppDataGet_testPrg(tAppData* pStruct)
{
return pStruct->dummy*10;
}
void tAppDataSet_testPrg(tAppData* pStruct,long val)
{
pStruct->dummy=val/10;
}
const tDigiWebSymbol DigiWebSymbols[]=
{
DIGIWEBSYMBOL_P__(tAppData,SECURITY_NONE,testPrg, 1),
0
};
DIGIWEBSYMBOL_P_R(typ, pSecurity, name,deflong)
gespeichert
DIGIWEBSYMBOL_P_G(typ, pSecurity, name)
DIGIWEBSYMBOL_P_S(typ, pSecurity, name,deflong)
Seite 18 von 44
##testPrg
Automationsanlagen GmbH
Werte
werden
hat nur eine Get-Funktion
hat nur eine Set-Funktion
Digitronic
remanent
3. Juni 2011

Werbung

Inhaltsverzeichnis
loading

Inhaltsverzeichnis