Good day,
I am receiving the following Message: PLCSim connection ERROR, code: -2147220991 even though PLCSim is running before I launch EasyPLC.
Anyone else is having the same issue?
I updated to latest EasyPLC, and latest MachSim, and now I get this error when going to the S7_PLCSim hardware on easyPLC. Is there an update to S7PLCSim driver, now is not even on my Hardware devices options?
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.TypeLoadException: Method 'DigitalInputDesc' in type 'Nirtec.ExternalDriver.SimaticS7_PLCSIM' from assembly 'SimaticS7_PLCSIM, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' does not have an implementation.
at System.Reflection.RuntimeAssembly.GetType(RuntimeAssembly assembly, String name, Boolean throwOnError, Boolean ignoreCase, ObjectHandleOnStack type)
at System.Reflection.RuntimeAssembly.GetType(String name, Boolean throwOnError, Boolean ignoreCase)
at System.Reflection.Assembly.GetType(String name)
at ?.(TreeNode )
at EasyPLC.MainForm.(Object , TreeNodeMouseClickEventArgs )
at System.Windows.Forms.TreeNodeMouseClickEventHandler.Invoke(Object sender, TreeNodeMouseClickEventArgs e)
at System.Windows.Forms.TreeView.OnNodeMouseClick(TreeNodeMouseClickEventArgs e)
at System.Windows.Forms.TreeView.WmNotify(Message& m)
at System.Windows.Forms.TreeView.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
************** Loaded Assemblies **************
mscorlib
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v4.0.30319/mscorlib.dll
----------------------------------------
EasyPLC
Assembly Version: 5.8.2.1
Win32 Version: 5.8.2.1
CodeBase: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/EasyPLC.exe
----------------------------------------
System.Core
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
----------------------------------------
System
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
InterCode
Assembly Version: 2.0.0.0
Win32 Version: 2.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/InterCode.DLL
----------------------------------------
Ionic.Zip
Assembly Version: 1.8.4.28
Win32 Version: 1.8.4.28
CodeBase: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/Ionic.Zip.DLL
----------------------------------------
System.Management
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Management/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
Nirtec.Docking
Assembly Version: 0.0.0.0
Win32 Version: 0.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/Nirtec.Docking.DLL
----------------------------------------
System.Configuration
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 4.0.0.0
Win32 Version: 4.6.1055.0 built by: NETFXREL2
CodeBase: file:///C:/WINDOWS/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
Nirtec.ScriptControl
Assembly Version: 1.0.4280.24783
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/Nirtec.ScriptControl.DLL
----------------------------------------
PLCEngine
Assembly Version: 1.3.0.0
Win32 Version: 1.3.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/PLCEngine.DLL
----------------------------------------
ExternalDriver
Assembly Version: 1.2.0.0
Win32 Version: 1.2.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/ExternalDriver.DLL
----------------------------------------
SimaticS7_PLCSIM
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Program%20Files%20(x86)/EasyPLC%20v5/Drivers/SimaticS7_PLCSIM.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Indeed, from EasyPLC version 5.7 all the drivers have been updated due the upgrade to the .NET 4 framework.
Then EasyPLC from version 5.7, do not work with previous drivers.
Ok so it is best to just stay on 5.7, I didn't see any emails on Step7PLCSim driver so I assume is not out yet.
I think I remember there was a discussion a while back about a new step7PLC driver.
Saludos!