richw
Is there a way to copy function blocks from one project to another project, I don't want to have to recreate common function blocks I use in my projects. I was able to do this in version 3 of the editor simply by using copy and paste.
Reply 0 0
PeBi
I've had this problem before and solved it as follows:
Each project folder contains a subfolder named “pous.”
This folder contains further subfolders named “function-blocks,” “function,” and “programs.”
The “function-blocks” folder contains the function blocks for the project.
I then copied the desired function block from another project into this folder.
After opening the project, the function block is then available in the project.
I don't know if this is really the correct procedure.
It would be nice if OPENPLC had a feature for archiving function blocks and importing them into other projects.
 
[203128%2F9686141%2Fmceclip0]
 
[203128%2F9686142%2Fmceclip0]
 
[203128%2F9686143%2Fmceclip0]
Reply 0 0
thiagoralves
That is the easiest procedure to sure. OpenPLC will open whatever files are in the project folder, so just copying the file over is what it needs.
It would be nice if OPENPLC had a feature for archiving function blocks and importing them into other projects.
This is coming once we finish our library management feature
Reply 0 0
Reply