mmessuri
Sorry if there is a simple answer to this problem but being so new to OpenPLC (just starting trying to use it this week), I am unable to solve it myself.
 
Anyway, I have installed OpenPLC Editor (using the latest code) and when I try to start the Blink example (or simulate any simple block of code, using both ST and LD language) when I click Start PLC Simulation I get a bunch of the following errors:

CRITICAL at 2024-10-24 <TIME>

PLC execution time is longer than requested PLC cyclic time interval. x cycles skipped

Where x is usually between the value of 1 and 3
 


For my VM I have set the numbers of CPUS to 8 and the amount of memory to 32GB (the host has plenty of CPUs to spare and 64GB of Memory) but that does not seem to help with the issue. Also, if I run the docker version (within WSL) I will get the same issue if I dont use the --cpus --mem flags (setting them at or above the pervious stated values).

I really would appreciate it if someone could help point me in the right direction for resolving this issue.

BTW: The host system is a Windows 10 system

Thanks
Reply 0 0
thiagoralves
It is hard to ensure VMs will have any predictable time response as they run on top of a host, and that by itself imposes some significant overhead for real time tasks. This is not about the number of resources you make available to your VM, but rather the overhead caused by virtualization. The only thing you can try is to increase the scan cycle time of your task on Res0 to give some breathing room for the VM. Any reason why you're not running this natively in your host Windows OS?
Reply 0 0
mmessuri
It is hard to ensure VMs will have any predictable time response as they run on top of a host, and that by itself imposes some significant overhead for real time tasks. This is not about the number of resources you make available to your VM, but rather the overhead caused by virtualization. The only thing you can try is to increase the scan cycle time of your task on Res0 to give some breathing room for the VM. Any reason why you're not running this natively in your host Windows OS?
Thanks for the quick response and I will give your suggestion a try. As for not running this on my host Windows OS, because of other tasking I do on my system I need to ensure isloation of tasks and programs
Reply 0 0
Reply