Showing results 1 to 5 of 5

Thread: Change BOOL state with PopUp window

  1. #1
    Join Date
    03.09.2018
    Posts
    4

    Default Change BOOL state with PopUp window

    Hi guys, I only begin to learn Zenon and at the moment I need to change with PopUp window.
    I have some Switch and I want after click on them see PopUp with buttons (Turn on/turn off) and after click on this button change switch state.
    I create screen and when I create function ScreenSwitch, replace variable for screen to switchState variable, and it worked.
    But I have many switch's, so I need create function for each switch? Or there is another way?
    Thanks, and sorry for my English)
    Attached Thumbnails Attached Thumbnails Replace.png   PopUp.png  

  2. #2
    Join Date
    01.07.2008
    Location
    Salzburg, AT
    Posts
    809

    Default Re: Change BOOL state with PopUp window

    screen element property (combi-element, button) 'parameter for substitition' and in (single) screen switch function the tab 'Replace indices': the rule using {PARAM} to replace variables and functions on the popup screen

  3. #3
    Join Date
    01.07.2008
    Location
    Salzburg, AT
    Posts
    809

    Default Re: Change BOOL state with PopUp window

    Or Energy Edition with Command Processing module.

  4. #4
    Join Date
    03.09.2018
    Posts
    4

    Default Re: Change BOOL state with PopUp window

    Quote Originally Posted by ursulak View Post
    screen element property (combi-element, button) 'parameter for substitition' and in (single) screen switch function the tab 'Replace indices': the rule using {PARAM} to replace variables and functions on the popup screen
    Thanks, it's work. But I need to do more then 1 variable? May be PopUp can be control more then one parameter. How can I use the "parameter for substitition" for more then one variable?
    Thank you.

  5. #5
    Join Date
    01.07.2008
    Location
    Salzburg, AT
    Posts
    809

    Default Re: Change BOOL state with PopUp window

    rename variables - all variables which belongs together can have names with the same prefix, e.g. XXX_var_A, XXX_parameter3, etc. Then the {PARAM} will substitute this common prefix.
    note: a variable in zenon has not only a name but few more string properties to describe it. The name is first of all for engineering in Editor, so should make grouping, linking, substituting etc as easy as possible. For nice descriptions for users of the Runtime you can use other properties, e.g. Identification or Resource label.   

Similar Threads

  1. Timer on BOOL variable
    By EdgarsFeldmanis in forum zenon Supervisor
    Replies: 11
    Last Post: 10th March 2017, 08:36
  2. BOOL Variablen und Limits
    By horstd in forum VSTA
    Replies: 3
    Last Post: 24th September 2015, 07:25
  3. Popup in front of other popup
    By iweinclaerhout in forum zenon Supervisor
    Replies: 1
    Last Post: 13th January 2015, 07:46
  4. Popup window
    By cibertoni in forum VBA
    Replies: 4
    Last Post: 11th September 2014, 13:40
  5. Popup Window in Runtime
    By janlyndon in forum zenon Supervisor
    Replies: 1
    Last Post: 7th June 2010, 00:19

Tags for this Thread

Posting Rules

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