Running Soft PLC and Keeping It Always On

When you run Soft PLC through the terminal, it stays open as long as your terminal is open. During this time, you can stay online with the Focus HMI program. However, when you close your terminal, Soft PLC also shuts down and does not save your files. To solve this issue, there is a method to keep Soft PLC running continuously.
- Visit here to get information about installing Soft PLC on Raspberry Pi.
- Visit here to get information about installing Soft PLC on Orange Pi.

Keeping Soft PLC Always On
To keep Soft PLC running continuously, follow these steps:
- Run the SoftPLC.dll File with Screen Command:
sudo screen dotnet SoftPLC.dll
When you run this command in the terminal, Soft PLC will continue to run in the background even if you close the terminal.
Not:
If the “screen” command does not work, it means it is not installed on your device, and you need to install it. You can install it by running the following command:
sudo apt-get install screen
- Returning to the Terminal Interface:
If you want to return to the terminal interface and see the messages from Soft PLC, use the following command:
sudo screen -r
By following these steps, you can ensure that your Soft PLC runs uninterrupted, even when you close your terminal.