Showing results 1 to 5 of 5

Thread: IEC61850 Commands through Zenon Logic

  1. #1
    Join Date
    22.10.2012
    Posts
    25

    Default IEC61850 Commands through Zenon Logic

    Hi, we are trying to do commands that already work with "command group" functionality with zenon logic. It is necessary for use to program such an automatism. We have tried to write directly the "Oper.ctlVal" without success. Can anybody help how to write this structure with zenon logic in the same way that the command group does?

    Thank you.

  2. #2
    Join Date
    01.07.2008
    Location
    Salzburg, AT
    Posts
    1,029

    Default Re: IEC61850 Commands through Zenon Logic

    use function blocks IEC61850*, e.g. IEC61850_OPER.

    when you have created in client the variable xxx_CSWI_Pos_Oper_ctlVal (thus command is licensed) and myOPER is an instance of IEC61850_OPER then the ST code in Logic can look like following:

    myOPER( goO, 0, 'xxx/CSWI/Pos/Oper.ctlVal[CO]', 0, newVal);
    staO := myOPER.STATUS; // 0 - BUSY, 1 - DONE, 2 - ERROR
    resO := myOPER.RESULT; // AddCause or when < 0 - internal error, e.g. -1 - wrong parameter
    goO := false;
    if staO = 2 then printf('Oper failure, result %lu', resO); end_if;


    Do not forget to call in-between myOPER with goO=false and do not use myOPER for running command processing on different data objects simultaneously.

  3. #3
    Join Date
    22.10.2012
    Posts
    25

    Default Re: IEC61850 Commands through Zenon Logic

    That's what we need. Thank you very much.

  4. #4
    Join Date
    22.10.2012
    Posts
    25

    Default Re: IEC61850 Commands through Zenon Logic

    we have seen that it is necessary to configure a driver connection in the zenon logic (similar to the connection created for the runtime , is this correct?

  5. #5
    Join Date
    22.10.2012
    Posts
    25

    Default Re: IEC61850 Commands through Zenon Logic

    now working, thank you!

Similar Threads

  1. zenon logic doesn't communicate with external variables in zenon
    By mashjj in forum Engineering Studio Logic & Logic Service (former zenon Logic Workbench & Runtime)
    Replies: 6
    Last Post: 27th February 2015, 13:10
  2. Zenon Logic Redundancy
    By davide.galigani in forum Engineering Studio Logic & Logic Service (former zenon Logic Workbench & Runtime)
    Replies: 3
    Last Post: 24th April 2013, 07:22
  3. Problems in new version zenon Logic
    By altera in forum Engineering Studio Logic & Logic Service (former zenon Logic Workbench & Runtime)
    Replies: 4
    Last Post: 18th March 2013, 00:00
  4. Replies: 1
    Last Post: 15th January 2013, 01:33
  5. Replies: 5
    Last Post: 26th July 2010, 06:52

Posting Rules

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