C-Bus Forums  

Go Back   C-Bus Forums > Logic Code Library > Community Logic Code Examples

The C-Bus Community Forums is place where C-Bus users can share information and help others with C-Bus. From time to time you will see Clipsal staff on the forums, but this is not an official support channel. If you really need help contact the official support services of Clipsal. More information about the purpose of this forum is available here.

Reply
 
Thread Tools Display Modes
  #1  
Old 20 Apr 09, 01:32 PM
Dave Byron Dave Byron is offline
Senior Member
 
Join Date: Aug 2004
Location: Byron Bay
Posts: 712
Default Schedule Start Times

Can I have some sample code that selects a schedule then gets the schedule name and schedule start time.
Can not find out how to do it from help file, some thing like this.

procedure xxxx;
begin
SetIntIBSystemIO("Schedule Number", 3);
S1name:= GetStringIBSystemIO("Schedule Name");
S1:= GetIntIBSystemIO("Schedule Start");
writeln('Name =',s1name,'s1 =',s1);
end;


tks
dave
Reply With Quote
  #2  
Old 20 Apr 09, 04:02 PM
Darren Darren is offline
Senior Member
 
Join Date: Jul 2004
Location: Adelaide, South Australia
Posts: 1,830
Default

You nearly had it right. Try this Dave:

Code:
SetIntIBSystemIO("Schedule Number", 3);
GetStringIBSystemIO("Schedule Name", S1name);
S1 := GetIntIBSystemIO("Schedule Time");
WriteLn('Name = ',s1name,', start =', s1);
__________________
Regards,

Darren
Reply With Quote
  #3  
Old 21 Apr 09, 07:05 AM
Dave Byron Dave Byron is offline
Senior Member
 
Join Date: Aug 2004
Location: Byron Bay
Posts: 712
Default

Tks Darren
So close, what I am doing is all the pumps, filters, underwater sound system etc have a start and stop schedules so the user can change them.

But if they come home between the start and stop times I what to start them up, and not hard code the times in the logic.
Now I can look at the schedule times and compare the current time with them.
dave
Reply With Quote
  #4  
Old 21 Apr 09, 09:13 AM
filpee's Avatar
filpee filpee is offline
Senior Member
 
Join Date: May 2006
Location: Western Australia
Posts: 192
Default

Quote:
Originally Posted by Dave Byron View Post
Tks Darren
So close, what I am doing is all the pumps, filters, underwater sound system etc have a start and stop schedules so the user can change them.

But if they come home between the start and stop times I what to start them up, and not hard code the times in the logic.
Now I can look at the schedule times and compare the current time with them.
dave
Is this on a touch screen or homegate? if so then why not just use systemIO's?
__________________
Perth Audio Visual Solutions
Reply With Quote
  #5  
Old 21 Apr 09, 10:25 AM
Dave Byron Dave Byron is offline
Senior Member
 
Join Date: Aug 2004
Location: Byron Bay
Posts: 712
Default

Filpee
Its for a touch screen and implement in the logic, can you show me how to do it in logic ??

tks
dave
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Schedule Plus re-establishing comm's Ian C-Touch/HomeGate/SchedulePlus/PICED 8 15 Sep 09 05:34 PM
schedule plus automatic startup joshl C-Touch/HomeGate/SchedulePlus/PICED 4 28 Jul 08 06:33 PM
Homegate V4.0 schedule times Dirk C-Touch/HomeGate/SchedulePlus/PICED 1 28 Jan 08 11:21 PM
Only turn on groups at certain times schedule? jako General Discussion 4 17 Jan 06 11:05 AM


All times are GMT +10.5. The time now is 11:13 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.