Showing results 1 to 5 of 5

Thread: Write to variable with "Save" button

  1. #1
    Join Date
    18.09.2012
    Posts
    13

    Cool Write to variable with "Save" button

    Dear community,

    I am looking for a way to enter a couple of numerical values manually (e.g. manually measured values).
    By pressing a "Save" button I would like to transfer each of them to an other variable which is linked to an spontaneous archive.
    Of course is would be possible to manually write to an archived variable, but when a user enters a wrong value (maybe 1990 instead of 199) and corrects the mistake, both values would be archived. On ETM or Report Viewer it looks terrible and Rate of Change calculations are influenced by that.

    What I did so far:
    For User input I am using an internal variable.
    For saving to an archive I am using a Math variable where calculation is only executed by variable trigger.
    Formular is just "X01" where X01 is the user input Variable.
    This trigger is linked to the "Save" switch. (I am using a switch instead of button)

    Problem: Math variable value is not remanent and goes back to 0 after runtime restart.

    Thanks in advance!!

  2. #2
    Join Date
    27.06.2011
    Posts
    96

    Default AW: Write to variable with "Save" button

    hello junior,

    have you considered recipes? You could create a recipe with all the variables you´re interested in. Then you can edit the values in the recipe and when you´re done you can write the recipes values to the variables to be stored in the archive.

    best regards,
    Alex

     

     

     


  3. #3
    Join Date
    18.09.2012
    Posts
    13

    Daumen hoch AW: Write to variable with "Save" button

    Hi Alex,

    That's a very good idea, I never worked with receipts so far.
    I'll check documentation if it fits my requirement.

    Is a license required for receipts?

  4. #4
    Join Date
    27.06.2011
    Posts
    96

    Default AW: Write to variable with "Save" button

    hi,

    there are two different kinds of recipes: standard recipes and recipe group manager. You´ll need to license the latter, but standard recipes are available with every zenon installation.

    regards

     

     

     


  5. #5
    Join Date
    18.09.2012
    Posts
    13

    Lächeln AW: Write to variable with "Save" button

    It works perfectly!

    Best would be to place the variables somewhere in the screen instead of using the receipt window table.
    It's very useful anyway.

    thanks!

Similar Threads

  1. RGM - VBA - ".Save" / ".Read" - change recipe status
    By markclemens in forum zenon Supervisor
    Replies: 12
    Last Post: 29th September 2014, 12:25
  2. Replies: 0
    Last Post: 5th July 2013, 13:35
  3. Replies: 2
    Last Post: 21st September 2012, 04:23
  4. Alarmmeldeliste Filter "nicht quittiert" ODER "anstehend"
    By scheweeric in forum zenon Supervisor
    Replies: 3
    Last Post: 31st July 2012, 15:20
  5. Neuer Button "Alle aktivieren" (Variablen)
    By maerz@staudinger-est.de in forum zenon Supervisor
    Replies: 1
    Last Post: 24th September 2008, 11:13

Posting Rules

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •