TwinCAT 3.1 Run Mode Error (Hyper-V)

Zuviel Werbung?
-> Hier kostenlos registrieren
Hat jemand das Thema inzwischen lösen können oder geht die TwinCAT Runtime einfach nicht auf Windows 11 Systemen?
...
Nach einigem Rumprobieren habe ich die Runtime nun zum laufen gebracht.
1718635417317.png
Meine Umgebung ist:
- TwinCAT 3.1.4024.56
- Betriebsystemname: Microsoft Windows 11 Enterprise - Version 10.0.22631 Build 22631

Meine Einstellungen sind:
- Hyper Threading ist aus (Nicht sicher, ob das relevant ist. Bin aber zu faul nochmal zur IT zu gehen, um es wieder zu aktivieren)
- HyperV Feature muss aus sein + VM-Plattform Feature muss aus sein
1718635588654.png
- DeviceGuard Gruppenrichtlinie war bei mir egal. kann auch aktiviert sein.
1718636117328.png
- Speicherintegrität ist bei mir deaktiviert. (Sie lässt sich aktuell auch nicht mehr aktivieren)
1718635875873.png
 
Zuletzt bearbeitet:
Ich hatte es damals über BIOS Einstellungen gelöst. Da gab es beim Lenovo Laptop 1 Einstellung mit 2 Unterpunkten. Die beiden Unterpunkte waren, glaube ich, VT-x und VT-d.
Habe alles deaktiviert und danach lief TwinCAT.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Ich hatte es damals über BIOS Einstellungen gelöst. Da gab es beim Lenovo Laptop 1 Einstellung mit 2 Unterpunkten. Die beiden Unterpunkte waren, glaube ich, VT-x und VT-d.
Habe alles deaktiviert und danach lief TwinCAT.
Das überrascht mich jetzt aber, weil mindestens eins von beiden wird, meine ich, von der XAR benötigt, Hyper-V ist da das Problem.
 
Hmm. Es könnte auch sein, dass ich da jetzt was durcheinander werfe.
Habe auch keinen Zugriff mehr auf das Gerät.
 
If you have tried every thing and still have the problem, it is very likely that you are using a company laptop with active Antivirous.

The runtime does not work with Active antivirus and you should wether deactivate it, or use a virtual machine.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
If you have tried every thing and still have the problem, it is very likely that you are using a company laptop with active Antivirous.

The runtime does not work with Active antivirus and you should wether deactivate it, or use a virtual machine.
 
If you have tried every thing and still have the problem, it is very likely that you are using a company laptop with active Antivirous.

The runtime does not work with Active antivirus and you should wether deactivate it, or use a virtual machine.
That is not completely correct. I'm using a VM with Anti Virus and my runtime is working. OK the AV might affect the Realtime behavior.
 
That is not completely correct. I'm using a VM with Anti Virus and my runtime is working. OK the AV might affect the Realtime behavior.
I have tried everything to fix this problem on my company's laptop without any result. and I was told by Beckhoff support that it is because of your company AV that does not let runtime to run. and they were correct, after deactivating the AV during Installation and running runtime, finally it was fixed.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
I have tried everything to fix this problem on my company's laptop without any result. and I was told by Beckhoff support that it is because of your company AV that does not let runtime to run. and they were correct, after deactivating the AV during Installation and running runtime, finally it was fixed.
OK, I might have written my answer a little bit misunderstandable.
The AV isn't the cause in general, that the runtime doesn't work, but it could be of course the cause.
 
Zuletzt bearbeitet:
We are running MS Defender without any issues - also on productive IPCs / Embedded PCs.

MS Defender is currently the AV software that Beckhoff has tested extensively and they found no problems. There is no general approval for MS Defender, but as said, we have no problem with it in a productive environment.
 
Zuviel Werbung?
-> Hier kostenlos registrieren
Hat jemand das Thema inzwischen lösen können oder geht die TwinCAT Runtime einfach nicht auf Windows 11 Systemen?
...
Nach einigem Rumprobieren habe ich die Runtime nun zum laufen gebracht.
Anhang anzeigen 79008
Meine Umgebung ist:
- TwinCAT 3.1.4024.56
- Betriebsystemname: Microsoft Windows 11 Enterprise - Version 10.0.22631 Build 22631

Meine Einstellungen sind:
- Hyper Threading ist aus (Nicht sicher, ob das relevant ist. Bin aber zu faul nochmal zur IT zu gehen, um es wieder zu aktivieren)
- HyperV Feature muss aus sein + VM-Plattform Feature muss aus sein
Anhang anzeigen 79009
- DeviceGuard Gruppenrichtlinie war bei mir egal. kann auch aktiviert sein.
Anhang anzeigen 79011
- Speicherintegrität ist bei mir deaktiviert. (Sie lässt sich aktuell auch nicht mehr aktivieren)
Anhang anzeigen 79010
Bei moderneren CPUs muss zusätzlich der Firmware Schutz ausgeschaltet werden.
1738143646182.png
 

Anhänge

  • 1738143827079.png
    1738143827079.png
    84,2 KB · Aufrufe: 3
Hatte auf meinem neuen Thinkpad (AMD Ryzen 7 CPU) auch das Problem, dass ich die XAR nicht an's laufen bekam. Manche Versuche führten sogar zu so heftigen Systemabstürzen, dass ich die Geräte-Recovery ausführen musste.

Ausschalten vieler Windows Sicherheitsmechanismen damit XAR läuft, ist für viele keine ideale Option.

Was bei mir auf dem Gerät super klappte und zudem keine Kern-Isolierung erfordert, ist das Ausführen von TcBSD in einer Virtualbbox-Maschine. Habe mich dabei auf die Anweisungen von Jacob (AllTwinCAT) gestützt, siehe nachfolgender Link. Eine alternative Beschreibung (von mir nicht getestet) findet sich darunter.

andere Beschreibung:

Schön ist, dass in der TcBsD Runtime innerhalb Virtualbox nebst XAR auch der TcHMI Server funktioniert.
 
Wahrscheinlich sollte man dann doch die Usermode runtime verwenden. Die ist zwar nicht Echtzeit-fähig aber zum debuggen reicht es.
 
Zurück
Oben