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 Tue Feb 18, 2020 2:31 am

All times are UTC+01:00

Post new topic  Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Thu Apr 07, 2016 4:58 am 

Joined: Tue Apr 05, 2016 3:58 pm
Posts: 13
Is this possible w/ the r-Pi?

On another plc in CodeSys v3.1, I could configure task type = External, event = on_Start. But I don't have these options for the r-pi, v3.5.

Any way to do this? Is this a difference specific to ver 3.5 of CodeSys, or the r-Pi, or both?

PostPosted: Tue Jul 02, 2019 4:55 pm 

Joined: Mon Feb 18, 2019 1:18 pm
Posts: 16
Hello and sorry for gravedigging,

but I was just wondering the same(ish) thing:
Is there a way in Codesys 3.5 with the Pi Runtime to create tasks
that will only be called once during startup/shutdown of the PLC?

In my program I am opening a file in the local filesystem and
if I stop or logout the program with a file handle opened
it will raise an exception and I will have a bad time.

Therefore I was thinking that I could write a task which would
close any opened filehandles in order to shutdown gracefully.

Thanks in advance!

PostPosted: Wed Jul 03, 2019 4:34 am 
Frequent User
Frequent User

Joined: Thu Mar 17, 2016 1:24 pm
Posts: 209

Task Configuration - System Events - Add Event Handler - Select event (PrepareStart, PrepareShutdown, etc.) - enter name for new (not existing!) function - add implementation.

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

Make CODESYS great again

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 4 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