Join us today!
[Solved] Running TwinCAT in Virtual Machine
When you are trying to run TwinCAT in a virtual machine and getting 'Setting TwinCAT in Run Mode on shared core(s) inside VMware (virtual machine) is not possible' error message after activating the configuration,
it is most likely because all the cores are dedicated to VM and there is no isolated core available for TwinCAT. You can check the cores by selecting Real Time and Read from target. As you see below, all of the cores are shared currently.
Now we need to allocate at least one isolated core for TwinCAT. You can press Windows+R in Windows and type msconfig.
On the following menu, select boot tab and click on Advanced options.
Select the processors check box and choose at least one less than the total processors that VM has to allocate isolated cores for TwinCAT. I selected 3 processors for this VM.
Do a restart.
Now you can start the TwinCAT and do a 'Read from target' again to check if there is any isolated core available. Select the isolated core for your task and click on 'Set on target'.
After activating the configuration, now we can see that TwinCAT runs in the VM!
In case you want to say thank you !)
We'd be very grateful if you could share this community with your colleagues and friends. You can also buy us a coffee to keep us fueled 😊 This is the best way to say thank you to this project and support your community.
twinControls - https://twincontrols.com/
Related: I recently wrote a tutorial on how to install TwinCAT/BSD in a virtual machine.
My blog: https://cookncode.com/twincat
My code: https://github.com/roald87
Has anyone tried to run Nodes via the ethernet card on the virtual server?
@aed Do you mean connect an EtherCAT node, like an EK1100, to a locally targeted system in a virtual machine?
@phill-wright yes that’s correct. We’re considering this in a larger perspective but haven’t had time to do any pre-testing as of yet. So curious about any relevant experience on the subject.
Greetings,
i have this error in a Twincat running on a VM (after following the tutorial above)
any idea how to fix?
Thank you in advance
- 17 Forums
- 267 Topics
- 924 Posts
- 0 Online
- 737 Members