Diagnosis In The User Program - Festo CPX-CEC Series Manual

Modular valve terminal with integrated controller codesys
Table of Contents

Advertisement

1.9

Diagnosis in the user program

The following options are available for evaluating diagnostic results in the user program:
Evaluation of CPX diagnostic information in the flag area
CPX-specific diagnostic event CPX_System_Fault
CPX-specific modules for diagnosis in Festo_CPX.lib
Evaluation of CPX diagnostic information in the flag area
The CPX master writes the CPX diagnostic information to the system table. This is documented in Chapter
B.2.1 of the CPX system manual. The CoDeSys run-time system copies the diagnostic data unmodified to
the diagnostic addresses of the modules to a predefined flag area.
The CPX diagnostic data consists of:
System diagnosis (also global diagnosis) (8 bytes)
Module diagnosis (4 bytes per module)
Channel diagnosis (1 byte per channel)
System diagnosis
The global diagnosis is written to the diagnostic address of the "CPX-CEC-..." node.
This address is permanently set to the first eight bytes of the memory area: %MB0 - %MB8.
CoDeSys bus diagnosis
The data of the run-time system bus diagnosis is written to the diagnostic area of the abstract IOModules
node. The data size is 141 bytes.
Figure: Address assignment of the CPX diagnostic data in the flag area
Module and channel diagnosis
The module diagnosis and the channel diagnosis are written to the diagnostic addresses of the relevant
modules.
The following applies:
the first four bytes relate to the module diagnosis
the other four bytes relate to the channel diagnosis.
The input channels are displayed first followed by the output channels, as documented in the system
manual.
Modular valve terminal with integrated controller CPX-CEC-...
41

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpx-cecCpx-cec-c1Cpx-cec-m1

Table of Contents