Showing results 1 to 3 of 3

Thread: Process Gateway IEC104 COT when writing on Internal Variables

  1. #1
    Join Date
    19.01.2017
    Posts
    16

    Default Process Gateway IEC104 COT when writing on Internal Variables

    Hi,

    I am working on a conversion project from Sicam 230 into Zenon Energy Edition.

    I have a question related to the process gateway.

    I have an internal variable in Zenon, Data Type = real.  This variable is routed in the process gateway, IEC104, TI = 50.

    This variable is used as a set point value to be treated in Zenon.

    A rema is connected to this internal variable.  In the rema, there is a condition triggering a function to execute a VBA macro.  In VBA the further treatement of the received value is handled.

    The rema only triggers the Function in case the cause of transmission = 6.

    Since I write on an internal variable, the COT cannot be used to trigger a function.  So my question is, how can I get the COT out of the command entering the process gateway?  It has to get in there, but it is not available on the internal variables (as far as I know).

    Thanks for your support
    Philippe



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

    Default Re: Process Gateway IEC104 COT when writing on Internal Variables

    A value of zenon variable, if received by zenon Process Gateway, has status bits and timestamp given by the driver of the variable, not by the zenPG. The zenPG pokes (writes) the received value to the driver and only driver then decides what status bits and time stamp this variable will have in zenon. A write value to an internal variable does not cause the COT status updates. Only drivers IEC870, IEC850 and DNP3 are supporting COT.

    To detect the new value received via zenPG to some variable, you have to react on value change. In the reaction matrix there is a check box 'treat each change of value as new limit violation' but i'm not sure if this will trigger when the new command contains exactly same value as the previous. Try out.

    In case of zenPG IEC870Slave and T50: when your macro is completed, you can set to the variable some value out of range of this particular T50 command, e.g. some negative value. As T50 are 'write-only', the zenPG IEC870Slave is not sending any ASDUs to the remote 870-master when the zenon value changes. Thus, while you are just expecting new command, in zenon in the meantime you can set in this variable any value you want and know that the remote 870-master will never send such value in a command.


     

  3. #3
    Join Date
    19.01.2017
    Posts
    16

    Default Re: Process Gateway IEC104 COT when writing on Internal Variables

    Hi Ursulak,

    Thanks for the tip for the work around.  It is working.

    Philippe


    Quote Originally Posted by ursulak View Post
    A value of zenon variable, if received by zenon Process Gateway, has status bits and timestamp given by the driver of the variable, not by the zenPG. The zenPG pokes (writes) the received value to the driver and only driver then decides what status bits and time stamp this variable will have in zenon. A write value to an internal variable does not cause the COT status updates. Only drivers IEC870, IEC850 and DNP3 are supporting COT.

    To detect the new value received via zenPG to some variable, you have to react on value change. In the reaction matrix there is a check box 'treat each change of value as new limit violation' but i'm not sure if this will trigger when the new command contains exactly same value as the previous. Try out.

    In case of zenPG IEC870Slave and T50: when your macro is completed, you can set to the variable some value out of range of this particular T50 command, e.g. some negative value. As T50 are 'write-only', the zenPG IEC870Slave is not sending any ASDUs to the remote 870-master when the zenon value changes. Thus, while you are just expecting new command, in zenon in the meantime you can set in this variable any value you want and know that the remote 870-master will never send such value in a command.


     


Similar Threads

  1. writing numeric value to multiple variables in one shot
    By mn3020 in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 2
    Last Post: 21st April 2020, 10:36
  2. Remanence of the internal variables
    By andrey_k in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 7
    Last Post: 25th October 2013, 12:13
  3. Writing Cell values from Reports to Internal Variables
    By shikra in forum zenon Energy Edition
    Replies: 3
    Last Post: 24th February 2013, 00:55
  4. Process Gateway
    By hoscillada in forum Gateways
    Replies: 12
    Last Post: 8th November 2009, 22:57
  5. Internal Variables
    By jamesleary in forum Engineering Studio & Service Engine (former zenon Editor & Runtime)
    Replies: 1
    Last Post: 13th November 2008, 14:36

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
  •