Dear forum experts!
How can I create a function block in a specific folder?
Not working example:
proj = project.primary found = proj.find("Application", true) app = found[0] myfolder = app.create_folder("Myfolder") myfolder.create_pou("mypou")
Regards, Victor
Hi.
Your code had one syntax error and two Scripting error.
Here is a working example:
proj = projects.primary found = proj.find("Application", True) app = found[0] app.create_folder("Myfolder") found = app.find("Myfolder") myfolder = found[0] myfolder.create_pou("mypou")
BR Martin
Hi, Martin!
Many thanks for your help!
Log in to post a comment.
Dear forum experts!
How can I create a function block in a specific folder?
Not working example:
Regards, Victor
Hi.
Your code had one syntax error and two Scripting error.
Here is a working example:
BR
Martin
Hi, Martin!
Many thanks for your help!
Regards,
Victor