Jump to content

RTC


Mit Selihc

Recommended Posts

Is there such thing as a RTC based 'stop-start' function in Unistream?

 

I intend to have a simple way of controlling lights based on time.

 

So, say from 10:00am until 3:00pm, I want the lights to be true.

 

I know there is a similar function in Visilogic, I'm just getting to grips with Unistream, so it's taking me a while to update myself!

 

I guess another way could be to store the RTC time in a INT16 tag, and have a HMI entered numeric as your 'stop-start' condition. Then use a 'compare- Equals' FB to compare the RTC time and the user entered time.

 

In my thinking, this will provide a 'set' 'reset' condition for the light output.

 

Let me know your thoughts!

Link to comment
Share on other sites

Yes, absolutely!

 

There is a schedule function that can be found within the RTC toolbox menu. When a schedule data tag is set up it creates a struct for start/end times for the year, month, day of month, day of week, and starting & ending time (hour, minute, second). The schedule function block will then pass power when the RTC conditions are met from the tags within the struct.

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