Can't set any Isolated Cores in local/virtual TwinCAT PLC

Viewed 979

For the past 3 years I have been using the TwinCAT IDE and local/virtual PLC without problems. I have a i7-8750H with 6 cores and 12 logical processors and I am using TwinCAT build 4022.20 Lately I am getting random Blue Screen of Death (BSoD). I got the advice to set an Isolated Core in the Real-Time section of the IDE, clicking on "Set on target" and decreasing the number of available CPU cores:

Set on target form

Then a restart is needed, The problem is that when I click on "Read from target" after restarting and reopening TwinCAT I got one less Windows core but no isolated core available:

Real-Time tab

I tried to run the "C:\TwinCAT\3.1\System\win8settick.bat". Also to reduce from 12 down to 7, with no success: one by one, in steps of 2 and 3, nothing seems to work.

I have tried also using the Msconfig tool to reduce the number of cores for Windows with the same result.

Error message

I can manually set the right number of CPUs for Windows and Isolated but when I try to run my application I got a message saying that my config doesn't match my target, if I dismiss I get an BSoD or my laptop freezes immediately.

Virtual Box Warning

VirtualBox is not running, so I am not sure why I get this message.

Any idea why TwinCAT can't see the isolated core?

3 Answers

In the newest version (Tc3.1.4024.17) there is a User MOde Runtime implemented. It is still in Beta, no realtime!!

But i tried it and it works with hypervisor and virtualization, got the recommendation from the Beckhoff Support. path

Use the "Start.bat" and select UmRT_Default as Target System for the PLC. Then you can activate the Configuration and go into Run.

Known Limitations: As it is still under development, not every function is supported (not working with NC, as i tested)

Biggest question is; what changed (that got you in to problems)?

Did you change Windows (for instance 32 bit W7->64 bit W10)? I found that with 64 bit Windows (10) TwinCAT (which is then also 64 bit) crashes some of the times when running on a non-isolated core.

Furthemore I found that below build somewhere in the twenties, TwinCAT 4022 has problems with recent (past 2 years) W10 versions. Please try 4022.32 (the latest and final 4022 version).

I have a i7-9850H and run the latest W10 64 bit and have 1 of my 12 threads running isolated. TwinCAT 4024.12 runs without problems on this isolated core.

Related