5.1.37. DTC clear all if inactive (pdtc_ClearAllIfInactive)

Set all DTCs referred to by the table identifier parameter, to the clear state, if the clear state is supported by the DTC, and if the DTC state is currently "inactive" or "previously active".

5.1.37.1. Supported targets

All targets

5.1.37.2. Required license

None (Main library). (See Section 2.3, “Licensed Features”.)

5.1.37.3. Description

For the DTCs with matching type to the parameter DTC type in the DTC table specified by parameter DTC table identifier, this block sets the DTC state to clear, if the DTC state is currently "inactive" or "previously active". See the pdtc_DiagnosticTroubleCode and pdtc_DiagnosticTroubleCodeExt blocks for details about the states each type of DTC can have.

Freeze frame data associated with the DTCs cleared is also erased, but not monitor data.

This is intended to be used in response to a J1939 DM3 request, which but the standard warns that that service is not intended for clearing diagnostic data in regulated OBD products. See also pdtc_ClearAll.

5.1.37.4. Inports

  • clear

    Set to 1 to force the state of each DTC, with matching type to that specified by parameter DTC type, to clear if it is currently inactive. Otherwise, set to 0 for no change in DTC states.

    Value type:Boolean
    Calibratable:No

5.1.37.5. Outports

None.

5.1.37.6. Mask parameters

  • DTC table identifier

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

    Value type:String
    Calibratable:No
  • DTC type

    A drop-down selection of the type of DTC to act on in the DTC table specified by parameter DTC table identifier.

    Value type:List
    Calibratable:No

5.1.37.7. Notes

None.