Tc3_EtherCATDiag Example

The example project contains two program POUs, each of which contains an example call to FB_CoE_DiagHistory_Read and FB_CoE_DiagHistory_ReadAxis:

Tc3_EtherCATDiag Example 1:

Example call FB_CoE_DiagHistory_Read

The example contains a simple call of the basic FB. The address of the slave is linked via the sNetId and nSlaveAddr inputs. At the bEnable input, the function block can be activated either once (bReadOnce) or permanently (bReadContinous). Messages can be acknowledged with the bAck input. Other controls or configurations can be controlled using stOptions. The messages from the slave are saved in the aMsgArray array. The signals bReadOnce and bAck are cyclically written FALSE.

Tc3_EtherCATDiag Example 2:

Example call FB_CoE_DiagHistory_ReadAxis

The example contains a simple call of the axis FB. The address of the slave is determined using the refAxis. At the bEnable input, the function block can be activated either once (bReadOnce) or permanently (bReadContinous). Messages can be acknowledged with the bAck input. Other controls or configurations can be controlled using stOptions. The messages from the slave are saved in the aMsgArray array. The signals bReadOnce and bAck are cyclically written FALSE.

Tc3_EtherCATDiag Example 3:

Download: Tc3_EtherCATDiag_Example