beautypg.com

Festo Контроллер позиционирования CPX-CMPX User Manual

Page 131

background image

5. Diagnostics and error handling

5−17

Festo P.BE−CPX−SYS−EN en 0902e

Example 1: Check to see if there is diagnostic data

Function no. 1937 specifies whether there is diagnostic data
and contains, where applicable, the number of the first modĆ
ule on which a fault has occurred (see section B.2.6).

Function no. = 1937
1937 dec. = 11110010001 Bin

2

1

8

9

10

11

12

13

14

15

0

1

2

3

4

5

6

7

Function no.

Control bit

1

0

0

1

0

0

0

1

1

0

0

0

0

1

1

1

1

Bit number of the outputs

2

Signal status of the outputs

Fig. 5/7:

Reading out function no. 1937

There are diagnostic data if bit 6 supplies a 1−signal. Bit 0 ... 5
contain the module number of the first faulty module (see
also section B.2.6.). If, for example, there were a fault on
module 5 (5 dec. = 101 Bin), the following input data would
be available:

1

8

9

10

11

12

13

14

15

0

1

2

3

4

5

6

7

Diagnostic data

Quitting bit

Reserved

1

0

0

1

0

0

0

1

1

2

1

Bit number of the inputs

2

Signal status of the inputs

Fig. 5/8:

Reply data (example)

Detailed information on the module diagnostic data can be
found in section B.2.7.