Vai al contenuto
PLC Forum


Passaggio Da Wincc 2005 A 2007 - problemi con runtime su PC


Bruno

Messaggi consigliati

Salve a Tutti

Oggi ho installato WinCC flex 2007 (upgrade da 2005), dopo due ore di installazione ho cominciato le prove:

1) Ho aperto un progetto sviluppato con 2005 e ho provato a spedirlo su un pannello (MP277) e dopo aver ritrasferito il firmware (O.S. del pannello) sembra funzionare (devo ancora controllare impostazione Timer...)

2) Ho provato a fare la stessa tipologia di prova con un PC su cui gira WinCC 2005 runtime e ..... stop non funziona ! non viene permesso il trasferimento / aggiornamento... il software mi permette di salvare il progetto (solo sorgente non compilato) in formato 2005, ma poi come faccio a spedirlo al PC ???

3) Al momento dell'installazione del 2007 era richiesta la disinstallazione della versione 2005... come faccio a manutenzionare i miei impianti sviluppati su PC 677 (siemens) con WinCC 2005 ?

4) Ho provato a installare, dopo 2007, anche la mia versione di WinCC 2005 ma chiede la disinstallazione di 2007... AIUTO !!! Cosa devo fare ? tenere un PC per 2007 e uno per 2005 ?

voi cosa fate ?

ciao

BR1

:(

Link al commento
Condividi su altri siti


Gianmario Pedrani

Usa winccflexible 2007 e poi se propio ti serve puoi salvare alla versione precedente 2005 sp1 anche se io non te lo consiglio, in quanto la versione 2005 aveva un pò di problemi, ed sono stati sistemati con la nuova, versione..

Se devi upgradare i vari pannelli prima devi ifare un aggiornamento del firmware del pannello e poi vai ad installare il tuo applicativo.

Ciao

Link al commento
Condividi su altri siti

Ciao

grazie per la velocità di risposta.

Con i pannelli non ho avuto problemi con la conversione e l'aggiornamento del firmware.

Il problema è sui PC in cui avevo installato il runtime 2005 che non riconoscono il file compilato con 2007.

Sto aspettando una comunicazione da un tecnico siemens...

appena scopro qiualcosa vi posto...

BR1

Link al commento
Condividi su altri siti

Ciao Bruno,

è più di 1 mese che siamo dietro a queste problematiche di aggiornamento, con rappresentanti che ci fanno

da interfaccia con la Siemens con E-mail e contro E-mail.

La risposta ufficiale al tuo/nostro problema sai qual'è stata : problemi vostri!!! (Non scherzo)

comunque

Se vuoi passare alla versione 2007:

Devi aggiornare sul PC677 il runtime a 2007, l'A.L.M. a ver.3.0 hf3 e la chiave di licenza delle TAG alla ver.2007.

Semplice no?

Questo è quanto facciamo noi con il PC477 (Dovrebbe essere uguale anche per il tuo PC)

Il problema è come spiegare ai clienti che il nuovo aggiornamento con riconosce + la chiave delle TAG regolarmente acquistata.

Il nostro rappresentante per disperazione ci regala tutti gli aggiornamenti delle 2048TAG a ver.2007 per tutti i PC che abbiamo in giro.

P.s. secondo me la Ver.2007 è un semplice e puro SAVE AS della 2005 con l'aggiunta di dette problematiche!

A disposizione per chiarimenti

Saluti David

Link al commento
Condividi su altri siti

Ciao David

Stavo spazzolando l'#### di WinCC 2007 quando ho letto il tuo post...

Non mi è piaciuto affatto anche perchè stavo leggendo questo passaggio:

Licenze per WinCC flexible Runtime su pannelli operatore basati su PC

L'utilizzo di WinCC flexible 2007 Runtime è autorizzato soltanto con la nuova licenza.

Le licenze per la versione runtime di WinCC flexible 2005 continuano ad essere funzionanti e possono essere utilizzate nel corso di un aggiornamento a WinCC flexible 2007.

Cosa vuol dire ? Ho provato ad aggiornare il runtime sul mio PC, ma non riconosce la mia licenza 2048 tag per 2005 come valida.

Allego anche screen shot della videata, naturalmente a quest'ora alla siemens non rispondono più, quindi intuisco che anche domani

sarà una lunga giornata....

ciao

BR1

Domanda:

Bill Gates ha preso residenza in Germania ??? :lol:

post-204123-0-12382400-1388847896_thumb.

Link al commento
Condividi su altri siti

Ciao Bruno,

Il problema principale della ver.2007 (forse non te ne eri accorto) è che la licenza runtime delle 128,256 o2048TAG ver.2005 la prendi

e la butti nel cestino. Anche a noi non ci è piaciuto..... Quella spiegazione che hai trovato nell'#### del programma non corrisponde a

verità o semplicemente vuol dire che la licenza 2005 rimane funzionante ed utilizzabile ma non so cosa tu possa farci!

E poi l'hai constatato di persona no? anche a te il runtime sul tuo PC non riconosce + la ver.2005 .. idem sul pannello PC

Fammi sapere la risposta della siemens... sono proprio curioso!!!!

Saluti

David

Link al commento
Condividi su altri siti

Per i curiosi e i curiosoni, ecco a voi la storia di oggi:

Ho contattato la Siemens, e mi hanno confermato la situazione:

a - Sullo stesso PC non possono coesistere le due versioni 2005 e 2007

b - con 2007 si può salvare il progetto in modalità 2005, ma non si può preparare il runtime per 2005

c - l'ambiente di programmazione (sia 2005 che 2007) riesce a preparare solo il runtime corrispondente (ha un solo compilatore)

d - La pagina del ####/manuale che ho citato è sbagliata nei contenuti o nella traduzione, sentiranno in Germania....

e - E' presente una licenza di upgrade per quelle di runtime da 2005 a 2007, è ha pagamento (proprio per quello il punto d è un errore

f - Per pannelli MultiPanel (tipo il MP277 che avevo provato) è vero che l'ambiente di sviluppo 2007 riesce a cambiare il sistema operativo, ma nel caso di licenze aggiuntive si deve prendere il relativo upgrade

Per cui ho deciso:

a - Il contenitore di WinCC 2007 (con relativa chiavetta USB per le licenze) è finito nel cestino sotto la scrivania

b - Ho pensato adesso disinstallo la versione 2007 e reinstallo la 2005, così dopo visto che non ho più la licenza 2005 (viene eliminata al momento dell'upgrade) posso fare un fax in germania per riaverne una indietro spiegnado a modo mio cosa penso della loro politica commerciale

c - L'ho spiegato al mio capo e dopo la mia pretesa che siemens fornisse a tutte le ditte del mondo le licenze di upgrade gratuitamente (non solo a David !!!!) ho disinstallato la versione 2007

d - Ho reinstallato la 2005 SP1 HF7, ripeto SP1 HF7 e vogliono dei soldi per l'upgrade !!!

e - Purtroppo la versione 2005 riconosce valida la licenza 2007 e quindi ora devo recuperare le 12 ore di prove buttate al vento

Conclusioni:

1) Ho preso del Kretino da un amico in quanto mi sono fidato di una comunicazione ufficiale siemens nonostante faccia questo lavoro dal 1988

2) Non posso scrivere quello che penso, non posso fare pubblicità nè negativa nè positiva, ma se qualcuno di voi volesse abbandonare i sistemi di comunicazione tra PC e PLC commerciali della Siemens per protocollo fatti in proprio sviluppati VB6 o C o C# (stile LibNoDave, Fetch & Write o altro) vi aiuterò alla grandissima (l'ho sempre fatto su questo forum, ma ora sono spinto in modo ancora maggiore).

Cari moderatori, se volete censurate pure questo messaggio, ma questi due giorni buttati nel cesso mi servivano per consegnare in tempo i miei lavori e io dovrò tra giorni di festa e domenica.......

Link al commento
Condividi su altri siti

Ciao Bruno,

condivido pienamente il tuo disappunto, è dal 1984 che lavoro con materiale Siemens e dopo varie fregature ho deciso di aspettare le disavventure degli altri per fare upgrade e passare a nuove versioni.....

In altri termini, l'upgrade 2007 resta nel cassetto e resto felicemente aggrappato al vecchio WCF 2005 SP1 HF7.

Se ti può far piacere, anche io lavorerò tutto il ponte e weekend, come al solito per i soliti meccanici che consegnano in ritardo...

Buon lavoro

pigroplc

Link al commento
Condividi su altri siti

ciao bruno,

ho scritto un server che sfrutta le librerie libnodave e pubblica i dati in tcp ai clients.

I clients devono solo linkare una libreria dll che comunica con il server. funziona con vari

linguaggi di programmazione. Il progetto è interessante (lo utilizzo industrialmente da 2 anni),

Libnodave va però in crash quando spengo il plc o scarico una configurazione hardware.

Penso di aver individuato il problema, ma non riesco a ricompilare la libreria libnodave

con VC7 (andrebbe bene anche VC6).

Hai già ricompilato le librerie ? Se si hai le impostazioni di progetto ?

p.s.: prodave ver.6 non va mai in crash scollegando il plc, anzi ti fornisce come diagnostica

lo stato del plc.

Se riuscissi a risolvere questo problema nella libreria si potrebbe pubblicare il server

nell'area download.

Link al commento
Condividi su altri siti

Ciao

Anche io utilizzo un sistema del genere.

Io ho eseguito i server in due versioni. Una sviluppata in VB6 e l'altra in C# compilata con il framework 2.0.

Per quanto riguarda la compilazione delle librerie utilizzo questo prodotto:

http://www.bloodshed.net/dev/devcpp.html

che un un software libero distribuito sotto licenza GNU General Public license.

In allegato ho messo il file che utilizzo come file di progetto ed esegue la compilazione come DLL.

Nella sezione upload/download trovi due miei esempi stand alone (uno in VB6 e l'altro in C#), i due esempi sono

solo per mostrare l'utilizzo delle librerie, ma i miei server utilizzano le stesse chiamate.

Il problema che descrivi mi è già stato descritto in passato da altri utenti, gli impianti in cui ho installato le mie supervisioni

normalmente utilizzano il collegamento ethernet e non ho mai avuto lamentele da parte dei clienti (io stesso ho provato a scollegare il cavo di rete e/o spegnere il PLC) riguardo a crash del sistema.

Verifica di utilizzare in modo corretto le variabili di ritorno dello stato della funzione e sono sicuro che troverai la strada.

Se hai bisogno di qualsiasi cosa che possa diminuire il fatturato siemens :angry: posta pure messaggi.

Rimango in attesa di comunicazioni o di vedere il progetto nell'area di download.

Coraggio !!!

Link al commento
Condividi su altri siti

Scusate, ho appena notato che l'allegato non è stato accettato.

Riprovo in questo modo (copia/incolla contenuto file):

il file l'ho chiamato libnodave.dev (estensione per Dev-C ++)

[Project]
FileName=libnodave.dev
Name=libnodave
UnitCount=8
Type=3
Ver=1
ObjFiles=
Includes=
Libs=
PrivateResource=
ResourceIncludes=
MakeIncludes=
Compiler=-DBUILDING_DLL=1 _[at][at]_-DBCCWIN _[at][at]_-DDAVE_LITTLE_ENDIAN _[at][at]_-TC _[at][at]_-DDOEXPORT_[at][at]_
CppCompiler=-DBUILDING_DLL=1_[at][at]_
Linker=--no-export-all-symbols _[at][at]_--add-stdcall-alias_[at][at]_-lws2_32_[at][at]_
IsCpp=0
Icon=
ExeOutput=
ObjectOutput=
OverrideOutput=0
OverrideOutputName=libnodave.dll
HostApplication=
Folders=
CommandLine=
UseCustomMakefile=0
CustomMakefile=
IncludeVersionInfo=0
SupportXPThemes=0
CompilerSet=0
CompilerSettings=0010000001001000000000

[Unit1]
FileName=nodave.h
CompileCpp=0
Folder=libnodave
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit2]
FileName=openSocket.h
CompileCpp=0
Folder=libnodave
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit3]
FileName=openSocketw.c
CompileCpp=0
Folder=libnodave
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit4]
FileName=setport.h
CompileCpp=0
Folder=libnodave
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit5]
FileName=setportw.c
CompileCpp=0
Folder=libnodave
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit6]
FileName=nodave.c
CompileCpp=0
Folder=libnodave
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[VersionInfo]
Major=0
Minor=1
Release=1
Build=1
LanguageID=1033
CharsetID=1252
CompanyName=
FileVersion=
FileDescription=
InternalName=
LegalCopyright=
LegalTrademarks=
OriginalFilename=
ProductName=
ProductVersion=
AutoIncBuildNr=0

[Unit7]
FileName=openS7online.h
CompileCpp=0
Folder=libnodave
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

[Unit8]
FileName=openS7online.c
CompileCpp=0
Folder=libnodave
Compile=1
Link=1
Priority=1000
OverrideBuildCmd=0
BuildCmd=

Link al commento
Condividi su altri siti

grazie Bruno,

Per quanto riguarda il crash avviene indistintamente sia in ethernet che in mpi

(utilizzando s7online e la cp). La funzione che crea l'errore irreversibile di windows

è davereadbytes. Quando esegui questa funzione senza il cavo collegato crea un errore

di puntamento ad un'area vuota.

Ho scaricato dall'area download il tuo server c# e presenta lo stesso incoveniente.

inoltre non puoi fare un riconnect automatico in quanto l'errore si riperquote sul client.

Link al commento
Condividi su altri siti

Bruno,

ho installato Dev-c++ dal sito (4.9.9.2 beta9.2), ho scaricato libnodave 0.8.4 quindi ho inserito

il file libnodave.dev tra i file sorgenti ed ho avviato il compilatore. Ha caricato tutti i file di progetto, ma quando

ho fatto "compila" mi ha dato 293 errori (inseriti nel codebox seguente). Inoltre il compilatore avviato

in italiano si è chiuso in + occasioni con (e senza!!!) errori di runtime.

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Administrator\Desktop\libnodave-0.8.4\libnodave-0.8.4\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Administrator\Desktop\libnodave-0.8.4\libnodave-0.8.4\Makefile.win" all
gcc.exe -c openSocketw.c -o openSocketw.o -I"C:/Dev-Cpp/include"  -DBUILDING_DLL=1 _[at][at]_-DBCCWIN _[at][at]_-DDAVE_LITTLE_ENDIAN _[at][at]_-TC _[at][at]_-DDOEXPORT_[at][at]_  -w -fexpensive-optimizations -O3

In file included from openSocketw.c:46:
nodave.h:106:2: #error Fill in what you need for your OS or API.
In file included from openSocketw.c:46:
nodave.h:249: error: syntax error before "char"
nodave.h:249: error: syntax error before "daveStrerror"
nodave.h:255: error: syntax error before "void"
nodave.h:315: error: syntax error before "void"

nodave.h:316: error: syntax error before "int"

nodave.h:350: error: syntax error before '*' token
nodave.h:351: error: syntax error before '*' token
nodave.h:352: error: syntax error before '*' token
nodave.h:353: error: syntax error before '*' token

nodave.h:354: error: syntax error before '*' token
nodave.h:355: error: syntax error before '*' token
nodave.h:356: error: syntax error before '*' token
nodave.h:357: error: syntax error before '*' token

nodave.h:362: error: syntax error before '*' token
nodave.h:363: error: syntax error before '*' token
nodave.h:370: error: syntax error before "tmotype"
nodave.h:382: error: syntax error before "initAdapter"
nodave.h:383: error: syntax error before "connectPLC"
nodave.h:384: error: syntax error before "disconnectPLC"
nodave.h:385: error: syntax error before "disconnectAdapter"
nodave.h:386: error: syntax error before "exchange"
nodave.h:387: error: syntax error before "sendMessage"

nodave.h:388: error: syntax error before "getResponse"
nodave.h:389: error: syntax error before "listReachablePartners"
nodave.h:391: error: syntax error before "ifread"
nodave.h:392: error: syntax error before "ifwrite"
nodave.h:394: error: syntax error before '}' token
nodave.h:396: error: syntax error before "daveInterface"
nodave.h:396: error: syntax error before "daveNewInterface"
nodave.h:396: error: syntax error before "nfd"
nodave.h:397: error: syntax error before "daveInterface"
nodave.h:397: error: syntax error before "davePascalNewInterface"
nodave.h:397: error: syntax error before '*' token
nodave.h:488: error: syntax error before "daveConnection"
nodave.h:488: error: syntax error before "daveNewConnection"
nodave.h:534: error: syntax error before "void"
nodave.h:539: error: syntax error before "void"
nodave.h:544: error: syntax error before "void"
nodave.h:549: error: syntax error before "void"
nodave.h:553: error: syntax error before "void"
nodave.h:557: error: syntax error before "int"
nodave.h:561: error: syntax error before "int"
nodave.h:565: error: syntax error before "int"
nodave.h:569: error: syntax error before "int"
nodave.h:573: error: syntax error before "int"
nodave.h:583: error: syntax error before "void"
nodave.h:590: error: syntax error before "int"
nodave.h:595: error: syntax error before "void"
nodave.h:600: error: syntax error before "char"
nodave.h:600: error: syntax error before "daveBlockName"
nodave.h:601: error: syntax error before "char"
nodave.h:601: error: syntax error before "daveAreaName"
nodave.h:606: error: syntax error before "short"
nodave.h:607: error: syntax error before "int"
nodave.h:620: error: syntax error before "float"
nodave.h:621: error: syntax error before "float"
nodave.h:624: error: syntax error before "float"
nodave.h:625: error: syntax error before "int"
nodave.h:626: error: syntax error before "int"
nodave.h:629: error: syntax error before "int"
nodave.h:630: error: syntax error before "int"
nodave.h:631: error: syntax error before "int"
nodave.h:632: error: syntax error before "int"
nodave.h:633: error: syntax error before "int"
nodave.h:634: error: syntax error before "unsigned"
nodave.h:634: error: syntax error before "daveGetU32from"
nodave.h:635: error: syntax error before "float"
nodave.h:636: error: syntax error before "float"
nodave.h:643: error: syntax error before "int"
nodave.h:644: error: syntax error before "int"
nodave.h:645: error: syntax error before "int"
nodave.h:646: error: syntax error before "int"
nodave.h:647: error: syntax error before "int"
nodave.h:648: error: syntax error before "unsigned"
nodave.h:648: error: syntax error before "daveGetU32"
nodave.h:649: error: syntax error before "float"
nodave.h:650: error: syntax error before "float"
nodave.h:654: error: syntax error before "int"
nodave.h:655: error: syntax error before "int"
nodave.h:656: error: syntax error before "int"
nodave.h:657: error: syntax error before "int"
nodave.h:658: error: syntax error before "int"
nodave.h:659: error: syntax error before "unsigned"
nodave.h:659: error: syntax error before "daveGetU32At"
nodave.h:663: error: syntax error before "unsigned"
nodave.h:663: error: syntax error before "davePut8"
nodave.h:664: error: syntax error before "unsigned"
nodave.h:664: error: syntax error before "davePut16"
nodave.h:665: error: syntax error before "unsigned"
nodave.h:665: error: syntax error before "davePut32"
nodave.h:666: error: syntax error before "unsigned"
nodave.h:666: error: syntax error before "davePutFloat"
nodave.h:667: error: syntax error before "unsigned"
nodave.h:667: error: syntax error before "davePutKG"
nodave.h:668: error: syntax error before "void"
nodave.h:669: error: syntax error before "void"
nodave.h:670: error: syntax error before "void"
nodave.h:671: error: syntax error before "void"
nodave.h:672: error: syntax error before "void"
nodave.h:679: error: syntax error before "float"
nodave.h:683: error: syntax error before "float"
nodave.h:687: error: syntax error before "int"
nodave.h:691: error: syntax error before "int"
nodave.h:696: error: syntax error before "void"
nodave.h:698: error: syntax error before "void"

nodave.h:700: error: syntax error before "void"
nodave.h:707: error: syntax error before "int"
nodave.h:712: error: syntax error before "int"
nodave.h:731: error: syntax error before "int"
nodave.h:749: error: syntax error before "int"
nodave.h:763: error: syntax error before "int"
nodave.h:778: error: syntax error before "int"
nodave.h:782: error: syntax error before "int"
nodave.h:783: error: syntax error before "int"
nodave.h:784: error: syntax error before "int"
nodave.h:785: error: syntax error before "int"
nodave.h:790: error: syntax error before "int"
nodave.h:791: error: syntax error before "int"
nodave.h:792: error: syntax error before "int"
nodave.h:793: error: syntax error before "int"
nodave.h:794: error: syntax error before "int"
nodave.h:798: error: syntax error before "int"
nodave.h:799: error: syntax error before "int"
nodave.h:800: error: syntax error before "int"
nodave.h:804: error: syntax error before "int"
nodave.h:805: error: syntax error before "int"
nodave.h:807: error: syntax error before "int"
nodave.h:824: error: syntax error before "void"
nodave.h:826: error: syntax error before "void"
nodave.h:828: error: syntax error before "int"
nodave.h:830: error: syntax error before "int"
nodave.h:832: error: syntax error before "void"
nodave.h:834: error: syntax error before "void"
nodave.h:837: error: syntax error before "void"
nodave.h:839: error: syntax error before "void"
nodave.h:841: error: syntax error before "void"
nodave.h:843: error: syntax error before "void"
nodave.h:844: error: syntax error before "int"
nodave.h:845: error: syntax error before "int"
nodave.h:846: error: syntax error before "int"
nodave.h:849: error: syntax error before "int"
nodave.h:850: error: syntax error before "int"
nodave.h:852: error: syntax error before "int"
nodave.h:853: error: syntax error before "int"
nodave.h:854: error: syntax error before "int"
nodave.h:856: error: syntax error before "int"
nodave.h:857: error: syntax error before "int"
nodave.h:859: error: syntax error before "int"
nodave.h:860: error: syntax error before "int"
nodave.h:861: error: syntax error before "int"
nodave.h:863: error: syntax error before "int"
nodave.h:873: error: syntax error before "int"
nodave.h:874: error: syntax error before "int"
nodave.h:875: error: syntax error before "int"
nodave.h:876: error: syntax error before "int"
nodave.h:877: error: syntax error before "int"
nodave.h:878: error: syntax error before "int"
nodave.h:879: error: syntax error before "int"
nodave.h:880: error: syntax error before "int"
nodave.h:882: error: syntax error before "int"
nodave.h:883: error: syntax error before "int"
nodave.h:884: error: syntax error before "int"
nodave.h:885: error: syntax error before "int"
nodave.h:886: error: syntax error before "int"
nodave.h:887: error: syntax error before "int"
nodave.h:888: error: syntax error before "int"
nodave.h:891: error: syntax error before "int"
nodave.h:892: error: syntax error before "int"
nodave.h:896: error: syntax error before "int"
nodave.h:897: error: syntax error before "void"
nodave.h:898: error: syntax error before "void"
nodave.h:899: error: syntax error before "void"
nodave.h:900: error: syntax error before "int"
nodave.h:901: error: syntax error before "int"
nodave.h:901: error: syntax error before "tmotype"

nodave.h:902: error: syntax error before "int"

nodave.h:903: error: syntax error before "int"

nodave.h:908: error: syntax error before "int"

nodave.h:909: error: syntax error before "void"
nodave.h:910: error: syntax error before "int"
nodave.h:911: error: syntax error before "int"
nodave.h:912: error: syntax error before "int"
nodave.h:913: error: syntax error before "int"
nodave.h:914: error: syntax error before "int"
nodave.h:915: error: syntax error before "int"
nodave.h:916: error: syntax error before "int"
nodave.h:917: error: syntax error before "int"
nodave.h:918: error: syntax error before "int"
nodave.h:919: error: syntax error before "int"
nodave.h:920: error: syntax error before "int"
nodave.h:928: error: syntax error before "int"
nodave.h:929: error: syntax error before "int"
nodave.h:937: error: syntax error before "void"
nodave.h:938: error: syntax error before "void"
nodave.h:939: error: syntax error before "void"
nodave.h:940: error: syntax error before "void"
nodave.h:941: error: syntax error before "void"
nodave.h:945: error: syntax error before "int"
nodave.h:946: error: syntax error before "int"
nodave.h:947: error: syntax error before "int"
nodave.h:948: error: syntax error before "void"
nodave.h:949: error: syntax error before "void"
nodave.h:950: error: syntax error before "int"
nodave.h:951: error: syntax error before "int"
nodave.h:952: error: syntax error before "int"
nodave.h:953: error: syntax error before "int"
nodave.h:954: error: syntax error before "int"
nodave.h:956: error: syntax error before "int"
nodave.h:957: error: syntax error before "int"
nodave.h:958: error: syntax error before "void"
nodave.h:959: error: syntax error before "int"
nodave.h:960: error: syntax error before "void"
nodave.h:961: error: syntax error before "int"
nodave.h:962: error: syntax error before "int"
nodave.h:963: error: syntax error before "int"
nodave.h:964: error: syntax error before "int"
nodave.h:969: error: syntax error before "void"
nodave.h:970: error: syntax error before "int"
nodave.h:971: error: syntax error before "char"
nodave.h:971: error: syntax error before "daveGetName"
nodave.h:973: error: syntax error before "int"
nodave.h:974: error: syntax error before "int"
nodave.h:975: error: syntax error before "int"
nodave.h:976: error: syntax error before "daveResultSet"
nodave.h:976: error: syntax error before "daveNewResultSet"
nodave.h:977: error: syntax error before "void"
nodave.h:978: error: syntax error before "PDU"
nodave.h:978: error: syntax error before "daveNewPDU"
nodave.h:979: error: syntax error before "int"
nodave.h:984: error: syntax error before "int"
nodave.h:988: error: syntax error before "int"
nodave.h:992: error: syntax error before "int"
nodave.h:999: error: syntax error before "int"
nodave.h:1003: error: syntax error before "int"
nodave.h:1007: error: syntax error before "int"
nodave.h:1011: error: syntax error before "unsigned"
nodave.h:1011: error: syntax error before "daveToBCD"
nodave.h:1012: error: syntax error before "unsigned"
nodave.h:1012: error: syntax error before "daveFromBCD"
nodave.h:1016: error: syntax error before "int"
nodave.h:1017: error: syntax error before "int"
nodave.h:1018: error: syntax error before "int"
nodave.h:1019: error: syntax error before "int"
nodave.h:1020: error: syntax error before "int"
nodave.h:1021: error: syntax error before "int"
nodave.h:1022: error: syntax error before "int"
nodave.h:1023: error: syntax error before "int"
nodave.h:1024: error: syntax error before "int"
nodave.h:1025: error: syntax error before "int"
nodave.h:1026: error: syntax error before "int"
nodave.h:1027: error: syntax error before "int"
nodave.h:1028: error: syntax error before "int"
nodave.h:1029: error: syntax error before "int"
nodave.h:1030: error: syntax error before "int"

nodave.h:1035: error: syntax error before "int"
nodave.h:1036: error: syntax error before "int"
nodave.h:1037: error: syntax error before "int"
nodave.h:1053: error: syntax error before '*' token
nodave.h:1054: error: syntax error before '*' token
nodave.h:1055: error: syntax error before '*' token
nodave.h:1056: error: syntax error before '*' token
nodave.h:1059: error: syntax error before '*' token
nodave.h:1069: error: syntax error before "SCP_close"
nodave.h:1070: error: syntax error before "SCP_send"
nodave.h:1071: error: syntax error before "SCP_receive"
nodave.h:1074: error: syntax error before "SCP_get_errno"
nodave.h:1106: error: syntax error before "int"
nodave.h:1107: error: syntax error before "int"
nodave.h:1108: error: syntax error before "int"

nodave.h:1109: error: syntax error before "int"
nodave.h:1110: error: syntax error before "int"
nodave.h:1111: error: syntax error before "int"
nodave.h:1112: error: syntax error before "int"
nodave.h:1113: error: syntax error before "int"
nodave.h:1115: error: syntax error before "int"
nodave.h:1116: error: syntax error before "int"
nodave.h:1118: error: syntax error before "int"
nodave.h:1119: error: syntax error before "int"
nodave.h:1120: error: syntax error before "int"
nodave.h:1121: error: syntax error before "int"
nodave.h:1122: error: syntax error before "int"
nodave.h:1123: error: syntax error before "int"
nodave.h:1124: error: syntax error before "int"
nodave.h:1125: error: syntax error before "int"
nodave.h:1126: error: syntax error before "int"

nodave.h:1127: error: syntax error before "int"
nodave.h:1128: error: syntax error before "int"
nodave.h:1129: error: syntax error before "int"

In file included from C:/Dev-Cpp/include/windef.h:246,
                 from C:/Dev-Cpp/include/windows.h:48,

                 from C:/Dev-Cpp/include/winsock2.h:22,
                 from openSocketw.c:48:
C:/Dev-Cpp/include/winnt.h:120: error: syntax error before "int"

openSocketw.c: In function `openSocket':
openSocketw.c:66: error: `FLUSH' undeclared (first use in this function)
openSocketw.c:66: error: (Each undeclared identifier is reported only once

openSocketw.c:66: error: for each function it appears in.)

gcc.exe: _[at][at]_-DBCCWIN: No such file or directory
gcc.exe: _[at][at]_-DDAVE_LITTLE_ENDIAN: No such file or directory
gcc.exe: _[at][at]_-TC: No such file or directory
gcc.exe: _[at][at]_-DDOEXPORT_[at][at]_: No such file or directory

make.exe: *** [openSocketw.o] Error 1

Execution terminated

Link al commento
Condividi su altri siti

Ciao

quello che ti avevo postato era per la versione 0.8.2, qui di seguito ti riporto il file di progetto che ho appena provato per la versione 0.8.4

[Project] 
FileName=libnodave.dev 
Name=libnodave 
UnitCount=6 
Type=3 
Ver=1 
ObjFiles= 
Includes= 
Libs= 
PrivateResource= 
ResourceIncludes= 
MakeIncludes= 
Compiler=-DBUILDING_DLL=1 _[at][at]_-DBCCWIN _[at][at]_-DLITTLE_ENDIAN _[at][at]_-TC _[at][at]_-DDOEXPORT_[at][at]_ 
CppCompiler=-DBUILDING_DLL=1_[at][at]_ 
Linker=--no-export-all-symbols _[at][at]_--add-stdcall-alias_[at][at]_-lws2_32_[at][at]_ 
IsCpp=0 
Icon= 
ExeOutput= 
ObjectOutput= 
OverrideOutput=0 
OverrideOutputName=libnodave.dll 
HostApplication= 
Folders= 
CommandLine= 
UseCustomMakefile=0 
CustomMakefile= 
IncludeVersionInfo=0 
SupportXPThemes=0 
CompilerSet=0 
CompilerSettings=0010000001001000000000 

[Unit1] 
FileName=nodave.h 
CompileCpp=0 
Folder=libnodave 
Compile=1 
Link=1 
Priority=1000 
OverrideBuildCmd=0 
BuildCmd= 

[Unit2] 
FileName=openSocket.h 
CompileCpp=0 
Folder=libnodave 
Compile=1 
Link=1 
Priority=1000 
OverrideBuildCmd=0 
BuildCmd= 

[Unit3] 
FileName=openSocketw.c 
CompileCpp=0 
Folder=libnodave 
Compile=1 
Link=1 
Priority=1000 
OverrideBuildCmd=0 
BuildCmd= 

[Unit4] 
FileName=setport.h 
CompileCpp=0 
Folder=libnodave 
Compile=1 
Link=1 
Priority=1000 
OverrideBuildCmd=0 
BuildCmd= 

[Unit5] 
FileName=setportw.c 
CompileCpp=0 
Folder=libnodave 
Compile=1 
Link=1 
Priority=1000 
OverrideBuildCmd=0 
BuildCmd= 

[Unit6] 
FileName=nodave.c 
CompileCpp=0 
Folder=libnodave 
Compile=1 
Link=1 
Priority=1000 
OverrideBuildCmd=0 
BuildCmd= 

[VersionInfo] 
Major=0 
Minor=1 
Release=1 
Build=1 
LanguageID=1033 
CharsetID=1252 
CompanyName= 
FileVersion= 
FileDescription= 
InternalName= 
LegalCopyright= 
LegalTrademarks= 
OriginalFilename= 
ProductName= 
ProductVersion= 
AutoIncBuildNr=0 

Ho appena compilato con successo, per quanto riguarda l'errore in lettura con cavo interrotto eseguirò un test domani a pranzo e poi ti faccio sapere

Ciao

BR1

Link al commento
Condividi su altri siti

ciao,

ho riprovato con le nuove impostazioni,ma ho ancora gli errori riportati.

Hai installato altri moduli oltre a quello base o modificato altre impostazioni ?

Sembra che non tutte le definizioni vengano trovate (manca un file .h ?)

Compiler: Default compiler
Building Makefile: "C:\Documents and Settings\Administrator\Desktop\libnodave-0.8.4\libnodave-0.8.4\Makefile.win"
Executing  make...
make.exe -f "C:\Documents and Settings\Administrator\Desktop\libnodave-0.8.4\libnodave-0.8.4\Makefile.win" all
gcc.exe -c openSocketw.c -o openSocketw.o -I"C:/Dev-Cpp/include"  -DBUILDING_DLL=1 _[at][at]_-DBCCWIN _[at][at]_-DLITTLE_ENDIAN _[at][at]_-TC _[at][at]_-DDOEXPORT_[at][at]_  -w -fexpensive-optimizations -O3

In file included from openSocketw.c:46:
nodave.h:106:2: error: #error Fill in what you need for your OS or API.
In file included from openSocketw.c:46:
nodave.h:249: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'char'

nodave.h:255: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
nodave.h:315: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
nodave.h:316: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
nodave.h:350: error: expected ')' before '*' token
nodave.h:351: error: expected ')' before '*' token
nodave.h:352: error: expected ')' before '*' token
nodave.h:353: error: expected ')' before '*' token
nodave.h:354: error: expected ')' before '*' token
nodave.h:355: error: expected ')' before '*' token
nodave.h:356: error: expected ')' before '*' token
nodave.h:357: error: expected ')' before '*' token
nodave.h:362: error: expected ')' before '*' token
nodave.h:363: error: expected ')' before '*' token
nodave.h:370: error: expected specifier-qualifier-list before 'tmotype'
nodave.h:396: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'daveInterface'
nodave.h:397: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'daveInterface'
nodave.h:488: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'daveConnection'
nodave.h:534: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
nodave.h:539: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
nodave.h:544: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
nodave.h:549: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
nodave.h:553: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
nodave.h:557: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
nodave.h:561: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
nodave.h:565: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
nodave.h:569: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
nodave.h:573: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'
nodave.h:583: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'void'
nodave.h:590: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'int'

... non riporto tutta la lista ...

In file included from C:/Dev-Cpp/include/windef.h:253,
                 from C:/Dev-Cpp/include/windows.h:48,

                 from C:/Dev-Cpp/include/winsock2.h:22,
                 from openSocketw.c:48:
C:/Dev-Cpp/include/winnt.h:148: error: expected identifier or '(' before 'int'

openSocketw.c: In function 'openSocket':
openSocketw.c:66: error: 'FLUSH' undeclared (first use in this function)
openSocketw.c:66: error: (Each undeclared identifier is reported only once

openSocketw.c:66: error: for each function it appears in.)

gcc.exe: _[at][at]_-DBCCWIN: No such file or directory
gcc.exe: _[at][at]_-DLITTLE_ENDIAN: No such file or directory
gcc.exe: _[at][at]_-TC: No such file or directory
gcc.exe: _[at][at]_-DDOEXPORT_[at][at]_: No such file or directory

make.exe: *** [openSocketw.o] Error 1

Execution terminated

Link al commento
Condividi su altri siti

Ho appena riprovato e mi funzione.

Io ho creato un file libnodave.dev (in cui devi incollare il contenuto del post precedente) quindi ho aperto il file come file di progetto.

Quando ricompilo tutto mi dà questo risultato:

Compilatore: Default compiler
Building Makefile: "G:\Users\Bruno\Sviluppo\libnodave-0.8.4\Makefile.win"
Esecuzione di  make clean
rm -f openSocketw.o setportw.o nodave.o  libnodave.dll

gcc.exe -c openSocketw.c -o openSocketw.o -I"C:/Dev-Cpp/include"  -DBUILDING_DLL=1  -DBCCWIN  -DLITTLE_ENDIAN  -TC  -DDOEXPORT   -w -fexpensive-optimizations -O3

gcc.exe -c setportw.c -o setportw.o -I"C:/Dev-Cpp/include"  -DBUILDING_DLL=1  -DBCCWIN  -DLITTLE_ENDIAN  -TC  -DDOEXPORT   -w -fexpensive-optimizations -O3

gcc.exe -c nodave.c -o nodave.o -I"C:/Dev-Cpp/include"  -DBUILDING_DLL=1  -DBCCWIN  -DLITTLE_ENDIAN  -TC  -DDOEXPORT   -w -fexpensive-optimizations -O3

dllwrap.exe --output-def liblibnodave.def --implib liblibnodave.a openSocketw.o setportw.o nodave.o  -L"C:/Dev-Cpp/lib" --no-export-all-symbols  --add-stdcall-alias -lws2_32   -o libnodave.dll

dllwrap.exe: no export definition file provided.
Creating one, but that may not be what you want

Esecuzione terminata
Compilazione terminata correttamente

Quando apro il progetto i file dello stesso sono:

nodave.c

nodave.h

openSocket.h

openSocketw.h

setport.h

setportw.c

Ho appena riprovato su un altro PC installando Dev-C++ con l'installazione di default in italiano e tutto è andato a buon fine.

Link al commento
Condividi su altri siti

Leggendo i tuoi errori sembra che non sia nemmeno definito il sistema operativo a livello compilatore, mi sa che il copia/incolla ha creato problemi.

Provo a mettere in allegato il mio file di progetto zippato.

Vediamo se il forum lo accetta :lol:

Link al commento
Condividi su altri siti

A questo punto stiamo rischiando di andare fuori argomento con la discussione.

Magari le prossime comunicazioni le facciamo su una discussione chiamata:

"Server libnodave"

o

"Utilizzo libnodave"

a presto

Link al commento
Condividi su altri siti

ok Bruno ci siamo.

Inizierò un nuovo argomento partendo dal progetto compilabile.

domani proverò ad inserire delle "trappole" per capire il problema dell'errore

di accesso.

Secondo me sarebbe giusto anche rendere disponibile la libreria completa

di file di progetto nell'area download.

La prossima settimana modificherò anche il server per la pubblicazione

nell'area download.

Link al commento
Condividi su altri siti

comunque anch'io sono contrario ai pacchetti come wincc, in passato

ho avuto molti problemi che ancora mi "perseguitano".

Inoltre il software della Siemens attualmente è soggetto a troppe

modifiche e service pack (incluso anche step 7).

Di contro il software libero come libnodave è generalmente di difficile

gestione da parte di persone non specializzate. Siemens e Microsoft fanno

leva proprio sulla semplicità d'installazione e utilizzo dei loro prodotti.

Link al commento
Condividi su altri siti

Crea un account o accedi per commentare

Devi essere un utente per poter lasciare un commento

Crea un account

Registrati per un nuovo account nella nostra comunità. è facile!

Registra un nuovo account

Accedi

Hai già un account? Accedi qui.

Accedi ora
×
×
  • Crea nuovo/a...