Eventfb function block overview – ProSoft Technology PTQ-101M User Manual

Page 51

Advertising
background image

Configuring the Processor with UnityPro XL

PTQ-101M ♦ Quantum Platform

IEC 60870-5-101 Master Communication Module

ProSoft Technology, Inc.

Page 51 of 181

May 14, 2008

4.3

How to Set up and Use the Sample Function Block for Unity

4.3.1 EVENTFB

Function Block Overview

The purpose of the EVENTFB sample function block is to transfer the events into
a buffer that consists of an array of elements that stores all data in a convenient
format for the user. The block 9903 passes data into a compacted format thus
occupying the minimum amount of registers. The EVENTFB sample function
block already extracts each event value into a separate register.

The following illustration shows the structure of each element of the buffer
(extracted from the data type definition file):

The data structure that stores the incoming events consists of a circular buffer
that can store up to 199 events. The buffer consists of an array of 199
"EVENT101" elements presented previously. The element index can vary from 0
to 199. If the last event updated was located at index 199 then the next event will
be copied to index 0.

Advertising