Support Required on PWM Control Using rtiPWM and rtiDOutTime in Rection Technology

Dear Support Team,

I am working on a PWM control application in Rection Technology and would like your guidance regarding the appropriate function block to use.

Could you please clarify whether rtiPWM or rtiDOutTime should be used for PWM signal generation and control?

My requirement is to generate a PWM output with adjustable frequency and duty cycle. I would appreciate it if you could provide:

  • The recommended function block for PWM control.
  • Configuration steps or sample implementation.
  • Any limitations or considerations when using rtiPWM or rtiDOutTime.
  • Relevant documentation or examples, if available.

Your assistance will help ensure that the PWM functionality is implemented correctly.

Thank you for your support. I look forward to your response.

Best Regards,
Chetan Patel

Hi @BnR_Support, does anyone have a functional example you can share here?

Hello,

I cant help you all the way with examples or validation but from reading the as help you create 1 instance of rtiPwm and configure the duty cycle in percent or fixed time based on bit nbr 2 in the mode UDINT input. The frequency can be adjusted with the Period input in increments of 10 ns.

You then connect the outputs from the rtiPWM instance to the inputs of rtiDoutTime.

From the description of rtiDoutTime:

“The function block is directly linked to the hardware, which means it can only be used once for each existing digital output. It can be connected directly to the pulse width modulation function block rtiPwm”

I hope that gets you started.

(press ctrl+g in the help and paste GUID, 79b0ae4f-075e-4c4a-89ad-6fe5a493a8c8, 79b0ae4f-075e-4c4a-89ad-6fe5a493a8c8)

Hello,

I have attached small test project where you can see how to use FBs rtiPwm and rtiDoutTime for generating of the PWM.

As you can see on attached printscreens I have used Period = 100us set through Par01 and duty cycle around 36% set through Par02.

Here is result on the output of the reAction module.

testProj.zip (96.2 KB)

best regards

Petr Malounek