5.1.18. CAN status — deprecated (pcx_CANStatus)

Provide information about CAN bus off status.

5.1.18.1. Supported targets

All targets

5.1.18.2. Required license

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

5.1.18.3. Description

Provide the bus off state of each CAN bus as an outport. A CAN bus goes bus off when sufficient errors have been detected by the CAN transceiver. See the Bosch CAN specification from their web site (http://www.can.bosch.com) or the ISO specification for more details.

When CAN bus off condition is detected, CAN transmission activity is suspended. A transmission is then tempted periodically in order to check whether bus off condition has been resolved. After bus off condition is resolved, transmission resumes as normal.

5.1.18.4. Inports

  • sim_can0_bus_off

    Only used during simulation. Set to 1 to simulate a CAN bus off state for CAN bus 0, zero otherwise. Only available if the mask parameter Provide simulation input is checked.

    Value type:Boolean
    Calibratable:No
  • sim_can1_bus_off

    Only used during simulation. Set to 1 to simulate a CAN bus off state for CAN bus 1, zero otherwise. Only available if the mask parameter Provide simulation input is checked.

    Value type:Boolean
    Calibratable:No

5.1.18.5. Outports

  • can0_bus_off

    Set to 1 if can bus 0 is currently bus off, 0 otherwise.

    Value type:Boolean
    Calibratable:No
  • can1_bus_off

    Set to 1 if can bus 1 is currently bus off, 0 otherwise.

    Value type:Boolean
    Calibratable:No

5.1.18.6. Mask parameters

  • Sample time

    The periodicity of the block execution.

    Range: [0.001, 3600] seconds

    Value type:Real
    Calibratable:No
  • Provide simulation input

    If selected then simulation inputs for each of the can bus off outports are provided by the block.

    Value type:Boolean
    Calibratable:No

5.1.18.7. Notes