EasyManuals Logo

Festo CECX-X-C1 Series User Manual

Festo CECX-X-C1 Series
631 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #507 background imageLoading...
Page #507 background image
The library EventData.lib
The library EventData.lib
The functions of the EventData library support the handling of data from system events, that are triggered
by interrupts from inputs of digital input modules.
The following measures are necessary in order to receive the data generated from these system events:
1. The interrupt-capable inputs must be configured in the control configuration so that events for rising
and / or falling edge are triggered in the system.
2. The evaluation can be carried out in two different ways:
a) By creating a task that is triggered by an external event. See example: Event-driven task ‘interrupt
ena
ble
d DI edge detected’.
b) B
y direct evaluation of the data from the system event. A block is created here which starts with
the name 'Callback' and which must be inserted in the task configuration under 'System events'.
See example: System event ‚DI_edge’.
Functions
The EventData library contain(s) the following function(s):
ï‚· GetLastIntrEdge: Returns interrupt data.
GetLastIntrEdge
This function returns data of the last triggered interrupt from the digital input module. When using these
events in the SysLibCallCallBack library then the constant EVENT_DI_edge ( = 1500) can be used.
Input variable Data type Description
pIntrEdgeData POINTER TO
IntrEdgeData
Pointer to a data range *), which is described by
the system.
*) IntrEdgeData
The structure contains the following variables:
Variable Data type Description
structID BYTE 100 ... For interrupts from digital add-on modules.
Reserved BYTE Intended for future expansion.
moduleType BYTE **)
moduleAddr BYTE Position of the address switch of the module.
eventMask DWORD ***)
eventCounter UDINT Counts the occurred events since the last system
start.
CECX-IV 1

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Festo CECX-X-C1 Series and is the answer not in the manual?

Festo CECX-X-C1 Series Specifications

General IconGeneral
BrandFesto
ModelCECX-X-C1 Series
CategoryController
LanguageEnglish

Related product manuals