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 11:16 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Restart/Reset a task
PostPosted: Fri May 19, 2017 11:30 am 
Offline

Joined: Fri Apr 21, 2017 1:33 pm
Posts: 9
Is there a way to reset a task from another task?

In one Task i have an SFC Program running. Now i would like to to stop its action from another task (by changing the status tag) and set the task back to the beginning, so that the next time i start the task it starts again from the first command of the SFC and not where it stopped before.

Any idea?


Top
   
 Post subject: Re: Restart/Reset a task
PostPosted: Fri May 19, 2017 12:29 pm 
Offline
Frequent User
Frequent User

Joined: Wed May 04, 2016 6:00 pm
Posts: 105
Hi

You have sfc_init bool bariable which reinit sfc and take it to inis step.

Possibly Restarting task (that i don t know if you can do) not reinit grafcet.


Top
   
 Post subject: Re: Restart/Reset a task
PostPosted: Sat May 20, 2017 5:52 pm 
Offline

Joined: Fri Apr 21, 2017 1:33 pm
Posts: 9
cool. thanks!


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

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 5 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