thiagoralves
Hi all,

I'm just writing to let you guys know that I'm pushing new features to the OpenPLC Runtime that might be very interesting to you. Here is the list:

- Live Monitoring
I'm finally finishing the code to add support for live monitoring. On the runtime webpage you can now click on Monitoring to see the status of all your located variables. 
What still needs to be done: create the mechanism to force variables, add support for %MDx and %MLx

- EtherNet/IP
I just pushed a little EtherNet/IP Server. It is still on the first stages of development, so it cannot respond to queries just yet, but it will soon. If there are developers here interested in helping me, all the implementation is on the enip.cpp file. I'll add support for some common ENIP command codes in there (mostly the ones responsible to wrap PCCC commands) and then create all the PCCC support on pccc.cpp

- Persistent Storage
This comes disabled by default. To enable it, go to Settings -> enable Persistent Storage Thread. This mechanism backs up all memory located variables (%MWx) in a file, so that when OpenPLC Runtime is shut down and started again, all these variables are copied back to memory and the program can continue from where it stopped. You can also define the interval (in seconds) used by the thread to backup the memory contents. A too short interval may wear out your SD card if you're running OpenPLC in a Raspberry Pi, so beware.
Quote 1 0
gasin


- Persistent Storage
This comes disabled by default. To enable it, go to Settings -> enable Persistent Storage Thread. This mechanism backs up all memory located variables (%MWx) in a file, so that when OpenPLC Runtime is shut down and started again, all these variables are copied back to memory and the program can continue from where it stopped. You can also define the interval (in seconds) used by the thread to backup the memory contents. A too short interval may wear out your SD card if you're running OpenPLC in a Raspberry Pi, so beware.


If we set too short interval, This mean OPENPLC Runtime will write backup variable to SD card many time and it will reduce lifetime of sd card.

Is it correct?
Quote 0 0
thiagoralves
Precisely 
Quote 0 0
rodrigo_rolle
Hello, Thiago!
It seems weird, but after I rebased OpenPLC in order to get the newest version I coudn't open it anymore, neither via Runtime nor via Cygwin. I'm using Win7 x64. Has anyone else faced this problem?
No error ir displayed, but it starts and quickly closes. I have already checked and port 8080 is free.
Quote 0 0
thiagoralves
I modified some things on the core, and this might require the new installer. Just remove your current installation, download it again from the OpenPLC website and install as usual. 
Quote 1 0
plcopen
Can we retain coils(discrete) ?

Thank Thiagoralves.
Quote 0 0
rodrigo_rolle
I modified some things on the core, and this might require the new installer. Just remove your current installation, download it again from the OpenPLC website and install as usual. 


Worked fine. Thank you!
Quote 0 0
Davide Garbellini
Ho qualche problema con l'archiviazione persistente delle variabili %M (ho eseguito i test sul mio laptop con Ubuntu  18.04 and the persistent storage option setted on 10s):
1) with the same project, if I stop the runtime and restart it again, these variables are initialized to zero (in my opinion they should keep the last values, the same with the program updating with the persistent storage enabled, to allow software modifies without touch the application parameters(.
2) with the runtime started, if I restart my laptop (with automatic startup of the runtime), the runtime stats itself correctly but in the monitor page not appear the %M variables, only by stop and restart of the runtime they are showed again (initialized to zero).
I use OpenPLC Runtime V3 (recently downloaded from the site, but also the special register ML1024 seems not return the date and time, other problem on %M varisbles). 
Quote 0 0
thiagoralves
Can you post your program here? Keep in mind that only %MW variables are supported on persistent storage. Also %ML1024 returns epoch seconds, not date and time
Quote 0 0