Just write a file with your "software.exe" with for instance a timestamp in it.
Then read it back with codesys. If the timestamp is outdated, your process may not be running.
Be carefull at file sharing mode (your exe should share a read right and codesys should open it in read mode).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
Is there any function to check whether a process is running on my computer?
for instance, I'd like to know whether "mysoftware.exe" is running on my Windows.
Just write a file with your "software.exe" with for instance a timestamp in it.
Then read it back with codesys. If the timestamp is outdated, your process may not be running.
Be carefull at file sharing mode (your exe should share a read right and codesys should open it in read mode).