Mitsubishi MELSEC Q Series Programming Manual page 371

Common instruction 1/2
Hide thumbs Also See for MELSEC Q Series:
Table of Contents

Advertisement

1. With the PWM instruction, the argument device data is registered in the work
2. The instruction is not processed in the following cases:
3. Do not change the argument for the PWM instruction during pulse output
Operation Error
(1) In the following case, an operation error occurs, the error flag (SM0) turns ON, and an error
code is stored into SD0.
• The device specified by
(For the Universal model QCPU, LCPU.)
Program Example
(1) The following program outputs a 100 ms pulse once each second to Y20 when X0 is ON.
[Ladder Mode]
area of the CPU module and counting operation is processed as a system
interrupt. (The device data registered in the work area is cleared by turning the
execution command OFF, or turning the STOP/RUN switch STOP RUN.) The
interrupt interval of individual modules is shown below:
CPU Module Type Name
High Performance model QCPU, Process CPU,
Universal model QCPU, LCPU
For this reason, the PWM instruction can be used only once within all the
programs being executed by the CPU module.
• When both n1 and n2 are 0
• When n1
n2
• When the PWM instruction is executed twice or more.
directed by the PWM instruction (while the execution command is ON). To
change the argument, turn OFF the execution command.
exceeds the range of the corresponding device.
D
Interrupt Interval of n1, n2
[List Mode]
Instruction
Step
PWM
1 ms
(Error code: 4101)
Device
6-169
1
2
3
4
4
6
7
8

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Melsec l series

Table of Contents