Showing results 1 to 7 of 7

Thread: VSTA-VB.Net - Macro Call Delay and Execution Delay

  1. #1
    Join Date
    17.04.2017
    Posts
    16

    Default VSTA-VB.Net - Macro Call Delay and Execution Delay

    Hello,

    I am facing the following delay while executing the macro from VSTA-VB.net code.

    After my trigger Bool variable is high,
    1. Macro is calling after 2 sec and this 2 sec delay is constant for all the trials.
    2. Zenon variable from Macro output is updating between 3 to 5 sec. It means macro execution is completed after 3 to 5 sec.

    Could you please guide me to solve this issue. What are the settings/coding's i have to check in Zenon / VSTA.

    In my project i have 20000 tags (both internal & PLC) and in that 4500 tags are used (Enabled Permanently read variable to access in VSTA) in VSTA for Macro.

    I have 20 macros and all are created in different classes and accessed from This.Project.

    Please confirm me whether this delay will come if this much of Tags are used in VSTA/Zenon or this is an any other issue i need to check.

    Regards,

    Dhanapal.L

      


    Attached Thumbnails Attached Thumbnails This Project.JPG  

  2. #2
    Join Date
    03.11.2015
    Posts
    12

    Default Re: VSTA-VB.Net - Macro Call Delay and Execution Delay

    Hello Dhanapal,

    I'm missing the point: What are you trying to archive with the macro?

    This one:
    (Enabled Permanently read variable to access in VSTA) 
    makes me curious: you do not need to enable permanently read to access a variable in VSTA. You can also use the Online Container and advise the variables with the .define() method.

    which zenon version do you use?

    20.000 tags are not much for zenon. surely something what zenon can handle - given a poper hardware, of course.

    To help you better, we need more information about your project, code structure, hardware, etc...

    Regards
    c.f.

  3. #3
    Join Date
    08.02.2017
    Posts
    13

    Default Re: VSTA-VB.Net - Macro Call Delay and Execution Delay

    Hi,

    what PLC/zenon driver are you using?
    May you can check the update time of the zenon driver and decrease it?


    BR
    Christian

  4. #4
    Join Date
    17.04.2017
    Posts
    16

    Default Re: VSTA-VB.Net - Macro Call Delay and Execution Delay

    Quote Originally Posted by ChrisB View Post
    Hi,

    what PLC/zenon driver are you using?
    May you can check the update time of the zenon driver and decrease it?


    BR
    Christian
    I am using AB_Controllogix L73. All the tags are imported from L5K file.

    I have given priority for variables Normal (700ms) & Highest (100ms).



  5. #5
    Join Date
    17.04.2017
    Posts
    16

    Default Re: VSTA-VB.Net - Macro Call Delay and Execution Delay

    Quote Originally Posted by c.f. View Post
    Hello Dhanapal,

    I'm missing the point: What are you trying to archive with the macro?

    This one:

    makes me curious: you do not need to enable permanently read to access a variable in VSTA. You can also use the Online Container and advise the variables with the .define() method.

    which zenon version do you use?

    20.000 tags are not much for zenon. surely something what zenon can handle - given a poper hardware, of course.

    To help you better, we need more information about your project, code structure, hardware, etc...

    Regards
    c.f.
    I am enabling Permanently read variable to access the data in VSTA. I thought this is the only option to access variable in VSTA.
    Please let me know about, how to access variable values in VSTA using online container. I have around 4000 variable values to be accessed in VSTA, not all at a time in each macro.

    I am using Zenon7.50 and PLC hardware is AB controllogix L73 + EN2TR module.

    Can i have your mail ID to discuss further about my project and share the code details

    You can send your mail id to dhanapal@titan.co.in.






  6. #6
    Join Date
    03.11.2015
    Posts
    39

    Default Re: VSTA-VB.Net - Macro Call Delay and Execution Delay

    Hi,
    you can find a sample on how to use the online variables in our online help Chapter:
    Manual -> Programming Interfaces -> Objectmodel -> OnlineVariables



    You can find there how to register the container in the startup event and how variables can be added and read.

    Please note that excessive operations via the api may slow down the runtime process.

  7. #7
    Join Date
    17.04.2017
    Posts
    16

    Default Re: VSTA-VB.Net - Macro Call Delay and Execution Delay

    Quote Originally Posted by joris.l View Post
    Hi,

    you can find a sample on how to use the online variables in our online help Chapter:

    Manual -> Programming Interfaces -> Objectmodel -> OnlineVariables







    You can find there how to register the container in the startup event and how variables can be added and read.



    Please note that excessive operations via the api may slow down the runtime process.
    Hello,

    In help chapter i didn't find a VB.Net / C# code for online variables.

    Could you share me a code in VB.Net to access PLC&Zenon variable values in VSTA.

    Regards,
    Dhanapal.L 



Similar Threads

  1. Delay in reaction matrix
    By andrey_k in forum zenon Energy Edition
    Replies: 3
    Last Post: 13th November 2018, 13:32
  2. Time Delay in Script execution
    By shikra in forum zenon Supervisor
    Replies: 5
    Last Post: 19th July 2017, 10:04
  3. delay in redundancy
    By hajjsaid99 in forum zenon Network
    Replies: 3
    Last Post: 29th June 2015, 15:08
  4. Dynamic Alarm delay
    By crl_snef in forum zenon Supervisor
    Replies: 3
    Last Post: 29th January 2015, 09:16
  5. Variables with delay and red square
    By luizmartinsbr in forum zenon Supervisor
    Replies: 7
    Last Post: 9th October 2013, 23:07

Posting Rules

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