System IO Numbers

Discussion in 'C-Touch/HomeGate/SchedulePlus/PICED Software' started by tunkselectrical_ryan, Dec 8, 2008.

  1. tunkselectrical_ryan

    tunkselectrical_ryan

    Joined:
    Sep 23, 2008
    Messages:
    6
    Likes Received:
    0
    Location:
    Dromana
    I have a couple of logic modules which are activated off a system IO boolean going high. I set up the first two in the system IO then proceeded to write the code.
    The first module worked fine using (GetBoolSystemIO(1) = On), but when i used (GetBoolSystemIO(2) = On) it came up with an error. I added a dummy IO as number three, and now it works. Is there a logical (no pun intended) explaination for this, or is it a common bug?
     
    tunkselectrical_ryan, Dec 8, 2008
    #1
  2. tunkselectrical_ryan

    Darren Senior Member

    Joined:
    Jul 29, 2004
    Messages:
    2,361
    Likes Received:
    0
    Location:
    Adelaide, South Australia
    They are indexed from 0 (see the help file). To get the first one, use GetBoolSystemIO(0), or better still, use the system IO variable name.
     
    Darren, Dec 8, 2008
    #2
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.