6.8.23. Engine angle (pan_CurrentEngineAngle)

Retrieve the current engine angle.

6.8.23.1. Supported targets

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

6.8.23.2. Required license

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

6.8.23.3. Description

The pan_CurrentEngineAngle 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.23.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.

    Value type:Real

6.8.23.5. Outports

  • valid

    Set to zero when the software cannot provide an engine angle (for instance, the ECU has not synchronised to the crankshaft wheel), set to one when the outport angle is valid.

    Value type:Boolean
  • angle

    The estimated angle of the engine taken from the angle clock.

    Range: [0, 360) ° crank, for a two-stroke engine Range: [0, 720) ° crank, for a four-stroke engine Resolution: at least 0.1 degrees

    Value type:Real

6.8.23.6. Mask parameters

  • 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_angle.

    Value type:Boolean
    Calibratable:No

6.8.23.7. Notes

None.