Before you begin – ProSoft Technology PTQ-101M User Manual
Page 24

PTQ-101M ♦ Quantum Platform
Configuring the Processor with Concept
IEC 60870-5-101 Master Communication Module
Page 24 of 181
ProSoft Technology, Inc.
May 14, 2008
The EVENTFB function block contains the following PINs.
PIN
PIN Type
Data Type
Description
Instat input
WORD64 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
EVENTSTRUCT
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.
ExtCmd Input
WORD
This external command is used so user can
issue different commands while the module
receiving events.
OutCntrl Output
WORD64
Stores data to be sent from the processor to the
module the start address it should match what
you configured your backplane exchange to
start.
EventQue Output
WORD
Indicates how many events are in the queue to
be read.
EvntOvfl Output
WORD
This will be set to yes (1) if the overflow flag is
set due to 199 events in the queue waiting to be
read.
Before You Begin
1
Make sure that your computer has the Concept Programming Unit installed.
2
The PTQ-101M firmware revision must support the event pass-thru
functionality. This feature is available for version 1.12 or later. Refer to the "V"
menu for the SOFTWARE REVISION LEVEL (page 97) value at the debug
menu of the PTQ-101M module.
3
Using Windows Explorer create a folder for your Concept project with a
"DFB" subfolder. This procedure will consider as an example the folder
C:\PROJECT\DFB, where:
o
C:\PROJECT- will store the main Concept project (.PRJ)