6.8.8. Crank wheel — angle (pan_CurrentCrankAngle)

Retrieve the current crankshaft wheel angle.

6.8.8.1. Supported targets

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

6.8.8.2. Required license

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

6.8.8.3. Description

The pan_CurrentCrankAngle block retrieves the current angle of the crankshaft wheel encoder, relative to crank zero degrees (see Section 6.1.3, “Crankshaft zero degrees”). The retrieved value is taken from the angle clock, which is an estimate of crank decoding and position identification process (Section 6.1.4, “Angle clock”).

6.8.8.4. Inports

  • sim_valid

    Only used under simulation. Under simulation, the value of this inport is passed through to the valid outport.

    Value type:Boolean
  • sim_angle

    Only used under simulation. Under simulation, the value of this inport is passed through to the angle outport.

    Range: [0, 360) ° crank

    Value type:Real

6.8.8.5. Outports

  • valid

    Set to zero when the ECU cannot provide a crank angle (for instance, the ECU has not gained region synchronisation with the crankshaft wheel encoder), or set to one when the outport angle is valid.

    Value type:Boolean
  • angle

    The estimated angle of the crankshaft wheel. If the crank wheel is primary, then the value is taken from the angle clock (which is itself an estimate of the wheel position between teeth). If the crank wheel is secondary, then the value is taken from the last decoded tooth (and therefore with reduced resolution).

    Range: [0, 360) ° crank Resolution: at least 0.1 degrees, for the primary crank wheel Resolution: per tooth for secondary crank wheels

    Value type:Real

6.8.8.6. Mask parameters

  • Wheel

    A drop down to identify the crankshaft wheel for angle measurement. The selection of wheel must match a pan_CrankWheelConfig block elsewhere in the model.

    Value type:List
    Calibratable:No
  • Sample time

    The periodicity of the block execution.

    Range: [0.001, 3600] seconds, or -1 to inherit the sample time

    Value type:Real
    Calibratable:No
  • Provide simulation inports?

    Tick to enable inports sim_valid and sim_angle.

    Value type:Boolean
    Calibratable:No

6.8.8.7. Notes

None.