System IO Nudging

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by ColinCamSmith, Dec 17, 2009.

  1. ColinCamSmith

    ColinCamSmith

    Joined:
    Nov 25, 2004
    Messages:
    87
    Likes Received:
    0
    Is there a way in the Logic to Increase or Decrease the value of a system IO. I understand how to do it with a Button use nudge up and nudge down, but just wondering how it would be done in the code.
    Code:
    once (GetCBusState("Local Network", "Pumps & Lights", "Test Control") = ON) then
    begin
    //(This is where i want to decrease the system IO by 1 understand i can set it to what ever number i want but how to decrease it)
      SetIntSystemIO("Floor Heat Days Select",1);
    end;
     
    ColinCamSmith, Dec 17, 2009
    #1
  2. ColinCamSmith

    NickD Moderator

    Joined:
    Nov 1, 2004
    Messages:
    1,427
    Likes Received:
    64
    Location:
    Adelaide
    Unless I'm misunderstanding your question.... it's very simple.. :)

    Code:
    once (GetCBusState("Local Network", "Pumps & Lights", "Test Control") = ON) then
    begin
      SetIntSystemIO("Floor Heat Days Select", GetIntSystemIO("Floor Heat Days Select") - 1);
    end;
    
    Is that what you were after?

    Nick
     
    NickD, Dec 17, 2009
    #2
  3. ColinCamSmith

    ColinCamSmith

    Joined:
    Nov 25, 2004
    Messages:
    87
    Likes Received:
    0
    Thanks Nick thats what i was after.
     
    ColinCamSmith, Dec 18, 2009
    #3
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.