Specific time to trigger a channel
kenlok16
Posts: 11
Dear,
Could anyone tell me how to do the following or any keyword that I can search in the forum?
I have tried time, clock or trigger, but fail, thanks all!
1. From monday to friday, it trigger morning function at 9am, lunch function at 1pm and night function at 6
2. Sat and sunday it only trigger morning and lunch function
does it mean i need to get time and date from master? in channel event or in define program?
Could anyone tell me how to do the following or any keyword that I can search in the forum?
I have tried time, clock or trigger, but fail, thanks all!
1. From monday to friday, it trigger morning function at 9am, lunch function at 1pm and night function at 6
2. Sat and sunday it only trigger morning and lunch function
does it mean i need to get time and date from master? in channel event or in define program?
0
Comments
you can use the TIME command in Define Program to do something at a specific time:
note that you will want to put some other qualifyer in the if statement as the condition 09:00:00 will occur many times in define program depending on how fast teh define_program section is running.
There is the DAY command as well that will return the day of the week , but a better use would be the DAY_OF_WEEK command. That returns a number
I would also add a local var in the code below to keep that statement from executing more than once
I don't think that will work. I think you have to use compare_string.
Paul
I've used that since the dos days with no problem. The string handling will equat that to a true statement for as long as the clock is at 09:00:00. but you could use a compare as well. Never tried it.
Timeline - overall is it really that much more effecient. I thought timelines added a bt of overhead.
I also think there's a relatively small limiit to the number of timelines you can run simultaneiously. I think it's something like 15.
And also also, I think a simple comparison is easiest.
Here's what I'd do.
Really - I had not heard that before - is that documented somewhere that I have never read?
It should only trigger once.
I think I heard it in ProgIII (part deux) last summer. I don't remember for sure. My information is suspect at best. I jsut seem to remember the number thinking at the time, "Boy, I'd better be careful on how many timelines I may be running simultaneiously" and also thinking what would the result be of trying to run over the limit.
Maybe when I get to Prog III (Part tre') this summer I'll make a point to ask.
I never heard or read anything like that before either.
You said it, not me.
I just did a quick test with 100 simultaneous repeating timelines and I had no problems.
If there is a limit it appears to be way more than 15.
Well, there is definitely a limit of 4,294,967,295. This is because the ID is of type long.
Now, what if I need more that 4.295 billion timelimes????
Jeff