Showing results 1 to 2 of 2

Thread: How to trigger a function when a variable changed?

  1. #1
    denver Gast

    Default How to trigger a function when a variable changed?

    Hello,
    We have a application for monitoring a key variable's changing and this variable has the int datatype.
    When this variable's value changed, system should switched to the predefined screen. I try to do using the limit part for variable, but failed.
    So how to realize this function? Thanks!

  2. #2
    Join Date
    18.07.2011
    Posts
    138

    Default Re: How to trigger a function when a variable changed?

    Hi denver.

    I would recommend using a reaction matrix for this purpose. Using the limits the function is only executed when the configured limit is violated, but not necessarily every value change.
    By using a reaction matrix you can react on each change of the value. You can also define multiple states if needed. In the rema you can then link your screenswitch function and additionaly you could also create an entry in the alarm message list.

    You will find more detailed information on how to use reaction matrixes in the variable section in the zenon help!

Similar Threads

  1. Start/Stop Arvhive on PLC Trigger
    By joebloggs in forum Drivers
    Replies: 3
    Last Post: 13th February 2020, 10:10
  2. Changed/new features from 6.22 to 6.51
    By brc in forum zenon Supervisor
    Replies: 3
    Last Post: 30th June 2011, 06:20
  3. Replies: 3
    Last Post: 5th April 2011, 09:16
  4. Textfiled that can show Tagnames and is changed by the languageswitch
    By matthias.zoellner in forum zenon Supervisor
    Replies: 4
    Last Post: 16th February 2009, 10:54
  5. Since 6.21 the installation paths has changed.
    By wolfgangm in forum Editor and Runtime Setup
    Replies: 0
    Last Post: 8th November 2007, 16:54

Posting Rules

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