Showing results 1 to 4 of 4

Thread: ConnectionState variable

  1. #1
    Join Date

    Default ConnectionState variable

    Hi! I'm using Zenon Energy Edition v7.6 with the IEC61850 !ConnectState Variable to detect communication error for ALM with a certain IED in my project. But the variable never goes to TCP_CONNECT_ FAILED when i disconnect the RJ45 cable from that IED it just keeps at TCP_CONNECTING. Is there another diag variable that I should use to detect comm errors or am I just using the !ConnectState the wrong way.

  2. #2
    Join Date

    Default Re: ConnectionState variable

    Hello pernilsson,

    But the variable never goes to TCP_CONNECT_ FAILED
    Have you checked the "Automatic Watchdog" option in your driver configuration? If so, for how long have you waited? According to the help (IEC850 > IEC850 client functions > Establishment of a connection and detection of a connection failure) it may take 30 seconds until the connection is completely closed

    Is there another diag variable that I should use
    There is a 'ConnectionStates' communication variable with offset 61 you could try out, see help chapter 'IEC850 > Creating variables > Communication details (Driver variables)'. But the specific !ConnectState variable is probably better.

    or am I just using the !ConnectState the wrong way
    Hard to say (at least for me, I'm not an expert in this protocol). I assume you already checked if the configured reaction value in your REMA/limit value is correct.

    I hope I was able to help you.

    Kind Regards

  3. #3
    Join Date
    Salzburg, AT

    Default Re: ConnectionState variable

    With correctly defined reaction matrix it will work like you wish, see my screenshot:

    The ConnectionState variable works bit-wise. And as soon the iec850 driver detects FAILED it tries to CONNECTING, so then both bits: as well CONNECTING aa FAILED - are set. Maybe change the order of bits evaluation in your rema - to first detect FAILED and then CONNECTING.
    Or create the rema using the Wizard 'IEC850 driver configuration' available in Energy Edition. Or write an email to your local COPA-DATA support and ask to send you the XML-file with the correctly working reaction matrix for iec850 ConnectionState variables.

    Attached Thumbnails Attached Thumbnails CEL_ConnectionState.png  

  4. #4
    Join Date

    Default Re: ConnectionState variable

    Thanks Ursula and Lukas for your help, i had actually made an error in the reaction matrix now it works fine!

Similar Threads

  1. ConnectionState
    By Joulzer in forum zenon Energy Edition
    Replies: 9
    Last Post: 13th October 2017, 06:21
  2. 1. Modify BitAddr of variable, 2. edit SubItems of variable
    By professor_hubert_farnsworth in forum VSTA
    Replies: 3
    Last Post: 18th January 2017, 09:46
  3. packing 16 bool variable to one 16 bit interger variable
    By ismailsel in forum zenon Supervisor
    Replies: 2
    Last Post: 9th June 2015, 09:22
  4. Replies: 1
    Last Post: 2nd August 2011, 10:21
  5. Replies: 1
    Last Post: 23rd July 2011, 08:51

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