Diagnostics in the user program – Festo Контроллер позиционирования CPX-CMAX User Manual

Page 438

Advertising
background image

C. Configuration with CPX node

C−40

Festo P.BE−CPX−CMA X−CONTROL−EN en 0908NH

Diagnostics in the user program

You can read out diagnostic information in your user program
via function modules (CFM).

Modules

Description

C_STATUS

Query diagnostic status

C_TR_rd

Read entries in diagnostic memory

C_MD_rd

Read module diagnostic data

Tab. C/15: CFM for diagnosing the CPX terminal

Error program

If a fault occurs during running time, an error number will be
entered in the error word (FW). Depending on whether an
error program has been configured, the following applies:

ć

Error program = 0 (no error program defined): Programs
will be stopped

ć

Error program > 0: Programs will be stopped and the error
program with the entered number will be started

The following example shows a program for error handling.
Enter it as Error program" in the PLC settings" of the RunĆ
time behaviour" tab .

STEP

1

“Wait for error acknowledgement

IF

I0.7

’Reset FEC Error

THEN

RESET

F

’Error

LOAD

V0

TO

FW

’Fault word

RESET

P63

’Error acknowledgement

SET

P0

’General - organisation

Fig. C/21: Sample extract from an error program

Advertising