Showing results 1 to 3 of 3

Thread: Zenon logic watchdog variable

  1. #1
    Join Date
    13.02.2019
    Posts
    27

    Default Zenon logic watchdog variable

    Hi Guys,

    I'm using Zenon Energy 8.00.
    Is there any function block or method to check on HMI Zenon if the associate Zenon Logic project is running ?
    I would like to rappresent on HMI a light that is Green if Zenon Logic is running and a Red light if Zenon Logic is stopped, but I don't know how to realise this!

    Thanks to everyone!

    Marco

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

    Default Re: Zenon logic watchdog variable

    My favorite solution bases on shared memory area (and internal drivers) between zenon and zenon Logic, steps:

    In zenon Editor:
    1. create an internal BOOL variable with name e.g. Logic_is_running. The variable properties:
    • 'Internal variable': Remanence = "Initial value";  'Initial value' = 0.
    • 'External settings': 'Externally visible' = yes
    2. create function of type 'Write set value' with name e.g. Logic_failure_indication; function properties:
    • linked with variable Logic_is_running,
    • 'Set value' = Off (0)
    • Options: 'Direct to the hardware' = yes
    3. in node 'zenon Logic (IEC 61131-3)' in properties of the project, in group 'Runtime':
    • ‘Function for failure recognition’ link with function Logic_failure_indication
    • ‘Failure recognition after [s]’ = 10s

    In zenon Logic Workbench:
    4. in ‘Fieldbus configuration’ add driver ‘Logic to SCADA connection’
    5. add in program the following code (here in ST-language):
    if not Logic_is_running then
        Logic_is_running := true;
    end_if;

    As result when Logic starts then zenon variable gets value TRUE (from Logic code), and when Logic stops then the function changes variable value to FALSE (after the time ‘Failure recognition after [s]’).
    Do not configure this time too short, as when zenon Runtime is busy (e.g. huge load of process data causing alarms or scrolling of big lists etc.), then it may happen that there will be temporary slow of access to the shared memory.

  3. #3
    Join Date
    13.02.2019
    Posts
    27

    Daumen hoch Re: Zenon logic watchdog variable

    All right!

    Thank you 

Similar Threads

  1. Watchdog variable
    By eden212 in forum zenon Supervisor
    Replies: 1
    Last Post: 29th November 2017, 14:44
  2. Changing Variable Name in Zenon Logic
    By hamiiiz in forum straton / zenon Logic
    Replies: 2
    Last Post: 23rd June 2015, 13:50
  3. zenon logic doesn't communicate with external variables in zenon
    By mashjj in forum straton / zenon Logic
    Replies: 6
    Last Post: 27th February 2015, 13:10
  4. Re: zenon logic doesn't communicate with external variables in zenon
    By anjali.gk.nair@gmail.com in forum straton / zenon Logic
    Replies: 2
    Last Post: 22nd August 2014, 10:51
  5. Zenon logic
    By sidramsatyal in forum straton / zenon Logic
    Replies: 0
    Last Post: 1st July 2014, 09:45

Posting Rules

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