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.
EXT_DIAG (Extended diagnostics library). (See Section 2.3, “Licensed Features”.)
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.
cleared | J1939 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 | - | - | Y | Y |
4 | - | Y | - | - |
5 | - | Y | - | Y |
6 | - | Y | Y | - |
7 | - | Y | Y | Y |
8 | Y | - | - | - |
9 | Y | - | - | Y |
10 | Y | - | Y | - |
11 | Y | - | Y | Y |
12 | Y | Y | - | - |
13 | Y | Y | - | Y |
14 | Y | Y | Y | - |
15 | Y | Y | Y | Y |
Range: [0, 15]
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 |
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 |
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 |