News:

SMF - Just Installed!

Main Menu

twincat 3

Started by baciocco, March 16, 2018, 01:15:11 AM

Previous topic - Next topic

baciocco

I get this error when I try to start virtualPLC

Le informazioni su come richiamare il debug JIT (Just-In-Time) anziché questa finestra
sono riportate in fondo al messaggio.

************** Testo dell'eccezione **************
System.IO.FileLoadException: Non è stato possibile caricare il file o l'assembly 'TwinCAT.Ads, Version=4.0.15.0, Culture=neutral, PublicKeyToken=180016cd49e5e8c3' o una delle relative dipendenze. La definizione di manifesto dell'assembly specificato non corrisponde al riferimento all'assembly. (Eccezione da HRESULT: 0x80131040)
Nome file: 'TwinCAT.Ads, Version=4.0.15.0, Culture=neutral, PublicKeyToken=180016cd49e5e8c3'
   in Nirtec.ExternalDriver.TwinCAT.Init()
   in Nirtec.PLCEngine.PLCEngine.()
   in Nirtec.PLCEngine.PLCEngine.Init()
   in VirtualPLC.CPUFrm.CPUFrm_Load(Object sender, EventArgs e)
   in System.Windows.Forms.Form.OnLoad(EventArgs e)
   in System.Windows.Forms.Form.OnCreateControl()
   in System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   in System.Windows.Forms.Control.CreateControl()
   in System.Windows.Forms.Control.WmShowWindow(Message& m)
   in System.Windows.Forms.Control.WndProc(Message& m)
   in System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   in System.Windows.Forms.Form.WmShowWindow(Message& m)
   in System.Windows.Forms.Form.WndProc(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   in System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   in System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

AVV: la registrazione dell'associazione di assembly è disattivata.
Per abilitare la registrazione degli errori di associazione di assembly, impostare il valore del Registro di sistema [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) su 1.
Nota: alcune penalità di prestazione sono associate alla registrazione degli errori di associazione di assembly.
Per disattivare la funzionalità, rimuovere il valore del Registro di sistema [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Assembly caricati **************
mscorlib
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2633.0 built by: NET471REL1LAST_C
    Base di codice: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
VirtualPLC
    Versione assembly: 1.5.1.0
    Versione Win32: 1.5.1.0
    Base di codice: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/VirtualPLC.exe
----------------------------------------
System
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2556.0 built by: NET471REL1
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2556.0 built by: NET471REL1
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2556.0 built by: NET471REL1
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
PLCEngine
    Versione assembly: 1.3.1.0
    Versione Win32: 1.3.1.0
    Base di codice: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/PLCEngine.DLL
----------------------------------------
InterCode
    Versione assembly: 2.0.0.0
    Versione Win32: 2.0.0.0
    Base di codice: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/InterCode.DLL
----------------------------------------
System.Configuration
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2556.0 built by: NET471REL1
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Core
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2633.0 built by: NET471REL1LAST_C
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System.Xml
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2612.0 built by: NET471REL1LAST_B
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Ionic.Zip
    Versione assembly: 1.8.4.28
    Versione Win32: 1.8.4.28
    Base di codice: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/Ionic.Zip.DLL
----------------------------------------
System.Runtime.Remoting
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2556.0 built by: NET471REL1
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Remoting/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------
ExternalDriver
    Versione assembly: 1.2.0.0
    Versione Win32: 1.2.0.0
    Base di codice: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/ExternalDriver.DLL
----------------------------------------
System.Management
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2556.0 built by: NET471REL1
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
MachinesSimulator
    Versione assembly: 1.4.0.0
    Versione Win32: 1.4.0.0
    Base di codice: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/Drivers/MachinesSimulator.dll
----------------------------------------
TwinCAT
    Versione assembly: 1.1.0.0
    Versione Win32: 1.1.0.0
    Base di codice: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/Drivers/TwinCAT.dll
----------------------------------------
System.Windows.Forms.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2556.0 built by: NET471REL1
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_it_b77a5c561934e089/System.Windows.Forms.resources.dll
----------------------------------------
mscorlib.resources
    Versione assembly: 4.0.0.0
    Versione Win32: 4.7.2556.0 built by: NET471REL1
    Base di codice: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_it_b77a5c561934e089/mscorlib.resources.dll
----------------------------------------

************** Debug JIT **************
Per abilitare il debug JIT, è necessario impostare il valore
jitDebugging nella sezione system.windows.forms del file di configurazione
dell'applicazione o del computer (machine.config).
L'applicazione inoltre deve essere compilata con il debug
abilitato.

Ad esempio:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Quando il debug JIT è abilitato, tutte le eccezioni non gestite
vengono inviate al debugger JIT registrato nel computer,
anziché essere gestite da questa finestra di dialogo.



EasyPLC_Master

What TwinCAT software version are you using?

baciocco


baciocco

another problem when you create a new project machine simulator interface program, when you check I / O device crashes, it seems to load the drive machine simulator 2 and not machine simulator 3
thank you

EasyPLC_Master

Hi!

I have updated the EasyPLC Installer to solve the reported bug, Thanks a lot! -> http://www.nirtec.com/index.php/downloads/

About the TwinCAT driver problem:

According with the information by Beckhoff regarding the communication library used in TwinCAT to third party softwares:

The TwinCAT.Ads DLL is a .NET class library, that provides classes to communicate with an ads device.  The class library is part of the TwinCAT AdsCommLib that can be found on the Beckhoff Supplement CD. After installing TwinCAT AdsCommLib the TwinCAT.Ads DLL for the .NET framework version 1.1(Microsoft Visual Studio 2003/Borland Developer Studio 2006) can be found in the directory  ..\TwinCAT\ADS Api\.NET\v1.1.4322. A version of the TwinCAT.Ads.dll for the .NET framework version 1.0(Microsoft Visual Studio 2002) can be found in the directory ..\TwinCAT\ADS Api\.NET\v1.0.3705.
The directory ..\TwinCAT\ADS Api\CompactFramework also contains a version for the .NET Compact Framework version 1.0 ( CE).


Then please, can you check the version of the file TwinCAT.Ads.dll installed in your copy of TwinCAT?, I'm affraid the problems is due this file.
The driver TwinCAT for EasyPLC, was compiled with the TwinCAT.Ads.dll library (see attached file).


baciocco

thanks

file version   1.0.0.18
dimension  108 kb
version 3.0.0.0

baciocco

I tried to re-install everything but it does not work

EasyPLC_Master

This is the TwinCat version I have tested: v.3.1.48 (see image)
Also have you followed this procedure in order to run the software?:

TwinCAT must be running before VirtualPLC.

1. TwinCAT in running mode.
2. VirtualPLC in Run Mode.

If you need to made modifications in TwinCAT logic program then:

1. Pass VirtualPLC to Stop Mode.
2. Stop TwinCAT simulation, and made the desired modifications.
3. Start TwinCAT simulaton.
4. Pass VirtualPLC to Run Mode.



baciocco

my version 3.1.4022
I tried in every way but it does not work

EasyPLC_Master

OK, I'll contact you!