vanecuci Posted August 11, 2014 Report Share Posted August 11, 2014 I want to trigger an action in a specific time of the day, that i would define. For that I want to use the schedule function. Can you explain how to use this function, because there is no info in the help files. Quote Link to comment Share on other sites More sharing options...
s.pratt Posted August 12, 2014 Report Share Posted August 12, 2014 Hello, Thank you for using our Unitronics Forum. For the schedule function in UniLogic, you will have to create a "Schedule" struct. Within the Schedule struct, you will be able to choose the start year, end year, month, day of month, day of week, start hour, and end hour you wish to have your process run. Please let us know if this helps. Quote Link to comment Share on other sites More sharing options...
vanecuci Posted August 12, 2014 Author Report Share Posted August 12, 2014 hi,I did that, but i does not work the way i want it. For example, I wan to be able to set a bit, every day in 12:00 AM. What should my input be in the schedule structure? Thanks Quote Link to comment Share on other sites More sharing options...
s.pratt Posted August 12, 2014 Report Share Posted August 12, 2014 Hello, I would make the "from hour" vector contain a 0 for the seconds, a 0 for the minutes, and a 0 for the hours. That would allow this schedule block to pass a output at 12:00AM. Then I would have a set coil after schedule block to set the bit you wish. In order for it to work again the next day at 12:00AM you must reset the bit and fill in the "to hour" vector. In the "to hour" vector, I could set it up to stop at 00:00:01 (12:00:01 AM) since you do not need any logic output from the block once you have set the bit you wanted. Please let us know if this helps. Quote Link to comment Share on other sites More sharing options...
vanecuci Posted August 13, 2014 Author Report Share Posted August 13, 2014 hi, it works wellThanks a lot Quote Link to comment Share on other sites More sharing options...
mudboy Posted April 9, 2016 Report Share Posted April 9, 2016 I am attempting to sort of the same thing with an alarm system. Lack of documentation has hindered me. I have four digital schedule element on the HMI. One is the time to activate on weekdays, one to deactivate weekdays, one to activate Saturday, and one to deactivate Saturday. I have tried multiple different ways to configure a schedule block on the ladder with none working as I want. Does a schedule block allow power through between the from hour to the to hour or does it give a pulse at each time to toggle a bit? How should I preset the days of the week each schedule block will run without any user input? Should I set the power up/initial value to 1 for each day? If years and months remain blank will the block run every month of every year? I want the "Armed" bit reset Monday through Friday at the time entered in digital schedule element for deactivate weekdays, set Monday - Friday at time set for activate weekdays, reset on Saturday at time for deactivate Saturday, and set Saturday at the time for activate Saturday. I also want to be able to toggle the "Armed" bit with a toggle coil. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.