Mit Selihc Posted June 15, 2015 Report Share Posted June 15, 2015 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 More sharing options...
Alexander Posted June 16, 2015 Report Share Posted June 16, 2015 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 More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now