Home > Software engineering >  VB and S7-300 PLC communications
VB and S7-300 PLC communications

Time:09-19

I have now VB program under XP system can run normally, is called Prodave6. DLL, now want to change to the Windows 7 32 bit computer, can't run, compile error, can't find the project or library, don't know how to switch to 6.2 Prodave, wish you a great god give me advice, I am a VB small white, QQ 3196188956 I VB is small white, if you can help, don't appreciate,

CodePudding user response:

His first cap

CodePudding user response:

Suggestions on Windows 7 32 bit computer virtual machine (such as VMWare, VirtualBox, HyperV,... ) under WinXP,

CodePudding user response:

refer to the second floor zhao4zhong1 response:
advice on Windows 7 32 bit computer virtual machine (such as VMWare, VirtualBox, HyperV,... ) under WinXP,

Because too much trouble to modify

CodePudding user response:

reference qq_40012515 reply: 3/f
Quote: refer to the second floor zhao4zhong1 response:

Suggestions on Windows 7 32 bit computer virtual machine (such as VMWare, VirtualBox, HyperV,... ) under WinXP,

Because is too complicated to modify the

Practice in the industry,

CodePudding user response:

That is "third-party DLL"!
You want to put the DLL file in your project (debug runtime) in the directory and double-click the file open engineering,
Or put the DLL file system system32 directory,

CodePudding user response:

Can you take a look at your "properly" computer, its system32 directory or directory program, there must be some Prodave6. DLL this file,
You copy it into your Windows 7 computer!

CodePudding user response:

Prodave6. DLL is Windows system files, support Windows 7, you copy the original file on to the system directory:

C: \ Windows \ System (Windows 95/98/Me)
C: \ WINNT \ System32 (Windows NT/2000)
C: \ Windows \ System32 (Windows XP, Vista)
C: \ Windows \ System32 (Windows 7/8/2008 r2)
C: \ Windows \ SysWOW64 (Windows 7/8/2008 r2)

CodePudding user response:

refer to 6th floor Chen8013 response:
you see your "can correct operation" of the computer, its system32 directory or directory program, there must be some Prodave6. DLL this file,
You copy it into your Windows 7 computer!

Thank you for your help, but I put 6, the DLL, after the file is copied into the System32 run times "method was not found or data member", do you know why

CodePudding user response:

refer to 7th floor of123 response:
Prodave6. The DLL is Windows system files, support Windows 7, you copy the original file on to the system directory:

C: \ Windows \ System (Windows 95/98/Me)
C: \ WINNT \ System32 (Windows NT/2000)
C: \ Windows \ System32 (Windows XP, Vista)
C: \ Windows \ System32 (Windows 7/8/2008 r2)
C: \ Windows \ SysWOW64 (Windows 7/8/2008 r2)

To copy into the System32, but run times "compiler error, did not find a way or data members", don't know if it is to change the program

CodePudding user response:

Private Sub tmrTime_Timer ()
On the Error Resume Next
'tmrTime. Enabled=False
Dim S7_flag As Long
Timer_Counter=Timer_Counter + 1
PLC_mnl


If (Timer_Counter=1) Then
If (Read1_Power=True) Then
StaMessage. Panels (1). The Text="power table 1 read success!"
The Else
StaMessage. Panels (1). The Text="power table 1 read failure!"
End the If
End the If

If (Timer_Counter=2), Then the
If (Read2_Power=True) Then
StaMessage. Panels (1). The Text="power table 2 read success!"
The Else
StaMessage. Panels (1). The Text="power table 2 read failure!"
End the If
End the If


If (Timer_Counter=3) Then
If (Read3_Power=True) Then
StaMessage. Panels (1). The Text="power table 3 read success!"
The Else
StaMessage. Panels (1). The Text="power table 3 read failure!"
End the If

End the If

If (Timer_Counter=4) Then
If (Read4_Power=True) Then
StaMessage. Panels (1). The Text="power table 4 read success!"
The Else
StaMessage. Panels (1). The Text="power table 4 read failure!"
End the If
End the If


If (Timer_Counter=5) Then
If (Read5_Power=True) Then
StaMessage. Panels (1). The Text="power table 5 read success!"
The Else
StaMessage. Panels (1). The Text="power table 5 read failure!"
End the If
Timer_Counter=0
End the If


TmrTime. Interval=500
'tmrTime. Enabled=True
ReadAll
End Sub
Runtime first line Private Sub tmrTime_Timer () always yellow,,

CodePudding user response:

In a 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL

CodePudding user response:

11 references zhao4zhong1 response:
under the 64 - bit Windows:
64 exe and DLL in the directory c: \ Windows \ sys tem32 directory.
32 bit exe and DLL in the directory c: \ Windows \ sys wow64 directory.
So pay attention to:
In win64 system registered under 32-bit ocx DLL to 32 ocx or copy the DLL to the c: \ Windows \ syswow64 \ directory,
And registered to c: \ Windows \ syswow64 \ regsvr32 XXXXXXX ocx or DLL

Is a 32-bit Windows 7, only the System32 folder, miss zhao, you say me this is the need to change program, seems to know Prodave6.2 parameter values

CodePudding user response:

Under the virtual machine of the safest WinXP,
  • Related