BRK - Brake

The brake (BRK) block provides access to the brake control unit of the Motor Interface for B-Box RCP.

The Motor Interface for B-Box RCP features a brake control unit that delivers a 24 Vdc command. The brake is expected to be active by default and released by energizing its coil. Depending on the model, the DC command directly energizes the coil. However, many brakes require an AC power supply combined with a rectifier. In the latter case, the 24 Vdc command enables an AC relay. Please refer to the datasheet for more details.

Signal specification

  • The input signal is a Boolean command signal to release the brake (‘1’ = release).
  • The block has an optional output to display the status of the brake in simulation. It is ignored in code generation mode.
Screenshot of the safety brake block for Simulink

Parameters

  • Device ID selects which B-Box/B-Board to address when used in a multi-device configuration.
  • Show simulation output port defines if the ‘release’ signal is fed through to the output port in simulation. In code generation mode, the output port is ignored.
Screenshot of the safety brake parameters for the Simulink block

PLECS block

Signal specification

  • The input signal is a Boolean command signal to release the brake (‘1’ = release).
  • The block has an optional output to display the status of the brake in simulation. It is ignored in code generation mode.
Screenshot of the brake block for PLECS.

Parameters

  • Device ID selects which B-Box/B-Board to address when used in a multi-device configuration.
  • Show simulation output port defines if the ‘release’ signal is fed through to the output port in simulation. In code generation mode, the output port is ignored.
Screenshot of the torque sensor parameters for the PLECS block.

C++ functions

void MotInt_EnableMotorInterface(unsigned int device=0);Code language: C++ (cpp)

Enables the drivers of the Motor Interface.

It has to be called in UserInit().

Parameters

  • device: the id of the addressed device (optional, used in multi-device configuration only).
void Brk_ReleaseBrake(bool release, unsigned int device=0);Code language: C++ (cpp)

Releases the brake connected to the Motor Interface.

It has to be called during the control interrupt.

Parameters

  • release: command signal to release the brake (‘1’ = release).
  • device: the id of the addressed device (optional, used in multi-device configuration only).