Introduction

Use the NOP850_EVTS elementary function block (EFB) to:

  • Manage and synchronize the transfer of external events from an ERT or CRA into the memory of the 140 NOP 850 00 module.

  • Manage the transfer external events between a PLC and the 140 NOP 850 00.

Representation in FBD

Input Parameters

Input parameter

Type

Description

ENABLE

BOOL

Start transferring.

ERT

BYTE

ERT type:

  • 0 = Quantum

  • 1 = Mx80

NOTE: When ERT type is:
  • Quantum: the time stamp is local time (UTC+TimeZone). The module converts local time into UTC and includes it in ERT reports. The time zone is set in the SNTP configuration window of the Modicon IEC61850 Configuration Tool.

  • Mx80: the time stamp is UTC time. No configuration is necessary.

EVT

Either:

Event description, including value, quality, time stamp and ID. Type depends upon the platform, either Mx80 or Quantum.

RPT

IED RPT

Report information.

TIMEOUT

INT

Time threshold in 100 ms for triggering an event. A value greater than 0.

Output Parameters

Output parameter

Type

Description

DONE

BOOL

A value of 1 (true) indicates the function block completed successfully.

ACTIVE

BOOL

A value of 1 (true) indicates execution of the function block is in progress.

ERROR

BOOL

A value of 1 (true) indicates the function block detects an execution error.

STATUS

INT

Identifies the detected error:

  • 1 = Input parameter is not valid.

  • 2 = <Reserved>

  • 3 = Time format is not valid.

    NOTE: Only dates after January 01, 2000 are valid.
  • 4 = Time out occurrence (default 10 s)

  • 5 = Parameter change during runtime

RPT_BUFF

IED ERT BUF

Raw buffer containing event time stamp entities.

Data Type Structure - IED_RPT

IED_RPT

Element

Type

Description

Status

WORD

Report status:

  • Bits 0...7: Report enabled/disabled. Each bit represents one report instance:

    • 0 = disabled

    • 1 = enabled

  • Bits 8...15: Buffer overflow:

    • 0 = No buffer overflow

    • 1 = Overflow

DaChgCnt

WORD

A counter value that increments each time a report is generated.

Data Type Structure - IED_ERT_BUF

IED_ERT_BUF

Element

Type

Description

NewTS

BYTE

Time stamp of the new event.

EvtSrc

BYTE

Event source:

  • 0 = Quantum

  • 1 = Mx80

EventEntity

WORD[6]

Event entity, which can be either:

Data Type Structure - IED_EVT_M

IED_EVT_M: This structure describes the format of events used by Mx80 devices using the IEC61850 format:

Element

Type

Description

Rese1

BYTE

<Reserved>

Value

BYTE

Input value.

EventID

WORD

An event identifier, either:

  • The channel number; or

  • A user-defined value.

SecondSince Epoch

DWORD

The interval, in seconds, from 1970-01-01 00:00:00 UTC to the present.

FracOfSec_L

WORD

The fraction of the current second when the value element, above, has been determined. The fraction of second is calculated as:

(SUM from i = 0 to 23 of bi*2**–(i+1) s).

FracOfSec_H

BYTE

TimeQuality

BYTE

TimeQuality describes provides information regarding the sending IED, and consists of the following attributes:

Bits

Attribute

Type

Description

0...4

Time Accuracy

CODED ENUM

The accuracy class of the time source. Only the value of 10 = 1 ms is supported.

5

Clock Not Synchronized

BOOL

When set to 1, this indicates the time source of the sending IED is not synchronized with external UTC time.

6

Clock Failure

BOOL

When set to 1, this indicates the time source of the sending IED is unreliable.

7

Leap Seconds Known

BOOL

When set to 1, this indicates that SecondSinceEpoch value includes all leap year seconds. When set to 0, this indicates leap seconds are not included and seconds are calculated from the current date assuming a constant day length of 86400 s.

Data Structure - IED_EVT_Q

IED_EVT_Q: This structure describes the format of events used by Quantum devices using the IEC61850 format:

Element

Type

Description

Rese1

BYTE

<Reserved>

Value

BYTE

Input value.

EventID

WORD

An event identifier, either:

  • The channel number; or

  • A user-defined value.

Rese2

BYTE

<Reserved>

Month

BYTE

Month: 0...12

Year

BYTE

Year: 00...99 (indicating 2000 to 2099)

Ms_Lsb

BYTE

Time in milliseconds: 0...59999 (least significant byte).

Ms_Msb

BYTE

Time in milliseconds: 0...59999 (most significant byte).

Min

BYTE

Invalid time/minutes: 0...59

Hour

BYTE

Summer time/hours: 0...23

Day

BYTE

Weekday.Day of the month: 1...31

Quantum ERT FBD Example

Mx80 CRA FBD Example