7.7.12. DTC table cleared indication (pdtc_TableCleared)

The pdtc_TableCleared block can be used to signal when a diagnostic command to clear all DTCs (or a subset of DTCs) has been received for the specified table.

7.7.12.1. Supported targets

All targets

7.7.12.2. Required license

EXT_DIAG (Extended diagnostics library). (See Section 2.3, “Licensed Features”.)

7.7.12.3. Description

7.7.12.4. Inports

None.

7.7.12.5. Outports

  • cleared

    Indication of whether the table's DTCs have been cleared since the block's previous execution. The value corresponds to which (if any) DTCs have been cleared since the last execution.

    clearedJ1939 Cleared Active DTCs (DM11)J1939 Cleared Previously Active DTCs (DM3)ISO Cleared All DTCs ($14)ISO Cleared Emissions DTCs ($04)
    0----
    1---Y
    2--Y-
    3--YY
    4-Y--
    5-Y-Y
    6-YY-
    7-YYY
    8Y---
    9Y--Y
    10Y-Y-
    11Y-YY
    12YY--
    13YY-Y
    14YYY-
    15YYYY

    Range: [0, 15]

    Note

    The KWP/UDS service $14 value is set regardless of the groupOfDTC parameter requested, even if that means only a subset of DTCs were actually cleared.

    Value type:Integer
    Calibratable:No

7.7.12.6. Mask parameters

  • DTC table identifier

    The name of the DTC table to monitor (there must be a corresponding named table specified in a pdtc_Table block in the model).

    Value type:String
    Calibratable:No
  • Sample time

    The periodicity of the block execution. The sample time must be set explicitly - the block cannot be set to inherit a sample time from its parent. As the block's outport value is valid only until its next execution, the sample time should be sufficient for the value to be processed before this occurs.

    Range: [0.001, 3600] seconds

    Value type:Real
    Calibratable:No

7.7.12.7. Notes

None.