SneakyPeaky
Hi, I'm new here in the forum.
I currently have the problem that my OPENPLC runs on a USB stick but accesses the Arduino that is installed on the PC. On the USB stick there would be a portable arduino.exe that has all the necessary libraries already installed.
1. Would it be possible to reference the external Arduino.exe somewhere in an OPENPLC file?
2. My other question is why OpenPLC can only run on a USB stick if it is named as drive (D). I thought it was fully portable
I'm using Windows 11
Thanks for your help,

SneakyPeaky
Reply 0 0
thiagoralves
OpenPLC uses arduino-cli which in turn accesses your system’s arduino environment. If there isn’t one it creates one first. It won’t use any portable copy of the arduino environment.
 
As for portability, yes, OpenPLC is portable up to the first launch. If you launch it once it will create a Python environment (.venv) inside the Python folder. If you change the location of the editor, you must delete the .venv folder to force it to create a new one
Reply 0 0
SneakyPeaky
OpenPLC uses arduino-cli which in turn accesses your system’s arduino environment. If there isn’t one it creates one first. It won’t use any portable copy of the arduino environment.
 
As for portability, yes, OpenPLC is portable up to the first launch. If you launch it once it will create a Python environment (.venv) inside the Python folder. If you change the location of the editor, you must delete the .venv folder to force it to create a new one
Hello,
Thank you very much for your response. My OpenPLC folder runs now smoothly from a USB stick. However, I sometimes use a PC without the Arduino IDE installed, and I have no way to download the Arduino IDE on that PC. Therefore, I would like to integrate the necessary libraries onto the USB stick as well. Where should I place my libraries in the OpenPLC_editor folder so that they can be used by OpenPLC, or what would be the best way to do this?
I hope you understand my issue.
Thank you very much for your response.
Reply 0 0
thiagoralves
Reply 0 0
Reply