Join us today!

Running TwinCAT in ...
 
Notifications
Clear all

[Solved] Running TwinCAT in Virtual Machine

5 Posts
4 Users
6 Likes
5,317 Views
TwinControls
Posts: 71
Admin
Topic starter
(@beckhoffsupport)
Member
Joined: 2 years ago

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, 

twincat vm

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. 

read from target

Now we need to allocate at least one isolated core for TwinCAT. You can press Windows+R in Windows and type msconfig.

msconfig

On the following menu, select boot tab and click on Advanced options. 

boot

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.

processors

Do a restart. 

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'. 

isolated core

After activating the configuration, now we can see that TwinCAT runs in the VM! 

runMode

 

Reply
4 Replies
rruiter
Posts: 63
(@rruiter)
Estimable Member
Joined: 2 years ago
Reply
Posts: 2
 aed
(@aed)
New Member
Joined: 2 years ago

Has anyone tried to run Nodes via the ethernet card on the virtual server?

Reply
2 Replies
(@phill-wright)
Joined: 3 months ago

New Member
Posts: 2

@aed Do you mean connect an EtherCAT node, like an EK1100, to a locally targeted system in a virtual machine?

Reply
 aed
(@aed)
Joined: 2 years ago

New Member
Posts: 2

@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.

Reply
Share: