Showing results 1 to 5 of 5

Thread: IEC 850 variable-time format

  1. #1
    Join Date

    Default IEC 850 variable-time format


    We import a variable from siemens relay via 61850 into the zenon 6.51 SP0

    The variable type is time with name .../t[ST] and when it is imported in zenon, the variable data type is UTC TIME.

    In the runtime we just see the a numeric value of this variable. for example: 1319346906.
    How is it possible to have it in time format (date and time)?


  2. #2
    martins Gast

    Default Re: IEC 850 variable-time format


    the solution should be quite simple: use the default clock element that is provided in zenon and link the variable to it

    best regards

  3. #3
    Join Date

    Default Re: IEC 850 variable-time format

    Right, quiet simple!


  4. #4
    Join Date

    Frage Re: IEC 850 variable-time format

    The solution is working but
    1. This is only for monitoring purpose.
    1. It does not show the milli second data. How can I include that?
    2. How can I log this data in historian as in non UTC format itself?

  5. #5
    Join Date
    Salzburg, AT

    Default Re: IEC 850 variable-time format

    Are you sure that you need separated variables representing t-attributes? The values received in t-attributes are used anyway, fully automatically, as time stamp of related process variables - those representing  "main" data attributes in the common Data Object, e.g. stVal[ST] or cVal.mag.f[MX].
    The only use-case for separated t-variables is when IED sends data updates (not change) - thus the value of e.g. stVal does not change, only the timestamp.   

    The time stamps of zenon variable values are always present in columns in AML, CEL, Historian etc; and there you can configure the list to display milliseconds too. So as soon as you are archiving values of stVal etc., these values have time stamps according received t-attribute.
    On standard screen you can display timestamp of a variable - e.g. stVal - using Combined-Element with formula %t (without milliseconds). So also there - no need for separated t-variable.
    More info:
    Manual -> Screens -> Screen elements -> Combined element -> Display of variable information

    From zenon Help (7.60) - IEC850 -> IEC850 client functions -> Quality, time stamp and status bits of the variable:

    Variables in zenon with FC=ST or FC=MX (for example */Pos/stVal[ST], */PhV.phsA/cVal.mag.f[MX]) get a time stamp and status bits from the accompanying data attributes 'q' and 't'. This happens in the driver automatically. Additional configuration in zenon is not necessary.

    [..] The driver also assigns the value of the 't' attribute to the time stamp of all ST/MX variables of the Data Object (e.g. Pos, PhV.phsA).

    The driver automatically uses the time stamp and the quality of the data object for other variables in this DO. For this reason, no variables for the attributes 'q' and 't' need to be created separately, except if you want to analyze the quality bits that are not assigned to status bits or want to see the updates of the time stamp without changing the position value (stVal) or measured value (mag). If the zenon variables with references to data attributes 'q' or 't' have however also been created, the driver will support the received values 'q' and 't' as variable values.

    Example: The time stamp, received as 't' attribute, is used for the corresponding */stVal[ST] variable in the AML, CEL, Historian etc.
    If the */t[ST] variable has been created in the project, it has the received Unix time as an LREAL value, with milliseconds in decimal places (fraction of seconds).

Similar Threads

  1. Replies: 1
    Last Post: 2nd September 2011, 00:30
  2. How to create a "Time Counter" variable?
    By lephis in forum zenon Supervisor
    Replies: 1
    Last Post: 24th August 2009, 12:17
  3. variable type time didn't appear in zenon
    By johnny in forum straton / zenon Logic
    Replies: 3
    Last Post: 16th January 2009, 12:11
  4. compare time variable with system time
    By flajoso in forum VBA
    Replies: 7
    Last Post: 25th August 2008, 07:47
  5. Local Day Time in format DINT
    By markusw in forum straton / zenon Logic
    Replies: 0
    Last Post: 12th October 2007, 10:53

Posting Rules

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