Output Description

../_images/972df3c440db1acf0a33139000e9373f

DONE

Data_Type Default_Value Range Unit
BOOL - - -

Output indicates the processing state of the function block. After completion or abortion of 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 (error)

Data type: BOOL

Output ERR indicates, whether an error occurred during control processing. In case of error, the error number can be read at output ERNO.

ERNO (error number)

Data_Type Default_Value Range Unit
WORD 0 ³ 0 -

Output provides an error identifier if an invalid value was applied to an input. ERNO always has to be considered together with the output ERR. The value output at ERNO is only valid if ERR is TRUE.

COMM_STATE (commstate)

Data type: DWORD, default value: 0, range: 0…4

COMM_STATE returns the state of the field bus related to chosen master. The possible codes for COMM_STATE are:

UNKNOWN    0x00000000
OFFLINE    0x00000001
STOP       0x00000002
IDLE       0x00000003
OPERATE    0x00000004

COMM_ERNO (commerror \ number)

Data type: DWORD, default value: 0

COMM_ERNO returns an error, if present, related to the communication channel. The possible codes for COMM_ERNO are following:

SUCCESS                              0x00000000
WATCHDOG TIMEOUT                                       0xC000000C
INITIALIZATION FAULT                                   0xC0000100
DATABASE ACCESS FAILED                                 0xC0000101
(General) CONFIGURATION FAULT                          0xC0000120
INCONSISTENT DATA SET                                  0xC0000121
DATA SET MISMATCH                                      0xC0000122
INSUFFICIENT LICENSE                                   0xC0000123
PARAMETER ERROR                                        0xC0000124
INVALID NETWORK ADDRESS                                0xC0000125
(General) NETWORK FAULT                                0xC0000140
CONNECTION CLOSED                                      0xC0000141
CONNECTION TIMED OUT                                   0xC0000142
LONELY NETWORK                                         0xC0000143
DUPLICATE NODE                                         0xC0000144
CABLE DISCONNECT                                       0xC0000145
TLR_E_ETHERCAT_MASTER                                  0xC0650001
TLR_E_ETHERCAT_MASTER_NO_LINK                          0xC0650002
TLR_E_ETHERCAT_MASTER_ERROR_READING_BUSCONFIG          0xC0650003
TLR_E_ETHERCAT_MASTER_ERROR_PARSING_BUSCONFIG          0xC0650004
TLR_E_ETHERCAT_MASTER_ERROR_BUSSCAN_FAILED             0xC0650005
TLR_E_ETHERCAT_MASTER_NOT_ALL_SLAVES_AVAIL             0xC0650006
TLR_E_ETHERCAT_MASTER_STOPMASTER_ERROR                 0xC0650007
TLR_E_ETHERCAT_MASTER_DEINITMASTER_ERROR               0xC0650008
TLR_E_ETHERCAT_MASTER_CLEANUP_ERROR                    0xC0650009
TLR_E_ETHERCAT_MASTER_CRITIAL_ERROR_STATE              0xC065000A
TLR_E_ETHERCAT_MASTER_INVALID_BUSCYCLETIME             0xC065000B
TLR_E_ETHERCAT_MASTER_INVALID_BROKEN_SLV_BEH_PARA      0xC065000C
TLR_E_ETHERCAT_MASTER_WRONG_INTERNAL_STATE             0xC065000D
TLR_E_ETHERCAT_MASTER_WATCHDOG_TIMEOUT_EXPIRED         0xC065000E
TLR_E_ETHERCAT_MASTER_COE_INVALID_SLAVEID              0xC065000F
TLR_E_ETHERCAT_MASTER_COE_NO_RESOURCE                  0xC0650010
TLR_E_ETHERCAT_MASTER_COE_INTERNAL_ERROR               0xC0650011
TLR_E_ETHERCAT_MASTER_COE_INVALID_INDEX                0xC0650012
TLR_E_ETHERCAT_MASTER_COE_INVALID_COMM_STATE           0xC0650013
TLR_E_ETHERCAT_MASTER_COE_FRAME_LOST                   0xC0650014
TLR_E_ETHERCAT_MASTER_COE_TIMEOUT                      0xC0650015
TLR_E_ETHERCAT_MASTER_COE_SLAVE_NOT_ADDRESSABLE        0xC0650016
TLR_E_ETHERCAT_MASTER_COE_INVALID_LIST_TYPE            0xC0650017
TLR_E_ETHERCAT_MASTER_COE_SLAVE_RESPONSE_TOO_BIG       0xC0650018
TLR_E_ETHERCAT_MASTER_COE_INVALID_ACCESSBITMASK        0xC0650019
TLR_E_ETHERCAT_MASTER_COE_WKC_ERROR                    0xC065001A
TLR_E_ETHERCAT_MASTER_SERVICE_IN_USE                   0xC065001B
TLR_E_ETHERCAT_MASTER_INVALID_COMMUNICATION_STATE      0xC065001C
TLR_E_ETHERCAT_MASTER_DC_NOT_ACTIVATED                 0xC065001D
TLR_E_ETHERCAT_MASTER_BUS_SCAN_CURRENTLY_RUNNING       0xC065001E
TLR_E_ETHERCAT_MASTER_BUS_SCAN_TIMEOUT                 0xC065001F
TLR_E_ETHERCAT_MASTER_BUS_SCAN_NOT_READY_YET           0xC0650020
TLR_E_ETHERCAT_MASTER_BUS_SCAN_INVALID_SLAVE           0xC0650021

NUM_ERRS (number \ of errors)

Data type: BYTE, default value: 0, range: 0…255

NUM_ERRS contains the number of errors since the power-up of the Communication Module.