6.8.11. Crank wheel — digital input (pan_CrankWheelDigitalInput)

Reads the immediate digital state of a crankshaft wheel input pin.

6.8.11.1. Supported targets

M220-000, M250-000 and M670-000

6.8.11.2. Required license

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

6.8.11.3. Description

The pan_CrankWheelDigitalInput block provides the instantaneous digital voltage level (high or low) seen at a crankshaft wheel input pin. Note that the target ECU circuitry may invert the signal (see the ECU's Technical Specification for details about signal inversions).

6.8.11.4. Inports

  • sim_state

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

    Value type:Boolean
    Calibratable:No

6.8.11.5. Outports

  • state

    Set to zero if the voltage level on the crankshaft wheel pin is low, set to one if the voltage level on the crank pin is high. Note that the target ECU circuitry may invert the signal (see the ECU's Technical Specification for details about signal inversions).

    Value type:Boolean
    Calibratable:No

6.8.11.6. Mask parameters

  • Wheel

    A drop down to identify the crankshaft wheel to measure. 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 inport sim_state.

    Value type:Boolean
    Calibratable:No

6.8.11.7. Notes

None.