Mitsubishi Electronics FX5 Universal Remote User Manual


 
19 BUILT-IN I/O FUNCTION
19.7 PWM Function
199
19
Cautions when using the PWM function
Set the pulse width to a value 2 s more and period to a value 5 s more.
Set the value so that pulse width period.
The PWM instruction is not executed when a channel number not selected for PWM output in parameters setting is
specified by the PWM instruction.
Examples of program
An example of a program using the PWM function is explained below.
Outline of operation
An example of a program using output Y0 on the CPU module to output one pulse with a delay is explained below.
Parameter setting
This program assumes that parameters are set as follows.
CH2, CH3 and CH4 need not be set.
Program
An operation diagram and program are shown below.
Operation diagram
Item CH to be used
CH1
Output destination Y0
Output pulse logic Negative logic (Output from OFF)
Pulse width 50 ms
Cycle 60 ms
Delay time: 50 ms
1 pulse output
10 ms
X0 input
Y0
PWM output
PWM output start