Jump to content

Schedule tasks with "to hour" to next day


selli69

Recommended Posts

Hello everyone!

I want to schedule a task, which starts at a specific time today and ends (maybe) tomorrow at a calculated time.

How do I achieve this? The schedule FB seems to work only when start and end are on the same day. Do I have to calc wether the off time is on another day and use a second schedule FB in this case? Or can I use a schedule FB with a end time earlier then start time?

Pls dont mention to simply try it, because I cant. Unfortunately, I have no PLC for trying right now.

Thanks forward!

 

Link to comment
Share on other sites

Hello Selli69,

Thank you for contacting Unitronics forum!

Unfortunately you'll have to configure both days with two seperate times.

For example if you want to start in Sunday 22:00 (PM) till Monday morning 3:00 (AM) you'll have to configure two times triggers:

1. Sunday, from 22:00 to 23:59.

2. Monday, from 00:00(AM) to 3:00.

 

There is another way if you want to use the RTC and compare function. for example:

Create a register for each timer section (HH,MM) 

1.Compare the HH to current RTC hours.

2. Compare the MM to current RTC minutes.

And if both are valid it will execute the system. 

 

 If you have any more question please send us an email to support@unitronics.com

Link to comment
Share on other sites

  • 3 months later...
On 1/23/2018 at 11:39 AM, NahumS said:

 

There is another way if you want to use the RTC and compare function. for example:

Create a register for each timer section (HH,MM) 

1.Compare the HH to current RTC hours.

2. Compare the MM to current RTC minutes.

And if both are valid it will execute the system. 

Hi

I would like to know how can we compare the date , i want to compare the current date with the right next one so once it doesn't equal, the program isn't executed 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...