Pwm; Pulse Width Modulation - Mitsubishi MELSEC-Q/L Programming Manual

Table of Contents

Advertisement

Program Example
(1) The following program outputs a 10 Hz pulse 5 times to Y20 when X0 is ON.
[Ladder Mode]
6.8.9

PWM

Pulse width modulation

6.8.9
PWM
PWM
n1
: ON time or the number of the device where the ON time is stored (BIN 16 bits)
n2
: Frequency or the number of the device where the frequency is stored (BIN 16 bits)
: Number of the device to which pulses are output (bits)
D
Internal Devices
Setting
Data
Bit
Word
n1
n2
*1
D
*1:
Only output (Y) can be used.
Function
(1) Outputs the pulse of the cycle set by n2, for the amount of time ON designated by n1, to the output module designated
by
.
D
(2) The setting ranges for n1 and n2 are shown below:
CPU Module Type Name
High Performance model QCPU, Process CPU,
Universal model QCPU, LCPU
*2:
The value specified by n1 should be less than the value specified by n2.
[List Mode]
Instruction
Step
Command
J
\
R, ZR
Bit
Word
n1
n2
Setting Range for n1 and n2 [ms] *2
1 to 65535 (0001
Device
High
Basic
Process
performance
PWM
n1
n2
Zn
U
\G
––
to FFFF
)
H
H
PWM
Redundant
Universal
LCPU
D
Constants
Other
K, H
––
––
––
301
1
2
3
4
6
7
8

Advertisement

Table of Contents
loading

Table of Contents