ONB_IO_PWM_FREQ

../_images/2c29a108e38acbcd0a33139000eba54e
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/14bb55dce38acb210a33139000eba54e

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 2 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_FREQ should be used to control with input EN_PWM, configure the frequency with input FREQ and the input duty cycle DUTY of PWM outputs (pulse-width modulator).

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

Note

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