CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum by 3S-Smart Software Solutions GmbH | A member of the CODESYS Group
Deutsche Version English version russian version 
It is currently Mon May 20, 2019 5:27 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed Jun 08, 2016 1:14 pm 
Offline

Joined: Tue Feb 02, 2016 3:19 pm
Posts: 3
Hi,

the command "Execute Script file..." open a dialog box for choosing the PY file.

Is there a way to give a parameter to select a specific script file ?

So, i will able to add commands in a dedicated menu (each calling a different script).

Regards.


Top
   
PostPosted: Thu Jun 09, 2016 7:47 am 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 242
Hi rsprich.

rsprich wrote:
Hi,

the command "Execute Script file..." open a dialog box for choosing the PY file.

Is there a way to give a parameter to select a specific script file ?

So, i will able to add commands in a dedicated menu (each calling a different script).

Regards.

The command has one parameter for the path of the python script but you can't use "Customize..." to create your own entries with it. BUT in the upcoming release of CODESYS V3.5 SP9 we added a new feature which might suites your needs:

Quote:
The CODESYS base directory can contain a sub directory "ScriptDir" which will be searched for python scripts with the file extension ".py". The found python scripts can be executes through the new popup menu "Scripts" below the existing menu "Scripting".

You can use it by adding the new commands "A" ... "Z" and "..." from the ScriptEngine Commands to a new popup menu or any other place you want.
BR
Martin

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
PostPosted: Wed Jun 22, 2016 4:26 pm 
Offline

Joined: Tue Feb 02, 2016 3:19 pm
Posts: 3
Thank you for your answer. So, waiting for the SP9...


Top
   
PostPosted: Wed Jun 22, 2016 5:03 pm 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 242
Hi rsprich.

CODESYS V3.5 SP9 was released last week.

BR
Martin

_________________
Check out the CODESYS store: http://store.codesys.com/

CODESYS® a trademark of 3S-Smart Software Solutions GmbH
Inspiring Automation Solutions


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 4 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Limited