Writeable System Variables Anyone?

Discussion in 'Pascal Logic Code Examples' started by noyzey, Jan 24, 2022.

  1. noyzey

    noyzey

    Joined:
    Mar 24, 2010
    Messages:
    34
    Likes Received:
    1
    Location:
    Sunshine Coast, Australia
    Hi Guys

    Where can I find a list of which system variables are writeable? I have a script that works perfectly until the power is down, so I'd like to store a variable that survives a power reset of the Wiser Gateway/Controller.

    Thanks
     
    noyzey, Jan 24, 2022
    #1
  2. noyzey

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    291
    Likes Received:
    22
    Location:
    Melbourne Victoria
    Hi,
    Start the logic engine from PICED, open the help file and search on logic engine.
    from the selection go to in-built System Input/Output (IO) Variables

    You could also look at read and write to/from files to save data you need after a power fail.

    Regards Trevor
     
    Trevor, Jan 25, 2022
    #2
  3. noyzey

    noyzey

    Joined:
    Mar 24, 2010
    Messages:
    34
    Likes Received:
    1
    Location:
    Sunshine Coast, Australia
    Thanks Trevor. Working with this now.
     
    noyzey, Jan 25, 2022
    #3
  4. noyzey

    Trevor

    Joined:
    Nov 22, 2018
    Messages:
    291
    Likes Received:
    22
    Location:
    Melbourne Victoria
    No worries,
    Let me know how you get on, post some code for others to use.
    regards
    Trevor
     
    Trevor, Jan 27, 2022
    #4
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.