Output Description

../_images/85a017aa020d09df0a317f3449374ac1

DONE

Data_Type Default_Value Range Unit
BOOL - TRUE / FALSE -

Output DONE indicates the state of execution.

It has the value TRUE when the execution is finished and the outputs are valid. When DONE becomes FALSE other outputs are not valid any more.

ERR

Data_Type Default_Value Range Unit
BOOL - TRUE / FALSE -

Output ERR indicates whether an error occurred during Function Block execution.

It is only valid when DONE is TRUE. The kind of occurred error is specified by the error identifier at output ERNO.

ERNO

Data_Type Default_Value Range Unit
WORD - 0 … 65535 -

At output ERNO the identifier of an occurred error is provided. It is only valid when DONE and ERR is TRUE (see, error messages): Error Messages of the Function Block Libraries

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.