6.8.46. Knock feedback (pan_KnockFeedback)

Retrieve the result of the last processed knock signal for a cylinder.

6.8.46.1. Supported targets

M670-000

6.8.46.2. Required license

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

6.8.46.3. Description

The pan_KnockFeedback blocks retrieves the result of the last processed knock signal for a cylinder. When the knock sensor signal was processed, and the parameters used in processing, are set by the application using the pan_KnockDetectionWindow and pan_KnockFilter_Hip901x blocks.

Knock signal processing is active in full engine synchronisation mode and disabled in other modes. When the ECU is not in full engine synchronisation mode, the knock processing result is forced to zero.

6.8.46.4. Inports

  • cylinder

    The cylinder to retrieve the processed knock result.

    Range: [1, n] where n is the number of cylinders specified by the pan_EngineConfig block.

    Value type:Integer
  • sim_knock_signal

    The value of this inport is passed to the knock_signal output under simulation.

    Value type:Real

6.8.46.5. Outports

  • knock_signal

    The result of the last processed knock signal for the cylinder if the valid outport is one, zero otherwise.

    Range: [0, 5] volts

    Value type:Real
  • valid

    Set to one if the processed knock signal is valid, zero otherwise. Causes of valid being zero include: lack of full engine synchronisation; requested cylinder is outside the number of cylinders configured (see the pan_EngineConfig block), knock is not configured by the application (a pan_KnockConfig block does not exist in the application), or if the application sets the knock window starting angle in the pan_KnockDetectionWindow block too close to the start of the knock region window specified with the pan_KnockConfig block, where too close is defined as the two angles occurring within 223 microseconds at the current engine RPM.

    Value type:Boolean

6.8.46.6. Mask parameters

  • Window

    A drop-down list of window types. Some targets support the sampling of a reference window in addition to an active window.

    Value type:List
    Calibratable:No
  • Channel

    The input pin sourcing the signal to measure. Note that this mask parameter is currently unused and is only provided for future expandability. The channel is selected when the pan_KnockFilter_Hip901x block iterates. This also means that only one knock channel can be read at a time, and the data will come from the channel of the last iterated pan_KnockFilter_Hip901x block.

    Value type:List
    Calibratable:No
  • Provide simulation input?

    Tick to enable inport sim_knock_signal.

    Value type:Boolean
    Calibratable:No

6.8.46.7. Notes

None.