HAL – Hall sensor input
Table of Contents
The hall sensor interface (HAL) block provides access to the commutation signals from Hall effect sensors of a brushless DC motor.
The B-Box RCP supports up to two machines with Hall sensors through the Motor Interface for B-Box RCP. Hall sensors are usually found in three-phase brushless DC machines and provide a 60° resolution on the rotor mechanical position. The hall sensor block provides the commutation signals for the A, B, and C phases. The control algorithm can use these signals to implement a six-step commutation method.
Simulink block
Signal specification
- The output signal is a vector containing the A, B, and C signals (Booleans)
- The
sim
input vector is used in simulation and represents the actual commutation signals, computed by the simulation plant model. - The
>
input signal needs to be connected to the sampling clock generated by the CONFIG block to account for the exact sampling instant in simulation.
![Screenshot of the hall sensor block for Simulink.](../wp-content/uploads/2022/03/HAL-simulink.png)
Parameters
Device ID
selects which B-Box/B-Board to address when used in a multi-device configuration.Motor Interface input
selects which connector of the Motor Interface is used as an input.
![Screenshot of the hall sensor parameters of the Simulink block.](../wp-content/uploads/2022/03/HAL-simulink-params.png)
PLECS block
Signal specification
- The output signal is a vector containing the A, B, and C signals (Booleans)
- The
sim
input vector is used in simulation and represents the actual commutation signals, computed by the simulation plant model. - The
>
input signal needs to be connected to the sampling clock generated by the CONFIG block to account for the exact sampling instant in simulation.
![Screenshot of the hall sensor block for PLECS.](../wp-content/uploads/2022/04/HAL-1.png)
Parameters
Device ID
selects which B-Box/B-Board to address when used in a multi-device configuration.Motor Interface input
selects which connector of the Motor Interface is used as an input.
![Screenshot of the hall sensor parameters for the PLECS block.](../wp-content/uploads/2022/03/HAL-plecs-params-1.png)