CODESYS - the IEC 61131-3 automation software

Welcome to the official CODESYS Forum
Deutsche Version English version russian version 
It is currently Sat May 27, 2017 12:43 pm

All times are UTC+01:00




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Day event
PostPosted: Sun Apr 16, 2017 11:57 pm 
Offline

Joined: Thu Feb 23, 2017 5:07 pm
Posts: 32
Hi at all,
if I wanted to do one operation every day at the same time as I could make in LD?

Many thanks, Alberto


Top
   
 Post subject: Re: Day event
PostPosted: Mon Apr 17, 2017 6:12 am 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 1937
Hi,
there is already an example here: viewtopic.php?f=23&t=6247#p12396
a little more details, one option would be
you could use timer2 from Oscat building library.
Install these two OSCAT libs Basic and Building in CODESYS (->shopping cart and then install by clicking in the embedded browser in CODESYS - download - sure you need to login to the store)
Then use attached Project example (not LD but CFC should be reasonable or at least you could easily translate this to LD)

BR
Edwin


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


Top
   
 Post subject: Re: Day event
PostPosted: Mon Apr 17, 2017 11:19 am 
Offline

Joined: Thu Feb 23, 2017 5:07 pm
Posts: 32
Thanks for the info, but I do not know how to insert the timer 2 graphic in my ladder.
how can I do ?


Top
   
 Post subject: Re: Day event
PostPosted: Mon Apr 17, 2017 2:27 pm 
Offline

Joined: Thu Feb 23, 2017 5:07 pm
Posts: 32
I managed to implement the code in my project by copying and pasting what I needed.
Now I do not know how to connect the Q output of timer 2 to a contact of my ladder.
Can you tell me how can I do?

Thank you, Alberto


Top
   
 Post subject: Re: Day event
PostPosted: Mon Apr 17, 2017 2:39 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 1937
Hi,

BR
Edwin


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


Top
   
 Post subject: Re: Day event
PostPosted: Mon Apr 17, 2017 6:38 pm 
Offline

Joined: Thu Feb 23, 2017 5:07 pm
Posts: 32
many many thanks !!


Top
   
 Post subject: Re: Day event
PostPosted: Mon Apr 17, 2017 7:55 pm 
Offline

Joined: Thu Feb 23, 2017 5:07 pm
Posts: 32
it is normal that when you start the application on the active plc, timer2 the Q output even if the time is not the trigger?

alberto


Top
   
 Post subject: Re: Day event
PostPosted: Tue Apr 18, 2017 7:37 pm 
Offline
Site Admin

Joined: Mon Sep 05, 2005 9:42 am
Posts: 1937
Hi alberto,
guess yes, think this is 'as designed' - once a day you get this day event.. on first even if the time is already over
-> once a day - Q -> True.
Sure on the following days the time and Q does fit.
BR
Edwin


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 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