Using systemIO

Discussion in 'Pascal Logic Code Examples' started by Trevor, Nov 18, 2025.

  1. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    488
    Likes Received:
    42
    Location:
    Melbourne Victoria
    Hi All,
    Back again with another logic conundrum.

    I'm trying the get "C-Bus State" from the Touchscreen logic using...
    GetBoolIBSystemIO("C-Bus State") = TRUE then

    Can't seem to get past this point.
    I'm just guessing here, but would that indicate if there is a connection to the C-Bus network IE FALSE = no connection, TRUE = good connection
    I'd like to put this together so it will turn on a group address indicator - Red or Green.
    I can then expand on the logic module from there, I hope.
     
    Trevor, Nov 18, 2025
    #1
  2. Trevor

    Ashley

    Joined:
    Dec 1, 2005
    Messages:
    1,586
    Likes Received:
    189
    Location:
    Adelaide, Australia
    So what's not working? Are you getting a compile or runtime error? Or is it always just returning false
     
    Ashley, Nov 19, 2025
    #2
  3. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    488
    Likes Received:
    42
    Location:
    Melbourne Victoria
    Hi Ashley,
    All good with this one now, see code below. just some minor touches to finish it off.
    Or should i change the way i do the delay to something else.

    Code:
     once GetBoolIBSystemIO("C-Bus State")Then
     begin
          Delay(5.0);
          setlightingstate(89, ON)
     end;
    once NOT GetBoolIBSystemIO("C-Bus State")Then
     begin
         Delay(5.0);
         setlightingstate(89, OFF)
     end;
     
    Trevor, Nov 19, 2025
    #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.