Showing results 1 to 3 of 3

Thread: Disband array of variables?

  1. #1
    Join Date
    01.02.2016
    Posts
    32

    Default Disband array of variables?

    Hi all,

    I use zenon Supervisor v7.6.
    Old project have array of 200 intern bool variables.
    Is there possibility to disband that array and make all varibles individual?

    BR,
    MK

  2. #2
    Join Date
    01.02.2016
    Posts
    32

    Default Re: Disband array of variables?

    Quote Originally Posted by milosh View Post
    Hi all,

    I use zenon Supervisor v7.6.
    Old project have array of 200 intern bool variables.
    Is there possibility to disband that array and make all varibles individual?

    BR,
    MK

    So I have Error.flags array of 200 bools. My idea is to convert it to individual varible...
    Error.flags[0], Error.flags[1].....Error.flags[199] can it be easily converted to inividual variables...
    Error.flags0, Error.flags1 etc. with all attributes that it have before....

    Thanks in advance,
    MK

  3. #3
    Join Date
    10.12.2007
    Posts
    260

    Default AW: Disband array of variables?

    There is no built-in way to do this in the editor.
    You could export the array variables to xml, replace the brackets [] in the exported files with nothing and then reimport the variables from this file. I don't know if this really works - be sure to make a backup from your project before reimporting. This also doesn't change your array variables, it creates new variables with the same attributes. You would have to replace the old variables by the new ones in all places (pictures, functions, archives...)

Similar Threads

  1. Logic, a loop for an array with type variables
    By genakust in forum Engineering Studio Logic & Logic Service (former zenon Logic Workbench & Runtime)
    Replies: 1
    Last Post: 9th May 2018, 07:18
  2. Passing variables to an array by reference
    By jesus_michel in forum Engineering Studio Logic & Logic Service (former zenon Logic Workbench & Runtime)
    Replies: 3
    Last Post: 27th February 2018, 18:23
  3. Array and licensed I/O variables
    By florian in forum zenon Service Engine Supervisor
    Replies: 1
    Last Post: 2nd June 2015, 07:35
  4. Array of IEC61850
    By lephis in forum zenon Energy Edition
    Replies: 4
    Last Post: 12th September 2011, 16:29
  5. Array of IEC61850
    By lephis in forum Drivers
    Replies: 4
    Last Post: 12th September 2011, 16:29

Posting Rules

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