Festo CPX-CEC Series Manual page 50

Modular valve terminal with integrated controller codesys
Table of Contents

Advertisement

CPX-CEC-...
Fieldbus master diagnosis via diagnostic flags
The fieldbus master (CANopen) provides its diagnostic information in the flag area.
Figure: CANopen master diagnostic address
The following structure is copied by the CANopen driver to the configured diagnostic address of the
fieldbus master:
TYPE GETBUSSTATE:
STRUCT
BOLDENABLE:BOOL;
ENABLE:BOOL;
DRIVERNAME:POINTER TO STRING;
DEVICENUMBER:INT;
READY:BYTE;
STATE:INT;
EXTENDEDINFO:ARRAY[0..129] OF BYTE;
END_STRUCT
END_TYPE
Note
The GetBusState is updated automatically at the end of the PLC cycle (write outputs).
Use a minimum of 1 output in the project because the call is implemented in the write function.
For example, enter the line %QB12 in the IEC code of the structured text and assign a specific
value.
Structure elements and their meaning:
Element
Possible values
BOLDENABLE
FALSE
TRUE
ENABLE
FALSE
TRUE
DRIVERNAME
ZERO
DEVICENUMBER
0
READY
0
1
STATE
1
2
3
4
EXTENDEDINFO
Bit0:=1
Bit1:=1
Bit2:=1
48
Meaning
Previous status of ENABLE
Diagnostic function is not executed
Diagnostic function is executed
No driver name
CAN master index
Diagnostic function has not yet been
executed
Diagnostic function has been
executed
BUS OK
BUS faulty
No BUS communication
BUS stopped
Slave configured
Slave actually available
Slave has diagnostic info
Use
Set by system
Set by system
Set by system
Set by system
Set by system
Set by system
Set by system

Advertisement

Table of Contents
loading

This manual is also suitable for:

Cpx-cecCpx-cec-c1Cpx-cec-m1

Table of Contents