Output Description

../_images/dbe9192ee389ea350a33139000eba54e

DONE

Data_Type Default_Value Range Unit
BOOL - - -

Output DONE indicates the processing state of the Function Block. After completion of the request or after abortion of the Function Block processing due to an error, DONE is set to TRUE for one cycle. This output always has to be considered together with output ERR. If ERR is TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERR

Data_Type Default_Value Range Unit
BOOL - - -

Output ERR indicates whether an error occurred during Function Block processing. This output always has to be considered together with output DONE. If DONE = TRUE and ERR = TRUE, an error occurred. In this case, the error number can be read at output ERNO.

ERNO

Data_Type Default_Value Range Unit
WORD - - -

Output ERNO provides an error identifier if an invalid value has been applied to an input or if an error occurred during Function Block processing. ERNO always has to be considered together with the outputs DONE and ERR. The value output at ERNO is only valid if DONE is TRUE and ERR is TRUE. Encoding of the error messages output at ERNO is explained in a separate table “Error messages of the Function Block libraries” Error Messages of the Function Block Libraries.

STATE_1

Data_Type Default_Value Range Unit
DNM_DEVICESTATUS_1_TYPE - - -

Output STAT_1 of the Function Block DNM_DEV_DIAG displays different diagnosis bits as a structure of the type DNM_DEVICESTATUS_1_TYPE. In the DeviceNet™ library the structure DNM_DEVICESTATUS_1_TYPE is declared as follows:

TYPE DNM_DEVICESTATUS_1_TYPE:
STRUCT
    NO_RESPONSE:  BOOL;
    reserved1:    BOOL;
    PRM_FAULT:    BOOL;
    CFG_FAULT:    BOOL;
    UCMM_Support: BOOL;
    reserved2:    BOOL;
    reserved3:    BOOL;
    DEACTIVATED:  BOOL;
END_STRUCT
END_TYPE

DEV_STATE

Data_Type Default_Value Range Unit
BYTE - - -

DEV_STATE outputs the current state of the Communication Module’s internal state machine for the relevant slave. This value provides information about the current phase of communication with the device. DEV_STATE is only valid if DONE = TRUE and ERR = FALSE.

The following table lists the possible values of DEV_STATE and their meanings.

DEV_STATE Meaning
1 Initial state of the state automation
2 Slave inactive and not processed
3 Waiting for requests of all slaves to check for duplicate MAC IDs
4 Initialization of the internal predefined master-slave structures
5 Request for allocation of predefined master-slave connection sets
6 Waiting for slave response after request for allocation of predefined master-slave connection sets
7 Request for release of predefined master-slave connection sets
8 Waiting for slave response after request for release of predefined master-slave connection sets
9 Initialization of the internal I/O configuration structures
10 Request for allocation of I/O configuration structures
11 Waiting for slave response after request for allocation of I/O configuration structures
12 Request for release of I/O configuration structures
13 Waiting for slave response after request for release of I/O configuration structures
14 Request for connection length of the connection consumed by the slave (output configuration)
15 Waiting for slave response after request for connection length of the connection consumed by this slave
16 Comparison of actual output configuration received from the slave with the internal nominal output configuration
17 Request for connection length of the connection produced by the slave (input configuration)
18 Waiting for slave response after request for connection length of the connection produced by this slave
19 Comparison of actual input configuration received from the slave with the internal nominal input configuration
20 Configuration and registration of I/O connection structures
21 Setting the expected packet rate in the slave
22 Waiting for slave response after setting the expected packet rate
23 Transmission of the first I/O poll request to the slave
24 Waiting for slave response after I/O poll request
25 Transmission of the second I/O poll request to the slave
26 Waiting for slave response after I/O poll request
27 Transmission of the third I/O poll request to the slave
28 Waiting for slave response after I/O poll request
29 Transmission of heartbeat timeout to slave
30 -
31 First opening of connectionless communication
32 Waiting for slave response after opening the connectionless communication
33 Second opening of connectionless communication
34 Waiting for slave response after opening the connectionless communication
35 Closing the connectionless communication
36 Waiting for slave response after closing the connectionless communication
37 Enabling of all established connections
38 Waiting for slave response after enabling of all established connections
39 Opening the connectionless user-specific communication
40 Waiting for slave response after opening the connectionless user-specific communication
41 Request for allocation of user-specific predefined master-slave connections
42 Waiting for slave response after request for allocation of user-specific master-slave connections
43 Closing the connectionless user-specific communication
44 Waiting for slave response after request for closing the user-specific master-slave connections
45 Reading or writing a user-specific attribute
46 Waiting for response after reading or writing a user-specific attribute
47 Transmission or waiting for response after fragmentally reading or writing attributes

ONL_ERR

Data_Type Default_Value Range Unit
BYTE - - -

ONL_ERR outputs a value describing possibly existing communication errors between the master Communication Module and the slave. ONL_ERR is only valid if DONE = TRUE and ERR = FALSE.

The error IDs of ONL_ERR correspond to the IDs of output COM_ERR.EVENT of the Function Block DNM_STATE <no title>. They are described in the table provided in the description for this Function Block.

GEN_ERR

Data_Type Default_Value Range Unit
BYTE - - -

GEN_ERR outputs the ID of the last error telegram of the slave in accordance with the DeviceNet™specification.

GEN_ERR exclusively refers to connection errors (ONL_ERR = 35). Therefore, the error ID of GEN_ERR always has to be considered together with output ONL_ERR. GEN_ERR is only valid if DONE = TRUE, ERR = FALSE and ONL_ERR = 35.

The following table lists the possible values of DEV_ERR and their meanings.

GEN_ERR Meaning
2 Resource not available
8 Service not supported
9 Invalid attribute value
11 Request mode already active
12 Object status conflict
14 Attribute cannot be changed
15 Privilege violation
16 Device status conflict
17 Response data too long
19 Insufficient data
20 Attribute not supported
21 Too much data
22 Object already exists

ADD_ERR

Data_Type Default_Value Range Unit
BYTE - - -

ADD_ERR outputs additional information about the connection error reported at GEN_ERR. Therefore, ADD_ERR always has to be considered together with output GEN_ERR. ADD_ERR is only valid if DONE = TRUE, ERR = FALSE and GEN_ERR <> 0.

EXP_TOUT

Data_Type Default_Value Range Unit
WORD - - -

Output EXP_TOUT indicates how often response monitoring for this slave was performed.

The DeviceNet™bus parameters contain a configurable heartbeat timer. This timer determines at which time intervals the master should check the availability of the slaves. EXP_TOUT contains the number of timeouts for the requested slave. Therefore, EXP_TOUT can be used to make a statement about the quality of the connection to this slave. The value of this output is only valid if DONE = TRUE and ERR = FALSE.

NO_RESPONSE

Data_Type Default_Value Range Unit
BOOL - - -

If this bit is set, the slave with the MAC ID specified at Function Block input MAC_ID does not respond to the master’s requests. Normally NO_RESPONSE should be set to FALSE.

PRM_FAULT

Data_Type Default_Value Range Unit
BOOL - - -

This bit is set, if write access to at least one configured attribute of the slave was refused. In this case, a parameterization error occurred.

CFG_FAULT

Data_Type Default_Value Range Unit
BOOL - - -

This bit is set, if the actual length of transmitted data (actual configuration) differs from the configured length (nominal configuration). In this case, a configuration error occurred.

UCMM_SUPPORT

Data_Type Default_Value Range Unit
BOOL - - -

This bit is reserved and currently not in use.

reserved2   BOOL

This bit is reserved and currently not in use.

reserved3   BOOL

This bit is reserved and currently not in use.

DEACTIVATED

Data_Type Default_Value Range Unit
BOOL - - -

This bit is set to TRUE, if the slave defined in the configuration data of the master is deactivated and not processed.