6.8.48. Spark configuration (pan_SparkConfig)

Configure a set of spark channels for running an engine.

6.8.48.1. Supported targets

M220-000, M221-000, M250-000 and M670-000

6.8.48.2. Required license

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

6.8.48.3. Description

The pan_SparkConfig block configures a set of spark output channels and the drive method (coil-on-plug or wasted spark). The drive method results in different spark pulse sequences depending on the engine synchronisation mode (see Section 6.1.9, “Engine synchronisation modes” for an overview of modes).

  • Coil-on-plug — associates one spark output pin with one spark coil. In full engine synchronisation mode, the ECU generates one spark pulse. In half engine synchronisation mode, the ECU will either generate no spark pulses, or generate two spark pulses per engine cycle, depending on the 4-stroke 360 degree sparks in half engine sync mode? mask parameter.

    Generating two spark pulses per engine cycle helps start the engine when the application does not know which half of the engine cycle is active. This mode of spark generation is similar to wasted spark, and indeed half of the sparks are wasted on average, but unlike the wasted spark mode, there must be one coil for each cylinder.

  • Wasted spark — associates one spark output pin with two spark coils. Each spark coil corresponds to one engine cylinder. The wasted spark option can be used to run a four-stroke engine that have evenly spaced TDC-firing angles with half as many spark output pins.

For the M250 target, the application must use the pcfg_Config_M250 block to set any spark channels from the Cylinder n spark channel mask parameter to be PWM.

6.8.48.4. Inports

None.

6.8.48.5. Outports

None.

6.8.48.6. Mask parameters

  • Spark arrangement

    The required spark arrangement type, either coil-on-plug (one spark output pin per coil per cylinder) or wasted spark (one spark output pin for two coils, one coil per cylinder).

    Value type:List
    Calibratable:No
  • Cylinder n spark channel

    A drop-down selection of spark output channel for cylinder n.

    Value type:List
    Calibratable:No
  • Invert output

    Select to invert the spark output polarity.

    Value type:Boolean
    Calibratable:No
  • 4-stroke 360 degree sparks in half engine sync mode?

    Whether to emit sparks every 360 degrees until full engine synchronisation has been obtained. This can aid quicker engine starting for inline engines, but may be unsuitable for “V” engines if shared-coil wasted spark is also in use.

    Value type:Boolean
    Calibratable:No

6.8.48.7. Notes

None.