Changing the default timeout page with logic

Discussion in 'Pascal Logic Code Examples' started by Trevor, Oct 18, 2021.

  1. Trevor

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    158
    Likes Received:
    5
    Location:
    Melbourne Victoria
    Hi All,
    A customer of mine asked me to update their project with the ability to turn the screen saver on or off.
    I have the code below that when running on a PC in simulation mode works perfectly, but when it is running on the touch screen it won't change the Time-out Page.
    There is a cbus button on the home page that is linked to Group 250, with text showing if the screen save is on or off.

    Any ideas would be appreciated.

    once (GetLightingState("Group 250") = Off) then begin
    SetIntIBSystemIO("Time-out Page", "Common");
    end;

    once (GetLightingState("Group 250") = On) then begin
    SetIntIBSystemIO("Time-out Page", "Screensaver");
    end;

    regards
    Trevor
     
    Trevor, Oct 18, 2021
    #1
    1. Advertisements

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.