Diagnosis of an EAP connection 3 Diagnosis of an EAP connection The TwinCAT EAP device provides different variables with whose help the quality or failure of an EAP communication can be diagnosed. Such diagnostic variables can be found in both the publisher and the subscriber. They can be programmatically evaluated in order to react to possible malfunctions. 3.1 Subscriber In the case of the subscriber there are the diagnostic variables Quality , CycleIndex and VarState . Quality : The Quality indicates the age of the data received. CycleIndex : Transmission failures can be detected with the help of CycleIndex . VarState :
The VarState variable indicates whether there are discrepancies between the configured RxData and the incoming ProcessData that are preventing the reception of the data. Quality The Quality variable contains the length of time in [100 µs] by which this ProcessData arrived too late at the receiver. It is incremented in each cycle by the cycle time immediately before the input process image of the TwinCAT EAP device is updated. The updating of the input process image takes place during the processing of the received EAP telegrams. During this processing, several values of each telegram are allocated to the corresponding variables of the input process image. TE1000 22 Version: 1.7.1