6.8.25. Engine cylinder (pan_CurrentCylinder)

Retrieve the current cylinder identifier.

6.8.25.1. Supported targets

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

6.8.25.2. Required license

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

6.8.25.3. Description

The pan_CurrentCylinder block retrieves the current cylinder identifier of the engine from the ECU. The cylinder identifier is updated whenever a new TDC-calculation angle is reached. See Section 6.2, “Engine TDC-firing events” for a definition of TDC-calculation. The application specifies the TDC-calculation angle using a pan_EngineConfig block.

6.8.25.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_cylinder

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

    Value type:Integer

6.8.25.5. Outports

  • valid

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

    Value type:Boolean
  • cylinder

    The current cylinder of the engine.

    Range: [1, n] where n is the number of cylinders specified by the pan_EngineConfig block.

    Value type:Integer

6.8.25.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_cylinder.

    Value type:Boolean
    Calibratable:No

6.8.25.7. Notes

None.