5.1.35. DTC clear all (pdtc_ClearAll)

Set all DTCs referred to by the table identifier parameter, to the clear state, if the clear state is supported by the DTC.

5.1.35.1. Supported targets

All targets

5.1.35.2. Required license

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

5.1.35.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. 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 cleared DTCs is also cleared. Monitor (DME and DTE) data is also cleared other than persistent data which is never cleared (e.g. numerators and denominators). As the platform does not know which DME/DTE objects are associated with which DTCs in an application, it is assumed that the table being cleared applies to all emissions-relevant monitors.

This is suitable for running in response to a J1939 DM11 request in OBD systems.

5.1.35.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. Otherwise, set to 0 for no change in DTC states.

    Value type:Boolean
    Calibratable:No

5.1.35.5. Outports

None.

5.1.35.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.35.7. Notes

None.