ProSoft Technology PTQ-101M User Manual

Page 52

Advertising
background image

PTQ-101M ♦ Quantum Platform

Configuring the Processor with UnityPro XL

IEC 60870-5-101 Master Communication Module

Page 52 of 181

ProSoft Technology, Inc.

May 14, 2008

The following illustration shows an instance example of the EVENTFB function
block:

The EVENTFB function block contains the following PINs:

PIN

PIN Type

Data Type

Description

InputStatus input

Array of
WORD

Stores the memory area updated by block 9903.
The start address must point to the same start
address defined for block 9903 backplane data
exchange (Point Address parameter).

ResetEP input/output

INT

Move a value of one to reset the event pointer.
This will cause the next event to be written to
index 0 at the circular buffer. The register will be
automatically reset to zero after the request was
processed. This register should be only used for
very specific applications (because the circular
buffer automatically changes the element pointer
from 199 to 0 after the maximum index was
reached)

Events Output

EVENT101M

Circular buffer that stores all received events in
a convenient format for the user application. It
can store up to 200 events (index varies from 0
to 199). After event 199 is updated the next
event to be received will be automatically
updated at index 0.

BlkCount Input/Output

INT

Incremented after a block is received (and after
the events in that block have been read into the
circular buffer). The maximum value for this
counter is 1000 (then it is automatically reset to
0)

LstPoint Input/Output

INT

Pointer to the last event index read from the
module. For example, if last event was updated
at index 5 then this value will have the same
value.

ExternalCmd Input

WORD

This external command is used so user can
issue different commands while the module
receiving events.

Advertising