Jochen Kühner
Level-3
- Beiträge
- 4.306
- Reaktionspunkte
- 531
Ich nehm mal an, dass die library nur für C/++ Anwendungen vorgesehen ist, richtig?
Gibt es auch eine entsprechende 64 Bit version für .NET anwendungen?
Bräuchte eine 64Bit Version für ein Projekt in Vb.net
Stehe vor dem selben problem.
Mein 64Bit System bringt den Fehler BadImageException bei lidnodave.openSocket();
Kann die 64bit.dll von Herrn Kühner auch nicht einbinden. Schade
Hallo,
habe mit Umstellung auf VS2013 erstmals versucht ne 64er App zu schreiben ... krieg jetzt aber beim Erstellen eines Verweises im Projekt die Fehlermeldung, dass die libnodave_jfkmods (32er und 64er) keine gültige COMs oder Assemblies Komponenten sind.
Danke für Eure Anschubhilfe.
Hallo Jochen,
erstmal Danke für Deine coole Toolbox samt Unterstützung.
Steh auf dem Schlauch: Unter WinXP funktioniert die S7DLL Verbindung, Auswahl der PG/PC Schnittstelle funktioniert.
Gleiches PG mit Win7/64 funktioniert nicht.
Hast Du nen Tip?
Danke und GrussAnhang anzeigen 23843Anhang anzeigen 23844
Eugen
Ich habe mir die libnodave_jfkmod64.dll von hier heruntergeladen und versuche nun, unter Windows 7 Professional 64-Bit mit Excel 14.0 (64-Bit) Daten aus S7-300 via Ethernet auszulesen.So, falls jemand libnodave als 64 Bit Version braucht, in meiner ConnectionLibrary ist nun eine funktionierende Version mit drin (http://siemensplctoolboxlib.codeplex.com/)
#If Win64 Then [COLOR="#006400"]'*** Declarations for Excel 64-Bit with Libnodave 64-Bit[/COLOR]
Private Declare PtrSafe Function openSocket Lib "libnodave_jfkmod64.dll" (ByVal port As Long, ByVal peer As String) As LongPtr
Private Declare PtrSafe Function daveNewInterface Lib "libnodave_jfkmod64.dll" (ByVal fd1 As LongPtr, ByVal fd2 As LongPtr, ByVal name As String, ByVal localMPI As Long, ByVal protocol As Long, ByVal speed As Long) As LongPtr
Private Declare PtrSafe Function daveInitAdapter Lib "libnodave_jfkmod64.dll" (ByVal di As LongPtr) As Long
Private Declare PtrSafe Function daveNewConnection Lib "libnodave_jfkmod64.dll" (ByVal di As LongPtr, ByVal mpi As Long, ByVal Rack As Long, ByVal slot As Long) As LongPtr
Private Declare PtrSafe Function daveConnectPLC Lib "libnodave_jfkmod64.dll" (ByVal dc As LongPtr) As Long
'...
#Else [COLOR="#006400"]'Not Win64 *** Declarations for Excel 32-Bit with Libnodave 32-Bit[/COLOR]
'...
#End If
Sub readFromFAFM()
Dim ph As LongPtr, di As LongPtr, dc As LongPtr
'...
Call daveSetDebug(daveDebugAll)
Peer$ = "192.168.196.196"
ph = openSocket(102, Peer$)
If (ph > 0) Then
IFname$ = "IF1"
[COLOR="#FF0000"]di = daveNewInterface(ph, ph, IFname$, 0, daveProtoISOTCP, daveSpeed187k)[/COLOR]
res = daveInitAdapter(di)
If res = 0 Then
dc = daveNewConnection(di, MpiPpi, Rack, Slot)
res = daveConnectPLC(dc)
Microsoft Excel funktioniert nicht mehr
Problemsignatur:
Problemereignisname: APPCRASH
Anwendungsname: EXCEL.EXE
Anwendungsversion: 14.0.7160.5000
Anwendungszeitstempel: 55fc2723
Fehlermodulname: libnodave_jfkmod64.dll
Fehlermodulversion: 0.0.0.0
Fehlermodulzeitstempel: 5318b692
Ausnahmecode: c0000005
Ausnahmeoffset: 000000000001aeb0
Betriebsystemversion: 6.1.7601.2.1.0.256.48
Gebietsschema-ID: 1031
Hallo Jochen,Warum gibts den ersten Parameter "ph" 2 mal???
Private Declare Function daveNewInterface Lib "libnodave.dll" (ByVal fd1 As Long, ByVal fd2 As Long, ByVal name As String, ByVal localMPI As Long, ByVal protocol As Long, ByVal speed As Long) As Long
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?