Showing results 1 to 7 of 7

Thread: Variable XML export/import

  1. #1
    Join Date
    31.10.2018
    Posts
    4

    Default Variable XML export/import

    Hi to all!

    Story goes like this.
    I have successfully exported all variables to XML file. I have made some changes to XML file (for example: field for showing variable limit value in AML changed from FALSE to TRUE) and saved it.
    After the changes I have imported the new XML file successfully to Zenon but even the changed fields in XML file are on TRUE, the fields in Zenon project remained on FALSE.

    Can somebody tell me where I'm doing wrong? Do I need to change some other field too?

    I would like to change like this some other fields beside checkbox for showing in AML:
    - checkbox for showing in CEL
    - Tagname
    - Limit value text

    I hope somebody can help me.

  2. #2
    Join Date
    02.05.2017
    Posts
    26

    Default Re: Variable XML export/import

    Hello,

    it sounds like you have only set 'FlagIsAlarm' to true. If that's the case, you have to add a new XML tag within the desired 'Limits' tag with the name 'Alarm' and also set that to true

    For showing in CEL, create the XML tag 'Cel' inside the limit tag, set it to true, and also set 'FlagToCEL' to true.
    For changing the tag name, change the attribute 'shortName' of the desired variable and also the 'Name' tag
    For changing the limit value text, add a new XML tag 'Text' inside the Limit tag and put your string into there.

    Unfortunately the forum doesn't like XML code, so here's an example screenshot

    Click image for larger version

Name:	Capture.PNG
Views:	10
Size:	32.1 KB
ID:	2435

    Best Regards
    Lukas
    Last edited by LukasRotter : 31st October 2018 at 15:51

  3. #3
    Join Date
    31.10.2018
    Posts
    4

    Default Re: Variable XML export/import

    Hi LukasRotter,
    thank you for quick answer!

    For showing in AML and CEL is now all clear.

    I don't need to change "ShortName" but "Tagname" field in XML file (that is "Identification" field when you open General tab for variable in Zenon).
    I tried to do it and I made the updated XML with new name, but when I import that file into Zenon project Identification field remains the same. Is there also some flag I should change to TRUE?

    For Limit.Text field I think that I have to change FlagMessage to TRUE if I want Zenon to accept the new string.

  4. #4
    Join Date
    02.05.2017
    Posts
    26

    Default Re: Variable XML export/import

    I tried to do it and I made the updated XML with new name, but when I import that file into Zenon project Identification field remains the same. Is there also some flag I should change to TRUE?
    I don't know of such a flag. I just tried it with a new variable and the change of the identification worked for me. Could you maybe attach your XML file or a shortened version of it? (Forum doesn't like XML code directly inside of the post)

    For Limit.Text field I think that I have to change FlagMessage to TRUE if I want Zenon to accept the new string.
    Correct, I forgot to mention that.

  5. #5
    Join Date
    31.10.2018
    Posts
    4

    Default Re: Variable XML export/import

    Please find file attached.

    For example, I tried to change Tagname for TIA1HHA40CT003.O_ALARM_HH_ACT from "@alarm HH" to "@alarm HH 111" with no success.
    Attached Files Attached Files

  6. #6
    Join Date
    02.05.2017
    Posts
    26

    Default Re: Variable XML export/import

    Try to set the XML tag "IsLocalTagname" of the variable to TRUE. If it is set to FALSE, the tagname will be automatically taken from the datatype.

    Best Regards
    Lukas
    Last edited by LukasRotter : 31st October 2018 at 16:53

  7. #7
    Join Date
    31.10.2018
    Posts
    4

    Default Re: Variable XML export/import

    Thanks, it works :-).

Similar Threads

  1. Treiberkonfiguration Export/Import XML
    By jusufs in forum Drivers
    Replies: 2
    Last Post: 5th July 2016, 08:54
  2. VB.NET - Windows Form Export/Import
    By idkj in forum VSTA
    Replies: 1
    Last Post: 4th May 2015, 14:45
  3. Import/export mathematics variables
    By webrazor in forum zenon Supervisor
    Replies: 1
    Last Post: 24th April 2015, 09:53
  4. Historian import and export
    By natasjagts in forum zenon Supervisor
    Replies: 1
    Last Post: 23rd May 2012, 13:36
  5. Export And Import of XML
    By allmendinger in forum zenon Supervisor
    Replies: 1
    Last Post: 24th April 2008, 07:44

Tags for this Thread

Posting Rules

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