Showing results 1 to 5 of 5

Thread: Multiple copy of variables.

  1. #1
    Join Date
    26.02.2014
    Posts
    36

    Default Multiple copy of variables.

    Hello.
    I need to do a copy in Zenon of many variables based on a trigger, for example

    If BOOLVAR = 1
    Then
    INT1 = INT2
    INT3 = INT4
    INT5 = INT6
    etc.

    The only way I can think of doing it is with multiple Allocations, but as there are over 100 copies required I hope there is an easier way than creating over 100 different allocations.
    Maybe I can use visual basic or a macro but unfortunately I know nothing about these.
    Can anyone please tell me the easiest way to do this.
    Thank you.

  2. #2
    louis.paglaiccetti Gast

    Default Re: Multiple copy of variables.

    Hello mjackson,

    I cannot help much with a VBA/VSTA solution for that, someone else here on the forum can help there.

    But allocations would work. It is possible to create 1 allocation and copy/paste that allocation many times. Then all the allocations can be exported to XML and the XML file edited & re-imported. I don't think it would be too time consuming.

  3. #3
    Join Date
    26.02.2014
    Posts
    36

    Default Re: Multiple copy of variables.

    There must be a better way to do this than 100 separate allocations!

  4. #4
    Join Date
    30.05.2007
    Location
    Salzburg
    Posts
    879

    Default Re: Multiple copy of variables.

    you can also do this via recipegroup manager (needs to be licensed)
    -> check out help documentation at
    Manual -> Recipegroup Manager -> Engineering in the Editor -> Adding recipes to a recipegroup -> Editing a recipe from a recipegroup -> Actions
    Action: Link with variable

    regards,
    herbert


  5. #5
    Join Date
    26.02.2014
    Posts
    36

    Default Re: Multiple copy of variables.

    That's exactly what I wanted. Thank you.

Similar Threads

  1. How can I copy a variable between projects?
    By mjackson in forum zenon Supervisor
    Replies: 1
    Last Post: 11th July 2014, 14:02
  2. Multiple Variables assignment in Straton
    By shikra in forum straton / zenon Logic
    Replies: 1
    Last Post: 3rd March 2013, 23:36
  3. Make a copy of a project.
    By takarlsson in forum zenon Supervisor
    Replies: 5
    Last Post: 21st April 2011, 00:10
  4. Template copy across projects
    By mvj in forum VBA
    Replies: 3
    Last Post: 10th February 2010, 17:18
  5. copy recipes
    By hicom in forum zenon Supervisor
    Replies: 9
    Last Post: 11th May 2009, 05:28

Posting Rules

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