Skip to main content

EtherCAT diagnosis

This library is used to provide diagnostic options for an EtherCAT network in a Baumüller PLC.

TB_ECT_Diagnosis

TB_ECT_Diagnosis

This function block provides an EtherCAT diagnostic functionality for a PLC project. The fb checks the EtherCAT-Master, the EtherCAT-Kernle and for all EtherCAT-Slave. The internal mapping for the EtherCAT-slaves is done by the Node-ID. The fb checks during his initialization the EtherCAT-Master Firmware and the used EtherCAT-kernel version. The dataset-ID of the actual EtherCAT configuration can be checked optional during the initialization.

The clear text error messages are deposited in english language.

For the function block it's necessary to connect him with the interface to the EtherCAT-Master, EtherCAT-Slave and the EtherCAT-Kernel. This must be done by global defined input and output parameters which are connected to the fb.

The block is compatible up to EtherCAT master firmware 1427.0127.

Limitations:
- The EtherCAT diagnosis option is available from EtherCAT master firmware 1427.0114 and EtherCAT kernel version > 100
- The current number of slaves is internally limited to 256!

Empfohlene Task: Cyclic/Default

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher TECH_TYPES_40bd08 or higher

Ausgänge

Marking:Data type:Description:
x_EctIsOKBOOLTRUE: collective message that fieldbus is ok
u_EctSlavesConfiguredUINTnumber of configured slaves in the EtherCAT-configuration
u_EctSlavesFoundUINTnumber of founded Slaves at the fieldbus
u_EctSlavesInOperationalUINTactual number of EtherCAT-slaves which are in Operational
w_EctMasterKernelVersionWORDVersion of the used EtherCAT-Kernel
s_EctKernelErrorInfoSTRINGClear text error messages EtherCAT-Kernel
s_EctMasterErrorInfoSTRINGClear text error messages EtherCAT-Master
a_EctDatasetIdFoundDWORD_4_BMARRAYUnique identifier (Dataset-ID) of the currently used EtherCAT configuration of the master, it can be set when parameterizing with the Engineering Framework ProMaster
x_ActiveBOOLTRUE: EtherCAT diagnosis is active
x_ErrorBOOLTRUE: fb has an error
w_ErrorIDWORDdetailled error message of the fb, the meaning of the error can be read in the detailed description

Ein-/Ausgänge

Marking:Data type:Description:
_EctMasterKernelECM_KERNEL_DIAGNOSTICDP-RAM struct for EtherCAT-Kernel, for structure and hardware addressing, see the detailed description of the inputs
_EctMasterECM_MASTER_STATUSDP-RAM struct for EtherCAT-Master, for structure and hardware addressing, see the detailed description of the inputs
_EctSlaveECM_SLAVE_STATESDP-RAM struct for EtherCAT-Slave, for structure and hardware addressing, see the detailed description of the inputs
_EctMasterActStateECT_DIAGNOSIS_ECM_STATEactual state EtherCAT-Master
a_EctSlaveActStateARRAY_ECT_DIAGNOSIS_ECS_STATEactual state of every EtherCAT-Slave, mapping is done by the Node-ID
Representation in FBD

TB_ECT_Diagnosis

TB_ECT_Diagnosis

This function block provides an EtherCAT diagnostic functionality for a PLC project. The fb checks the EtherCAT-Master, the EtherCAT-Kernle and for all EtherCAT-Slave. The internal mapping for the EtherCAT-slaves is done by the Node-ID. The fb checks during his initialization the EtherCAT-Master Firmware and the used EtherCAT-kernel version. The dataset-ID of the actual EtherCAT configuration can be checked optional during the initialization.

The clear text error messages are deposited in english language.

For the function block it's necessary to connect him with the interface to the EtherCAT-Master, EtherCAT-Slave and the EtherCAT-Kernel. This must be done by global defined input and output parameters which are connected to the fb.

The block is compatible up to EtherCAT master firmware 1427.0127.

Limitations:
- The EtherCAT diagnosis option is available from EtherCAT master firmware 1427.0114 and EtherCAT kernel version > 100
- The current number of slaves is internally limited to 256!

Empfohlene Task: Cyclic/Default

Verwendete Bibliotheken: BM_TYPES_40bd04 or higher TECH_TYPES_40bd08 or higher

Ausgänge

Marking:Data type:Description:
x_EctIsOKBOOLTRUE: collective message that fieldbus is ok
u_EctSlavesConfiguredUINTnumber of configured slaves in the EtherCAT-configuration
u_EctSlavesFoundUINTnumber of founded Slaves at the fieldbus
u_EctSlavesInOperationalUINTactual number of EtherCAT-slaves which are in Operational
w_EctMasterKernelVersionWORDVersion of the used EtherCAT-Kernel
s_EctKernelErrorInfoSTRINGClear text error messages EtherCAT-Kernel
s_EctMasterErrorInfoSTRINGClear text error messages EtherCAT-Master
a_EctDatasetIdFoundDWORD_4_BMARRAYUnique identifier (Dataset-ID) of the currently used EtherCAT configuration of the master, it can be set when parameterizing with the Engineering Framework ProMaster
x_ActiveBOOLTRUE: EtherCAT diagnosis is active
x_ErrorBOOLTRUE: fb has an error
w_ErrorIDWORDdetailled error message of the fb, the meaning of the error can be read in the detailed description

Ein-/Ausgänge

Marking:Data type:Description:
_EctMasterKernelECM_KERNEL_DIAGNOSTICDP-RAM struct for EtherCAT-Kernel, for structure and hardware addressing, see the detailed description of the inputs
_EctMasterECM_MASTER_STATUSDP-RAM struct for EtherCAT-Master, for structure and hardware addressing, see the detailed description of the inputs
_EctSlaveECM_SLAVE_STATESDP-RAM struct for EtherCAT-Slave, for structure and hardware addressing, see the detailed description of the inputs
_EctMasterActStateECT_DIAGNOSIS_ECM_STATEactual state EtherCAT-Master
a_EctSlaveActStateARRAY_ECT_DIAGNOSIS_ECS_STATEactual state of every EtherCAT-Slave, mapping is done by the Node-ID
Representation in FBD