6.8.20. Crank wheel — tooth (pan_CurrentCrankTooth)

Retrieve the current crankshaft wheel tooth identifier.

6.8.20.1. Supported targets

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

6.8.20.2. Required license

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

6.8.20.3. Description

The pan_CurrentCrankTooth block retrieves the current tooth identifier of the crankshaft wheel. See Section 6.1.5, “Crank tooth identification” for a description of crank tooth identifiers.

6.8.20.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_tooth

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

    Value type:Integer

6.8.20.5. Outports

  • valid

    Set to zero when the ECU cannot provide a crank tooth (for instance, the ECU has not synchronised to the crankshaft wheel encoder), set to one when the outport tooth is valid.

    Value type:Boolean
  • tooth

    The identifying number of the last detected tooth of the crankshaft wheel encoder. The reported identifier is adjusted by the tooth offset supplied to the pan_EngineDeclareSync block.

    Range: [1, n] tooth where n is the number of physical teeth on the crankshaft wheel.

    Value type:Integer

6.8.20.6. Mask parameters

  • Wheel

    A drop down to identify the crankshaft wheel for tooth 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

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

    Tick to enable inports sim_valid and sim_tooth.

    Value type:Boolean
    Calibratable:No

6.8.20.7. Notes

None.