ONB_IO_PWM_FREQ¶
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).
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:
- ONB_IO_PWM_FREQ (this Function Block)
- ONB_IO_PWM_TIME ONB_IO_PWM_TIME
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.