FUNCTION_BLOCK DTCBufferWriter EXTENDS DTCHandlerBase
This function block can be connected to a DM1_Read or DM2_Read function block. As long as xEnable is TRUE it receives DTCs and writes it to a memory buffer provided by pDTCBuffer. If a complete diagnostic message was received output xReceived becomes TRUE for one cycle and pDTCBuffer contains received DTCs. If buffer is too small DTCs can be lost (see output udiDTCLostCount).
Output values and Data in pDTCBuffer is only valid as long as xReceived is TRUE (for one cycle).
InOut: |
|