Showing results 1 to 3 of 3

Thread: Min and max set value from another varibale?

  1. #1
    Join Date
    01.02.2016
    Posts
    54

    Default Min and max set value from another varibale?

    Hi all.
    I made two buttons, 1st button INC, increments variable value named INDEX by 1. Also there is DEC button which decrements INDEX by -1.
    I would like to dynamicaly change max set value limit for Index variable.
    Sample.
    Max set value should be limited by value from variable MAX_INDEX.
    When user click on button INC the value Index increments untill it reached MAX_INDEX value.

    How to achieve this?

    BR,Miloš

  2. #2
    Join Date
    01.07.2008
    Location
    Salzburg, AT
    Posts
    1,031

    Default Re: Min and max set value from another varibale?

    you will need zenon Logic. or API.

  3. #3
    Join Date
    10.12.2007
    Posts
    269

    Default AW: Min and max set value from another varibale?

    ...or you create a boolean Math-Variable with Formula: INDEX >= MAX_INDEX and use this Math-Variable for the visibility of the INC Button (Visible from 0 to 0)
    (same for the DEC Button with MIN_INDEX)

    ...or use an Interlocking to lock the INC/DEC Buttons
    Last edited by mst : 11th August 2021 at 08:13 Reason: another idea

Similar Threads

  1. Reg: DPC Testing with varibale daignosis
    By saravanan1985 in forum zenon Energy Edition
    Replies: 1
    Last Post: 24th May 2018, 14:40

Posting Rules

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