Chapter 7. Usage of Various Functions
7-104
5) PWM output (PWM)
- Pulse Width Modulation output
Function block Description
Input
REQ: Executes PWM function block
CH: Sets the channel (0 ~ 1)
FREQ : Sets PWM output period (1 ~ 20,000ms)
DUTY : Sets Off Duty (0 ~ 100%)
Output
DONE: Turns On after the function block is executed without error, and
turns Off if an error occurs or there is no execution command.
STAT: Displays error status
(1) Functions
• When input condition turns on, the period pulse is outputted which is set at FREG.
• Duty ratio of pulses is assigned by the set value at DUTY
• When input condition turns off, PWM operation stops
(2) Example program
• When input condition(%MX000) turns on, output pulse is as below.
450ms
50ms
500ms
Positioning Ch 1
(QX0.0.0)
Input condition
%MX000