CANOM_STATE_BITS_TYPE \

The structure STATE_BITS consists of six boolean variables displaying different communication states. In the CANOPEN library, the data type CANOM_STATE_BITS_TYPE is defined as follows:

TYPE CANOM_STATE_BITS_TYPE:
STRUCT
   CTRL:      BOOL;
   AUTO_CLR:  BOOL;
   NO_EXCH:   BOOL;
   FATAL:     BOOL;
   EVENT:     BOOL;
   reserved1: BOOL;
   TIMEOUT:   BOOL;
   reserved2: BOOL;
END_STRUCT
END_TYPE

CTRL

Data_Type Default_Value Range Unit
BOOL - - -

If this bit is TRUE, a parameter setting error occurred. During normal operation, CTRL should be FALSE. If this is not the case, the parameter and configuration data have to be checked.

AUTO_CLR

If AUTO_CLR is set to TRUE, the Communication Module stopped data exchange with all slaves due to communication errors and changed back to CLEAR state (see also CANOM_STATE).

Data_Type Default_Value Range Unit
BOOL - - -

NO_EXCH

This bit is set to TRUE, if no exchange of process data can be performed with one or several slaves. The error can be caused by the configuration data or the slaves themselves.

Data_Type Default_Value Range Unit
BOOL - - -

FATAL

If FATAL is set to TRUE, no communication via CANOPEN is possible due to a fatal internal error.

Data_Type Default_Value Range Unit
BOOL - - -

EVENT

EVENT is set to TRUE, if the Communication Module detects transmission errors. The number of occurring transmission errors is displayed at the corresponding outputs BUS_ERR and BUS_OFF. If the EVENT bit is set to TRUE, reset is only possible via the Function Block CANOM_RES_ERR CANOM_RES_ERR.

Data_Type Default_Value Range Unit
BOOL - - -

reserved1

This bit is reserved and currently not in use.

Data_Type Default_Value Range Unit
BOOL - - -

TIMEOUT

If TIMEOUT is set to TRUE, transmission of at least one telegram failed. The transmission of this telegram was aborted and its content is lost. TIMEOUT = TRUE is an indication that the communication partner could not be contacted via the bus. The number of failed transmissions is displayed at output TOUT_ERR. If the TIMEOUT bit is set to TRUE, reset is only possible using the Function Block CANOM_RES_ERR CANOM_RES_ERR.

Data_Type Default_Value Range Unit
BOOL - - -

reserved2

This bit is reserved and currently not in use.

Data_Type Default_Value Range Unit
BOOL - - -