Enable PWM outputs

This block issues a request to enable or disable the PWM outputs, similar to the “Enable outputs” button of BB Control utility software.

It issues a enable PWM request command when a rising edge signal is applied on its input port. If the target is in BLOCKED state it will change to OPERATING.

It issues a disable PWM command when a falling edge signal is applied to its input port. The core state of the target will be changed to BLOCKED.

More information on the core state is available on the Core state block page.

Signal specification

Applying a rising edge signal to this input port issues an enable PWM request.

Applying a falling edge signal this input port issues a disable PWM request.

An input signal > 0 is considered as a logical 1 while other values are considered as a logical 0.

PLECS block

Signal specification

Applying a rising edge signal to this input port issues an enable PWM request.

Applying a falling edge signal this input port issues a disable PWM request.

An input signal > 0 is considered as a logical 1 while other values are considered as a logical 0.

C++ functions

void CoreStart();Code language: C++ (cpp)

This function is used to set the core state to OPERATING. Thus, enabling the target’s PWM outputs.

void CoreStop();
Code language: C++ (cpp)

This function is used to set the core state to BLOCKED. Thus, disabling the target’s PWM outputs.