Showing results 1 to 4 of 4

Thread: N_UPDATE Statusbit erkennen

  1. #1
    Join Date
    09.04.2015
    Posts
    17

    Default N_UPDATE Statusbit erkennen

    Guten Tag,

    ich versuche eine nicht aktualisierte Variable auf folgende Weise zu erkennen:

    t_invalid_Var:=VSIGETBIT( E7_2, 29 ); // Logic

    Es funktioniert leider nicht.

    Kennt jemand eine Lösung?

    Danke.

  2. #
    Join Date
    01.07.2008
    Location
    Salzburg, AT
    Posts
    1,107
    Best Answer

    Default Re: N_UPDATE Statusbit erkennen

    sorry for late answer - i have overlooked the post...

    In the Runtime, the right-click on screen element per default displays context info about variable linked with the element. It does it when element representation property 'Display status of variable' is active.

    On screenshot i see that this property is active - as only then there could be also a "red square" in right-upper element corner. The red point on element is indicator that variable has one (or more) of following status bits:
    • INVALID - bit 18
    • OFF - bit 20
    • ALT_VAL - bit 27
    • REVISION - bit 9
    • TIMEOUT - bit 11
    • FM_TR - bit 24

    the names of current status bits are displayed in context info of element (right-click) in the Runtime.

    The bit 29 (you are using in Logic) is N_UPDATE and on elements would be displayed as "blue square" graphic, not red. It means that responsible project server/standby is not delivering values for affected variable.

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

    Default Re: N_UPDATE Statusbit erkennen

    Is this a zenon variable set to be 'extern visible'? What a driver in zenon?

    The Logic function VSIGETBIT will result 'TRUE' only if also in zenon this bit by variable is set (and only if you configured Logic correctly).

    I propose you to first link in zenon 2 variables with screen elements - one variable which you are sure it is updated, second - not updated, both from this driver. And then in the Runtime - when you right-click on the screen element - a context tooltip will open with information also about status bits of linked variable.

    If in zenon - in the context info on screen element - you see the status bit, but not in Logic via VSI* function - then your Logic is not configured correctly.

  4. #3
    Join Date
    09.04.2015
    Posts
    17

    Default Re: N_UPDATE Statusbit erkennen

    Guten Tag Ursula,

    vielen Dank für Ihre Antwort.

    Der Treiber ist: S7TCP32 und "extern visible" ist angewählt.
    Im Anhang sind zwei Screenshots: 1. Runtime Status, 2. Logic
    Da ich das Projekt nur auf meinem Rechner ausführe und keine Verbiindung zur S7 habe, wird es in Runtime erkannt.
    Die Logic Verknüpfung erkennt es nur beim Spont und VSIGETBIT( E7_2, 18 ).
    Ich versuche dadurch den Ausfall der DP-Teilnehmer zu erkennen.

    Ich bitte um Entschuldigung aber ich habe leider nicht gefunden, wo ich den Rechtsklick für Tooltip (Status- Anzeige) konfigurieren kann.

    Mit freundlichen Grüßen
    genakust
    Attached Thumbnails Attached Thumbnails Runtime.PNG   Logic.PNG  

  5. #4
    Join Date
    01.07.2008
    Location
    Salzburg, AT
    Posts
    1,107
    Best Answer

    Default Re: N_UPDATE Statusbit erkennen

    sorry for late answer - i have overlooked the post...

    In the Runtime, the right-click on screen element per default displays context info about variable linked with the element. It does it when element representation property 'Display status of variable' is active.

    On screenshot i see that this property is active - as only then there could be also a "red square" in right-upper element corner. The red point on element is indicator that variable has one (or more) of following status bits:
    • INVALID - bit 18
    • OFF - bit 20
    • ALT_VAL - bit 27
    • REVISION - bit 9
    • TIMEOUT - bit 11
    • FM_TR - bit 24

    the names of current status bits are displayed in context info of element (right-click) in the Runtime.

    The bit 29 (you are using in Logic) is N_UPDATE and on elements would be displayed as "blue square" graphic, not red. It means that responsible project server/standby is not delivering values for affected variable.

Posting Rules

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