Parameterization and Configuration
TR-Electronic GmbH 2018, All Rights Reserved
Printed in the Federal Republic of Germany
Page 158 of 167
TR - ELA - BA - DGB - 0027 - 03
11/12/2019
6.4.3 PROFINET diagnosis alarm
PROFINET supports an integrated diagnostic concept, which enables efficient error detection and
elimination. When an error occurs, the defective IO device transmits a diagnostic alarm to the IO
controller. This alarm calls up a corresponding program routine in the controller program, in order to
react to the error.
Alternatively, the diagnostic information can also be manually acyclically read out directly from the IO
device via record index 0xE00C and displayed on an IO supervisor.
Alarms belong to the acyclic frames which are transmitted via the cyclic RT channel. They are also
identified by
Ether type = 0x8892
.
Errors and warnings are transmitted by the measuring system to the IO controller in the form of a so-
called
Alarm Notification Request
(alarm message). For identification purposes the alarm
message contains the alarm-ID (diagnosis, process), the addressing information (slot, subslot, module
ID) and a manufacturer-specific diagnosis with transmission of an error code.
A slot with
API = 0x3D00
(encoder profile ID) identifies the measuring system object.
The exact structure of the
Alarm Notification Request
can be found e.g. in the PROFINET
specification
Application Layer protocol for decentralized periphery and distributed automation
,
order
no.: 2.722
.
In the
Alarm Notification Request
, the type of alarm is displayed via the attribute
UserStructureIdentifier
. In the
TR Encoder Profile
configuration the measuring system
only supports manufacturer-specific diagnostic alarms with
UserStructureIdentifier
= 0x5555.
This identifier is followed by a 32-bit error code (
UserData), which is temporarily stored
in the measuring system
:
Error code Meaning
Device status LED Net status LED
0x00000001 Measuring system defective, incorrect
position
red = ON
-
0x00000002 Memory error
red = ON
-
0x00000004 Invalid configuration parameters
-
red = ON
0x00000008 No connection to the IO controller
-
red = ON
For appropriate measures in case of error, see chapter “Optical displays”, page 162.