-> Hier kostenlos registrieren
Hallo zusammen,
habe WinCC V6 SP4
Kann mir jemand die Programmzeilen erläutern?
void TimeSet()
{
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction DMTagName
// next TagID : 1
#define ApcZeit_Start "Zeit_Start_Ofen8"
// WINCC:TAGNAME_SECTION_END
// WINCCICNAME_SECTION_START
// syntax: #define PicNameInAction PictureName
// next PicID : 1
// WINCCICNAME_SECTION_END
time_t zt;
time (&zt);
SetTagDWord(ApcZeit_Start, zt);
}
dan wird diese Funktion hier wieder aufgerufen.
#include "apdefap.h"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName)
{
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction "DMTagName"
// next TagID : 1
#define ApcOfen_Start_VW2 "Ofen_Start_Ofen8"
#define ApcOfen_Stop_VW2 "Ofen_Stop_Ofen8"
// WINCC:TAGNAME_SECTION_END
// WINCCICNAME_SECTION_START
// syntax: #define PicNameInAction "PictureName"
// next PicID : 1
// WINCCICNAME_SECTION_END
SetTagBit(ApcOfen_Start_VW2,1);
SetTagBit(ApcOfen_Stop_VW2,0);
}
Der Kunde sagt, es gibt sporadische ausfälle.
In edr Log-Datei steht folgendes.
255,03.04.2007,13:59:47:906,1007005,4,,HWO2,SCRIPT,Fault in LoadFunktion TimeSet error: 'TimeSet': doubly defined function
Kann mir jemand weiterhelfen?
Danke
habe WinCC V6 SP4
Kann mir jemand die Programmzeilen erläutern?
void TimeSet()
{
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction DMTagName
// next TagID : 1
#define ApcZeit_Start "Zeit_Start_Ofen8"
// WINCC:TAGNAME_SECTION_END
// WINCCICNAME_SECTION_START
// syntax: #define PicNameInAction PictureName
// next PicID : 1
// WINCCICNAME_SECTION_END
time_t zt;
time (&zt);
SetTagDWord(ApcZeit_Start, zt);
}
dan wird diese Funktion hier wieder aufgerufen.
#include "apdefap.h"
void OnClick(char* lpszPictureName, char* lpszObjectName, char* lpszPropertyName)
{
// WINCC:TAGNAME_SECTION_START
// syntax: #define TagNameInAction "DMTagName"
// next TagID : 1
#define ApcOfen_Start_VW2 "Ofen_Start_Ofen8"
#define ApcOfen_Stop_VW2 "Ofen_Stop_Ofen8"
// WINCC:TAGNAME_SECTION_END
// WINCCICNAME_SECTION_START
// syntax: #define PicNameInAction "PictureName"
// next PicID : 1
// WINCCICNAME_SECTION_END
SetTagBit(ApcOfen_Start_VW2,1);
SetTagBit(ApcOfen_Stop_VW2,0);
}
Der Kunde sagt, es gibt sporadische ausfälle.
In edr Log-Datei steht folgendes.
255,03.04.2007,13:59:47:906,1007005,4,,HWO2,SCRIPT,Fault in LoadFunktion TimeSet error: 'TimeSet': doubly defined function
Kann mir jemand weiterhelfen?
Danke