CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sun May 28, 2017 9:39 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Mon Sep 19, 2016 8:00 am 
Offline

Joined: Mon Oct 20, 2014 7:05 am
Posts: 6
Hi support team,

is it possible to add a POU (e.g. prg_myCalls) call via python script to a dadicated task "task03" within the task configuration?

Thanks in advance.
_


Top
   
PostPosted: Mon Sep 19, 2016 9:50 am 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 192
Hi DBaur.

DBaur wrote:
Hi support team,

is it possible to add a POU (e.g. prg_myCalls) call via python script to a dadicated task "task03" within the task configuration?

Thanks in advance.
_

There is no Scripting API for creating and manipulating the task configuration at the moment, but it is already listed in our Jira tracker CDS-34234. It is requested for CODESYS V3.5 SP10 so maybe it will be released with the SP10 release.

If you really need it now, you could export the task configuration with PLCopenXML, change the configuration in the XML and import it.

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: Thu May 04, 2017 7:39 am 
Offline

Joined: Wed Aug 12, 2015 12:16 pm
Posts: 10
M.Keller wrote:
Hi DBaur.

DBaur wrote:
Hi support team,

is it possible to add a POU (e.g. prg_myCalls) call via python script to a dadicated task "task03" within the task configuration?

Thanks in advance.
_

There is no Scripting API for creating and manipulating the task configuration at the moment, but it is already listed in our Jira tracker CDS-34234. It is requested for CODESYS V3.5 SP10 so maybe it will be released with the SP10 release.

If you really need it now, you could export the task configuration with PLCopenXML, change the configuration in the XML and import it.

BR
Martin


In the JIRA ticket the resolution is fixed for SP 10, but i can't find anything in the online help. Could you provide me an example for adding and manipulating tasks ?


Top
   
PostPosted: Thu May 04, 2017 10:05 am 
Offline
Frequent User
Frequent User

Joined: Tue Nov 13, 2012 9:20 am
Posts: 192
Hi PLKM.

PLKM wrote:
In the JIRA ticket the resolution is fixed for SP 10, but i can't find anything in the online help. Could you provide me an example for adding and manipulating tasks ?

It seems the Scripting API documentation was not updated.

I attached an example which prints the tasks of the application "Application" and create a set of task below the application "App" which has no task configuration. See screenshot.

BR
Martin


You do not have the required permissions to view the files attached to this post.

_________________
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