FLT - Fault inputs

The FLT block configures and reads the digital fault inputs.

The fault input pin signals are tied to the fault manager and, using the FLT block, they can be configured to generate a “hardware fault” and immediately disable all the PWM outputs (similar to an analog input limit fault or any other fault). They can also be accessed as digital inputs like a GPI.

The reference table below outlines the location, voltage logic levels and fault input counts, while detailed information regarding the fault inputs is available within the associated product datasheet.

Param.B-Box 4B-Box 3B-Box microB-Board 3 PRO
Location and count– 24x VHDCI inputs– 16x VHDCI inputsUnavailable– 16x PCB header inputs
Logic level– 3.3V/5V– 3.3VN/A– 1.8V
Shared with– GPIN/AN/AN/A
Product datasheetB-Box 4B-Box 3B-Box microB-Board 3 PRO

Simulink block

Signal specification

The output signal returns the value of one FLT pin.

Fault inputs block Simulink

Parameters

  • Device ID selects which B-Box/B-Board to address when used in a multi-device configuration.
  • Fault input(s) (vectorizable) selects the pin(s) to read.
  • Activate fault input enable the generation of a “hardware fault” if the pin goes high and immediately disable all the PWM outputs.
Fault inputs Simulink dialog parameters

PLECS block

Signal specification

The output signal returns a vector containing the values of the FLT pins. The vector size is defined by the number of FLT pin(s) read which is specified by the parameter Fault input(s).

Fault inputs PLECS block

Parameters

  • Device ID selects which B-Box/B-Board to address when used in a multi-device configuration.
  • Fault input(s) (vectorizable) selects the pin(s) to read.
  • Activate fault input enable the generation of a “hardware fault” if the pin goes high and immediately disable all the PWM outputs.

C++ functions

void Flt_ActivateFaultInput(tFaultInput input, unsigned int device=0);Code language: C++ (cpp)

Enables the generation of a “hardware fault” if the addressed pin goes high. On a B-Box 4 device, this function also determines the active input type, since these pins are shared with GPI.

Can only be called in UserInit().

Parameters

  • input: the fault input pin number
  • device: the ID of the addressed device (optional, used in multi-device configuration only)
int Flt_GetBit(unsigned int bit, unsigned int device=0);Code language: C++ (cpp)

Returns the fault input pin value (0 or 1).

Can only be called in the interrupt routine.

Parameters

  • input: the fault input pin number
  • device: the ID of the addressed device (optional, used in multi-device configuration only)
int Flt_Get(unsigned int device=0);Code language: C++ (cpp)

Returns the status of all fault inputs.

Can only be called in the interrupt routine.

Parameters

  • device: the ID of the addressed device (optional, used in multi-device configuration only)