ONB_IO_PWM_TIME

../_images/1407baf6e38acc0b0a33139000eba54e
Parameter Value
Library_File_Name OnBoardIO_AC500_V13.lib
Firmware V1.3.0
Type Type_Function_Block_History
Group PWM_OBIO

The onboard digital outputs O2…O3 can be used to control output pulses signals with an adjustable duty cycle (ON/OFF ratio).The PWM operating mode is configured in PLC Configuration using channel parameters (see picture below).

../_images/9158f46be38acb7f0a33139000eba54e

After that, it is activated during the initialization phase (power-on, cold start, warm start).

The data exchange to and from the user program is performed using input and output operands. These necessary operands are created and reserved automatically when target is set as CPU PM55x or PM56x.

The CPU PM55x or PM56x provides two outputs which can be used in PWM mode (O2 and O3). Both have the same specification and work with the same frequency. The duty time can be adjusted independently.

The Function Block ONB_IO_PWM_TIME should be used to control with input EN_PWM, configure the frequency with input CYCLE_TIME and the input CYCLE_DUTY of PWM outputs (pulse-width modulator).

The PWM function can be realized by using two Function Block:

Note

For PWM functionality two channels share the same frequency. With this by using the second channel, frequency on its Function Block won’t work. To resolve this, enable the Function Block of the first channel and set the frequency.

Note

The cycle time for both PWM channels must be the same. If both channels are used, the cycle time of the first PWM channel (CHANNEL=0) is valid for both channels. The cycle time input of the second channel (CHANNEL=1) must be set to 0.