Showing results 1 to 2 of 2

Thread: How to clear cache values after connection loss

  1. #1

    Default How to clear cache values after connection loss

    Hi Guys 
    I have a Scenario where I am facing trouble
    I have many Relays and calculating the Total Current by adding all the current values of the relay. If suddenly the communication of one relay is lost then the value (that was updated before communication loss) remains the same with a Red Dot at the top corner.
    My problem is
    1.The cached values are getting used by the mathematical value and Zenon logic resulting in Wrong Calculations. So How to make the value to 0 or unusable once the communication is lost.
    2.The Red Dot are Awkward to see. How to Remove that Red and Blue Dot at the top corner.
    Please Share some Ideas.

  2. #2
    Join Date
    Salzburg, AT

    Default Re: How to clear cache values after connection loss

    In zenon by communication loss the affected variables get status bit INVALID. This is one of the status bits represented as red square at the top right corner of screen elements.

    ad. 1. in zenon you may check if variable has the INVALID bit in reaction matrixes, formulas (e.g. by combi-elements, interlockings etc.) and filters.
    From a reaction matrix - when INVALID is detected and when gone - you may call functions 'write set value' to change the value of some additional internal variable. Then you may use this internal variable to activate/deactivate calculations, change colors, makes elements visible/invisible etc.

    If affected variable is 'extern visible' then in zenon Logic you may check the status bit using the function vsiGetBit() or SymbVsiGetBit().

    ad. 2.
    red square at top right corner is because of setting: screen element - representation - 'Display status of variable'.
    Last edited by ursulak : 2nd August 2017 at 08:35

Similar Threads

  1. Connection to IED
    By mehrdad66 in forum zenon Energy Edition
    Replies: 3
    Last Post: 24th October 2014, 09:29
  2. Connection to zenon
    By churras in forum Engineering Studio Logic & Logic Service (former zenon Logic Workbench & Runtime)
    Replies: 5
    Last Post: 4th August 2014, 12:01
  3. WebServer connection
    By abcd1234 in forum Smart Server & Smart Client (former Webserver & Webclient)
    Replies: 0
    Last Post: 15th January 2014, 15:57
  4. loss password to edit VBA
    By thandong007 in forum VBA
    Replies: 1
    Last Post: 24th April 2013, 04:39
  5. Winsock connection
    By michael_k in forum Drivers
    Replies: 1
    Last Post: 26th March 2012, 23:48

Posting Rules

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